body {
    background-color: skyblue !important;
}

body .navbar ~ .container-fluid {
    margin-top: 0.5rem;
}

/* Estilos para mensajes de error de validación */
.invalid-feedback {
    color: #dc3545 !important;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Estilo para tarjetas de formulario */
.form-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    padding: 2rem;
}

/* Estilos de botones reutilizables */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
}

.btn-secondary {
    border-radius: 10px;
}

/* Estilos para botones de radio como botones con check */
.delivery-type-options,
.service-type-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.delivery-type-options input[type="radio"],
.service-type-options input[type="radio"] {
    display: none;
}

.delivery-type-options label,
.service-type-options label {
    display: inline-block;
    padding: 8px 32px 8px 16px; /* Aumentado el padding derecho para dar espacio al checkmark */
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    font-weight: 500;
    margin: 0;
}

.delivery-type-options label:hover,
.service-type-options label:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.delivery-type-options input[type="radio"]:checked + label,
.service-type-options input[type="radio"]:checked + label {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

.delivery-type-options input[type="radio"]:checked + label::after,
.service-type-options input[type="radio"]:checked + label::after {
    content: '✓';
    position: absolute;
    right: 12px; /* Aumentado de 8px a 12px para más separación */
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    font-size: 14px;
}

/* Estilos para el campo de frecuencia */
.frequency-field {
    transition: all 0.3s ease;
}

.frequency-row {
    transition: all 0.3s ease;
}

.frequency-row.show {
    display: block !important;
}

/* Estilos corregidos para los botones de radio de frecuencia */
.frequency-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.frequency-options input[type="radio"] {
    display: none;
}

.frequency-options label {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    font-weight: 500;
    margin: 0;
    min-width: 80px;
    text-align: center;
}

.frequency-options label:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.frequency-options input[type="radio"]:checked + label {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.frequency-options input[type="radio"]:checked + label::after {
    content: '✓';
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    font-size: 12px;
}

.frequency-message {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 4px;
}

/* Ocultar el radio button "None" que aparece por defecto */
.frequency-options input[value=""] + label {
    display: none;
}

.hide {
    display: none !important;
}

@media (min-width: 992px) {
    .d-lg-table {
        display: table-cell !important;
    }
}


/* Estilos para el menú offcanvas */
.offcanvas {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white;
}

.offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.offcanvas-title {
    color: white !important;
    font-weight: bold;
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Estilos para los enlaces del menú lateral */
.offcanvas .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 4px 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.offcanvas .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white !important;
    transform: translateX(5px);
}

.offcanvas .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: white !important;
    font-weight: bold;
}

.offcanvas .nav-link i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

/* Estilo para la navbar principal */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-toggler {
    padding: 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Dropdown del usuario - evitar cambios en height del navbar */
.navbar .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    z-index: 1050;
    margin-top: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar .dropdown {
    position: relative;
}

.table-modern {
    margin: 0;
    background: transparent;
}

.table-modern thead th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    padding: 1.2rem 1rem;
    font-weight: 700;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.table-modern tbody td {
    padding: 1rem;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    vertical-align: middle;
}

.table-modern tbody tr {
    transition: all 0.3s ease;
}

.table-modern tbody tr:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}


/* Card de tabla moderna */
.table-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.table-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table-header h4 {
    margin: 0;
    font-weight: 700;
    font-size: 1.3rem;
}


.header,
.table-card,
.empty-state-modern {
    animation: fadeInUp 0.6s ease-out;
}

/* Estado vacío moderno */
.empty-state-modern {
    background: white;
    border-radius: 25px;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-primary-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 15px;
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-primary-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}


/* Input de búsqueda en header */
.search-input-header {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 0.75rem 1rem 0.75rem 3rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    width: 300px;
}

.search-input-header:focus {
    border-color: rgba(255, 255, 255, 0.8);
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    outline: none;
}


/* ACTION BTS */
/* Botones de acción */
.action-btn {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-view {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}

.btn-edit {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: white;
}

.btn-delete {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.action-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* MODAL */ 
.modal-header.bg-success {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.action-buttons {
    display: flex;
}

.modal.show .modal-dialog.modal-xl {
    max-width: 80%;
}

@media (max-width: 992px) {
    .hide-lg {
        display: none !important;
    }
}
@media (max-width: 768px) {
    .hide-md {
        display: none !important;
    }
}
@media (max-width: 576px) {
    .hide-sm {
        display: none !important;
    }
}
@media (max-width: 460px) {
    .action-buttons {
        flex-direction: column;
    }
    .navbar-brand {
        display: none;
    }
}

.beauty-card {
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border: none;
    transition: transform 0.3s ease;
}
.beauty-card:hover {
    transform: translateY(-5px);
}
.btn-beauty {
    background: linear-gradient(135deg, #ff9999, #ff66a5);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    color: white;
    transition: all 0.3s;
    height: 68px;
}
.btn-beauty:hover {
    background: linear-gradient(135deg, #ff66a5, #ff9999);
    transform: scale(1.05);
    color: white;
}