/* ========================================
   Estilos Personalizados - Sistema de Agendamiento
   Diseño Moderno con Bordes Redondeados
   ======================================== */

/* ===== Layout General ===== */
.content-wrapper {
    padding: 25px;
    background-color: #f4f6f9;
}

.content-header {
    padding: 20px 0 8px 0 !important;
    margin-bottom: 0px;
}

.content-header .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.content {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.content .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.content-header h1 {
    font-size: 1.65rem !important;
    font-weight: 700 !important;
    color: #343a40;
    margin: 0 !important;
}

/* ===== Cards Modernos ===== */
.card {
    margin-bottom: 25px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.card-header {
    background: #ffffff;
    color: #374151;
    border: none;
    border-bottom: 1px solid #E5E7EB;
    padding: 18px 25px;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 12px 12px 0 0 !important;
}

.card-body {
    padding: 30px;
    background-color: white;
}

.card-footer {
    padding: 20px 30px;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 15px 15px;
}

/* ===== Form Groups con Mejor Espaciado ===== */
.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.6rem;
    display: block;
    color: #495057;
    font-size: 0.95rem;
}

/* ===== Inputs y Select Modernos ===== */
.form-control,
select.form-control {
    border-radius: 10px;
    border: 2px solid #e0e6ed;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-control:focus,
select.form-control:focus {
    border-color: #4F46E5;
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.15);
    background-color: #fff;
    outline: none;
}

.form-control:hover {
    border-color: #c5cee0;
}

/* Select con mejor apariencia */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234F46E5' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

/* Textarea moderno */
textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* ===== Botones Modernos y Redondeados ===== */
.btn {
    border-radius: 10px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    margin-right: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn:last-child {
    margin-right: 0;
}

.btn i {
    font-size: 1rem;
}

/* Botón Primario - Azul Índigo Sólido */
.btn-primary {
    background: #4F46E5;
    background-color: #4F46E5;
    background-image: none;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    color: white;
}

.btn-primary:hover {
    background: #4338CA;
    background-color: #4338CA;
    background-image: none;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
    color: white;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Botón Secundario */
.btn-secondary {
    background-color: #6c757d;
    color: white;
    box-shadow: 0 4px 10px rgba(108, 117, 125, 0.2);
}

.btn-secondary:hover {
    background-color: #5a6268;
    box-shadow: 0 6px 15px rgba(108, 117, 125, 0.3);
    transform: translateY(-2px);
}

/* Botón Success - Verde Sólido */
.btn-success {
    background: #10B981;
    background-color: #10B981;
    background-image: none;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    color: white;
}

.btn-success:hover {
    background: #059669;
    background-color: #059669;
    background-image: none;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
    color: white;
}

/* Botón Danger - Rojo Sólido */
.btn-danger {
    background: #F43F5E;
    background-color: #F43F5E;
    background-image: none;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    color: white;
}

.btn-danger:hover {
    background: #E11D48;
    background-color: #E11D48;
    background-image: none;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
    color: white;
}

/* Botón Info - Azul Sky Sólido */
.btn-info {
    background: #0EA5E9;
    background-color: #0EA5E9;
    background-image: none;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    color: white;
}

.btn-info:hover {
    background: #0284C7;
    background-color: #0284C7;
    background-image: none;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
    color: white;
}

/* Botón Warning - Amber Sólido */
.btn-warning {
    background: #F59E0B;
    background-color: #F59E0B;
    background-image: none;
    color: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-warning:hover {
    background: #D97706;
    background-color: #D97706;
    background-image: none;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
    color: white;
}

/* Botón deshabilitado */
.btn:disabled,
.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    pointer-events: none; /* Prevenir cualquier interacción */
}

/* Botón en estado de carga/procesando */
.btn:disabled .fa-spinner {
    animation: spin 1s linear infinite;
}

/* Overlay de formulario cuando está enviando */
.form-submitting {
    position: relative;
    pointer-events: none;
}

.form-submitting::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 10;
    border-radius: 15px;
}

/* ===== Campos de Validación ===== */
.text-danger {
    color: #eb3349;
    font-weight: 600;
}

.invalid-feedback {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.875rem;
    color: #eb3349;
    font-weight: 500;
}

.is-invalid {
    border-color: #eb3349 !important;
    background-color: #fff5f5;
}

.is-invalid:focus {
    border-color: #eb3349 !important;
    box-shadow: 0 0 0 0.2rem rgba(235, 51, 73, 0.15) !important;
}

/* ===== Alerts Modernos ===== */
.alert {
    margin-bottom: 25px;
    border-radius: 12px;
    border: none;
    padding: 1rem 1.25rem;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.alert-success {
    background: linear-gradient(135deg, #11998e15 0%, #38ef7d15 100%);
    color: #0e8078;
    border-left: 4px solid #11998e;
}

.alert-danger {
    background: linear-gradient(135deg, #eb334915 0%, #f45c4315 100%);
    color: #d62c40;
    border-left: 4px solid #eb3349;
}

.alert-warning {
    background: linear-gradient(135deg, #f7971e15 0%, #ffd20015 100%);
    color: #de861b;
    border-left: 4px solid #f7971e;
}

.alert-info {
    background: linear-gradient(135deg, #17ead915 0%, #6078ea15 100%);
    color: #14d1c2;
    border-left: 4px solid #17ead9;
}

/* ===== Rows con Espaciado ===== */
.row {
    margin-bottom: 0;
}

.row:not(:last-child) {
    margin-bottom: 0.5rem;
}

.row .col-md-1,
.row .col-md-2,
.row .col-md-3,
.row .col-md-4,
.row .col-md-5,
.row .col-md-6,
.row .col-md-7,
.row .col-md-8,
.row .col-md-9,
.row .col-md-10,
.row .col-md-11,
.row .col-md-12 {
    padding-left: 10px;
    padding-right: 10px;
}

/* ===== Tablas Modernas ===== */
.table {
    margin-bottom: 0;
    border-radius: 10px;
    overflow: hidden;
}

.table thead th {
    background: #F3F4F6;
    background-color: #F3F4F6;
    background-image: none;
    color: #374151;
    border: none;
    border-bottom: 1px solid #E5E7EB;
    font-weight: 600;
    padding: 1rem;
    text-transform: none;
    font-size: 0.875rem;
    letter-spacing: normal;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:nth-child(odd) {
    background-color: white;
}

.table tbody tr:nth-child(even) {
    background-color: #F9FAFB;
}

.table tbody tr:hover {
    background-color: #EFF6FF !important;
    transform: none;
}

.table tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-color: #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
}

/* ===== Badges Modernos ===== */
.badge {
    border-radius: 8px;
    padding: 0.4rem 0.8rem;
    font-weight: 600;
    font-size: 0.85rem;
}

/* ===== Spinners para Loading ===== */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 15px;
    }

    .card-body {
        padding: 20px;
    }

    .card-footer {
        padding: 15px 20px;
    }

    .btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        width: 100%;
        justify-content: center;
    }

    .btn:last-child {
        margin-bottom: 0;
    }

    .content-header h1 {
        font-size: 1.5rem;
    }

    .row .col-md-1,
    .row .col-md-2,
    .row .col-md-3,
    .row .col-md-4,
    .row .col-md-5,
    .row .col-md-6,
    .row .col-md-7,
    .row .col-md-8,
    .row .col-md-9,
    .row .col-md-10,
    .row .col-md-11,
    .row .col-md-12 {
        padding-left: 5px;
        padding-right: 5px;
    }
}

@media (max-width: 576px) {
    .content-wrapper {
        padding: 10px;
    }

    .card {
        border-radius: 10px;
    }

    .card-body {
        padding: 15px;
    }

    .form-control,
    select.form-control {
        font-size: 0.9rem;
    }
}

/* ===== Animaciones Suaves ===== */
* {
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* ===== Scrollbar Personalizado ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #4F46E5;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4338CA;
}

/* ===== Focus Visible para Accesibilidad ===== */
*:focus-visible {
    outline: 2px solid #4F46E5;
    outline-offset: 2px;
}

/* ========================================
   MEJORAS DE FORMULARIO - SECCIONES Y COMPONENTES
   ======================================== */

/* ===== Secciones del Formulario ===== */
.form-section {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.form-section:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #4F46E5;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    font-size: 1.3rem;
}

/* ===== Labels con Iconos ===== */
.form-group label {
    display: flex;
    align-items: center;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: #495057;
    font-size: 0.95rem;
}

.form-group label i {
    margin-right: 6px;
}

/* ===== Placeholders Mejorados ===== */
.form-control::placeholder,
select.form-control option[value=""] {
    color: #adb5bd;
    font-style: italic;
}

/* ===== Select Wrapper con Loading ===== */
.select-wrapper {
    position: relative;
}

.select-loading {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    color: #4F46E5;
    font-size: 1rem;
    pointer-events: none;
}

/* ===== Select Deshabilitado ===== */
select.form-control:disabled {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.7;
}

/* ===== Custom Switch Toggle ===== */
.custom-switch-container {
    margin-top: 8px;
}

.custom-switch {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    user-select: none;
    padding: 8px 0;
}

.switch-track {
    position: relative;
    width: 56px;
    height: 28px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.switch-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.custom-switch.active .switch-track {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.custom-switch.active .switch-thumb {
    transform: translateX(28px);
}

.switch-label {
    font-weight: 600;
    font-size: 1rem;
    color: #495057;
    transition: color 0.3s ease;
}

.custom-switch.active .switch-label {
    color: #10B981;
}

.custom-switch.inactive .switch-label {
    color: #e74c3c;
}

/* Hover effect */
.custom-switch:hover .switch-track {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* ===== Textarea Mejorado ===== */
textarea.form-control {
    min-height: 110px;
    line-height: 1.6;
    resize: vertical;
}

/* ===== Espaciado entre Rows ===== */
.form-section .row {
    margin-bottom: 0;
}

.form-section .row + .row {
    margin-top: 8px;
}

/* ===== Iconos en Content Header ===== */
.content-header h1 i {
    color: #4F46E5;
}

/* ===== Responsive Ajustes para Secciones ===== */
@media (max-width: 768px) {
    .form-section {
        padding: 20px;
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 1.1rem;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }

    .custom-switch {
        gap: 12px;
    }

    .switch-track {
        width: 50px;
        height: 26px;
    }

    .switch-thumb {
        width: 20px;
        height: 20px;
    }

    .custom-switch.active .switch-thumb {
        transform: translateX(24px);
    }
}

@media (max-width: 576px) {
    .form-section {
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 12px;
    }

    .section-title {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .form-group label {
        font-size: 0.9rem;
    }
}

/* ========================================
   REDISEÑO DEL MENÚ LATERAL ADMINLTE
   Diseño Moderno, Vibrante y Luminoso
   ======================================== */

/* ===== Sidebar Principal - Fondo Claro y Vibrante ===== */
.main-sidebar {
    background: linear-gradient(180deg, #F8F9FA 0%, #FFFFFF 100%) !important;
    box-shadow: 2px 0 12px rgba(79, 70, 229, 0.08) !important;
    border-right: 1px solid #E5E7EB !important;
}

/* ===== Brand/Logo - Vibrante ===== */
.brand-link {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%) !important;
    border-bottom: none !important;
    padding: 1.25rem 1.5rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.15) !important;
}

.brand-link:hover {
    background: linear-gradient(135deg, #4338CA 0%, #6D28D9 100%) !important;
    box-shadow: 0 6px 10px rgba(79, 70, 229, 0.25) !important;
    transform: translateY(-1px) !important;
}

.brand-link .brand-text {
    color: #FFFFFF !important;
    font-weight: 700 !important;
    font-size: 1.25rem !important;
    letter-spacing: 0.5px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.brand-image {
    opacity: 1 !important;
    filter: brightness(1.2) !important;
}

/* ===== Navegación del Sidebar ===== */
.sidebar {
    padding-top: 1rem !important;
}

.nav-sidebar {
    padding: 0 !important;
}

/* ===== Items del Menú - Coloridos y Vibrantes ===== */
.nav-sidebar > .nav-item {
    margin: 0.375rem 0.875rem !important;
}

.nav-sidebar .nav-link {
    background: #FFFFFF !important;
    color: #4B5563 !important;
    border-radius: 10px !important;
    padding: 0.875rem 1.125rem !important;
    margin: 0 !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 2px solid transparent !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.nav-sidebar .nav-link:hover {
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%) !important;
    color: #4F46E5 !important;
    border-color: #A5B4FC !important;
    transform: translateX(4px) scale(1.02) !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15) !important;
}

.nav-sidebar .nav-link.active {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%) !important;
    color: #FFFFFF !important;
    border-color: #4F46E5 !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3), 0 0 20px rgba(79, 70, 229, 0.15) !important;
    transform: translateX(4px) !important;
}

/* ===== Iconos del Menú - Coloridos ===== */
.nav-sidebar .nav-link .nav-icon {
    color: #6B7280 !important;
    margin-right: 0.875rem !important;
    font-size: 1.125rem !important;
    width: 1.75rem !important;
    text-align: center !important;
    transition: all 0.25s ease !important;
}

.nav-sidebar .nav-link:hover .nav-icon {
    color: #4F46E5 !important;
    transform: scale(1.15) rotate(5deg) !important;
}

.nav-sidebar .nav-link.active .nav-icon {
    color: #FFFFFF !important;
    transform: scale(1.1) !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)) !important;
}

/* ===== Texto del Menú ===== */
.nav-sidebar .nav-link p {
    margin: 0 !important;
    font-size: 0.938rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.3px !important;
}

/* ===== Badges/Notificaciones - Vibrantes ===== */
.nav-sidebar .badge {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    color: white !important;
    border-radius: 12px !important;
    padding: 0.25rem 0.625rem !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    margin-left: auto !important;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3) !important;
}

.nav-sidebar .nav-link:hover .badge {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    transform: scale(1.1) !important;
}

.nav-sidebar .nav-link.active .badge {
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%) !important;
    box-shadow: 0 2px 6px rgba(251, 191, 36, 0.4) !important;
}

/* ===== Submenú/Tree View - Claro y Colorido ===== */
.nav-treeview {
    padding-left: 0 !important;
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%) !important;
    border-radius: 10px !important;
    margin: 0.5rem 0 !important;
    border: 1px solid #E5E7EB !important;
}

.nav-treeview > .nav-item {
    margin: 0.25rem 0.5rem !important;
}

.nav-treeview > .nav-item > .nav-link {
    padding: 0.625rem 1rem 0.625rem 2.75rem !important;
    border: none !important;
    border-radius: 8px !important;
    position: relative !important;
    background: transparent !important;
    color: #6B7280 !important;
}

.nav-treeview > .nav-item > .nav-link::before {
    content: '';
    position: absolute;
    left: 1.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #A5B4FC 0%, #818CF8 100%);
    border-radius: 50%;
    transition: all 0.25s ease;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

.nav-treeview > .nav-item > .nav-link:hover::before {
    background: linear-gradient(135deg, #4F46E5 0%, #4338CA 100%);
    transform: translateY(-50%) scale(1.4);
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.4);
}

.nav-treeview > .nav-item > .nav-link.active::before {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    transform: translateY(-50%) scale(1.3);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.nav-treeview > .nav-item > .nav-link:hover {
    background: #FFFFFF !important;
    color: #4F46E5 !important;
    transform: none !important;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.1) !important;
}

.nav-treeview > .nav-item > .nav-link.active {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%) !important;
    color: #065F46 !important;
    font-weight: 600 !important;
}

/* ===== Flecha de Expansión ===== */
.nav-sidebar .right {
    color: #9CA3AF !important;
    transition: all 0.3s ease !important;
    font-size: 0.875rem !important;
    position: absolute !important;
    right: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.nav-sidebar .nav-link {
    display: flex !important;
    align-items: center !important;
    position: relative !important;
}

.nav-sidebar .nav-link p {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
}

.nav-sidebar .nav-link:hover .right {
    color: #4F46E5 !important;
}

.nav-sidebar .menu-open > .nav-link .right {
    transform: translateY(-50%) rotate(-90deg) !important;
    color: #4F46E5 !important;
}

/* ===== Header del Sidebar (opcional) ===== */
.nav-header {
    color: #9CA3AF !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 1rem 1.5rem 0.5rem !important;
    margin-top: 0.5rem !important;
}

/* ===== Scrollbar del Sidebar ===== */
.sidebar::-webkit-scrollbar {
    width: 6px !important;
}

.sidebar::-webkit-scrollbar-track {
    background: #F3F4F6 !important;
    border-radius: 3px !important;
}

.sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #A5B4FC 0%, #818CF8 100%) !important;
    border-radius: 3px !important;
    transition: all 0.3s ease !important;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #4F46E5 0%, #4338CA 100%) !important;
    box-shadow: 0 0 6px rgba(79, 70, 229, 0.3) !important;
}

/* ===== Usuario Info (si existe) ===== */
.user-panel {
    background: #FFFFFF !important;
    border: 2px solid #E5E7EB !important;
    border-radius: 12px !important;
    padding: 1rem !important;
    margin: 0.875rem !important;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.08) !important;
    transition: all 0.3s ease !important;
}

.user-panel:hover {
    border-color: #A5B4FC !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15) !important;
    transform: translateY(-1px) !important;
}

.user-panel .info {
    color: #374151 !important;
    padding-left: 0.75rem !important;
}

.user-panel .info a {
    color: #4F46E5 !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.user-panel .info a:hover {
    color: #4338CA !important;
    text-decoration: none !important;
}

.user-panel .image img {
    border: 3px solid #4F46E5 !important;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25) !important;
    transition: all 0.3s ease !important;
}

.user-panel:hover .image img {
    border-color: #7C3AED !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.35) !important;
}

/* ===== Sidebar Mini (Colapsado) ===== */
.sidebar-mini.sidebar-collapse .main-sidebar .nav-link {
    width: calc(4.6rem - 1rem) !important;
}

.sidebar-mini.sidebar-collapse .main-sidebar .nav-link p {
    display: none !important;
}

.sidebar-mini.sidebar-collapse .main-sidebar .nav-link .nav-icon {
    margin-right: 0 !important;
}

.sidebar-mini.sidebar-collapse .main-sidebar .brand-text {
    display: none !important;
}

/* ===== Animaciones ===== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-sidebar > .nav-item {
    animation: slideIn 0.3s ease forwards;
}

.nav-sidebar > .nav-item:nth-child(1) { animation-delay: 0.05s; }
.nav-sidebar > .nav-item:nth-child(2) { animation-delay: 0.1s; }
.nav-sidebar > .nav-item:nth-child(3) { animation-delay: 0.15s; }
.nav-sidebar > .nav-item:nth-child(4) { animation-delay: 0.2s; }
.nav-sidebar > .nav-item:nth-child(5) { animation-delay: 0.25s; }
.nav-sidebar > .nav-item:nth-child(6) { animation-delay: 0.3s; }
.nav-sidebar > .nav-item:nth-child(7) { animation-delay: 0.35s; }
.nav-sidebar > .nav-item:nth-child(8) { animation-delay: 0.4s; }

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .main-sidebar {
        box-shadow: 4px 0 12px rgba(0, 0, 0, 0.2) !important;
    }
}

/* ===== Efectos Adicionales ===== */
.nav-sidebar .nav-link .badge.badge-info {
    background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%) !important;
    box-shadow: 0 2px 6px rgba(14, 165, 233, 0.3) !important;
}

.nav-sidebar .nav-link .badge.badge-danger {
    background: linear-gradient(135deg, #F43F5E 0%, #E11D48 100%) !important;
    box-shadow: 0 2px 6px rgba(244, 63, 94, 0.3) !important;
}

.nav-sidebar .nav-link .badge.badge-warning {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3) !important;
}

/* ===== Sidebar Toggle Button ===== */
[data-widget="pushmenu"] {
    color: #4F46E5 !important;
    transition: all 0.3s ease !important;
}

[data-widget="pushmenu"]:hover {
    color: #7C3AED !important;
    transform: scale(1.1) !important;
}

/* ===== Breadcrumbs Modernos ===== */
.breadcrumb {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 8px !important;
}

.breadcrumb-item {
    font-size: 0.875rem !important;
    font-weight: 500 !important;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/" !important;
    color: #9CA3AF !important;
    padding: 0 8px !important;
}

.breadcrumb-item a {
    color: #6B7280 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.breadcrumb-item a:hover {
    color: #4F46E5 !important;
}

.breadcrumb-item a i {
    font-size: 0.875rem !important;
}

.breadcrumb-item.active {
    color: #4F46E5 !important;
    font-weight: 600 !important;
}

/* Content Header con Breadcrumbs */
.content-header .container-fluid {
    padding: 0 !important;
}

.content-header .row {
    align-items: center !important;
}

/* Responsivo para breadcrumbs */
@media (max-width: 768px) {
    .breadcrumb {
        margin-top: 12px !important;
        justify-content: flex-start !important;
    }

    .breadcrumb-item {
        font-size: 0.813rem !important;
    }

    .float-sm-right {
        float: none !important;
    }
}
