/*
 * VUEXY THEME CSS
 * Tema moderno inspirado no Vuexy Admin Template
 * Paleta de cores personalizada conforme especificação
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* === CORES PRIMÁRIAS === */
    --vuexy-primary: #1C355E;        /* Azul Escuro - Sidebar, elementos principais */
    --vuexy-primary-light: #6885BE;  /* Azul Claro - Elementos secundários */
    --vuexy-primary-dark: #0f1e35;   /* Azul mais escuro para hover */
    
    /* === CORES DE TEXTO === */
    --vuexy-text-primary: #212529;   /* Texto principal (cinza escuro) */
    --vuexy-text-secondary: #40454A; /* Texto secundário (cinza médio) */
    --vuexy-text-light: #FFFFFF;     /* Texto claro */
    --vuexy-text-muted: #8A92A6;     /* Texto esmaecido */
    
    /* === CORES SECUNDÁRIAS === */
    --vuexy-accent: #FFC350;         /* Amarelo Dourado - Destaques, badges */
    --vuexy-accent-light: #F2DAB2;   /* Bege Claro - Backgrounds suaves */
    
    /* === CORES DE FUNDO === */
    --vuexy-bg-primary: #FFFFFF;     /* Fundo principal branco */
    --vuexy-bg-secondary: #F8F7FA;   /* Fundo secundário (muito claro) */
    --vuexy-bg-tertiary: #F3F2F7;    /* Fundo terciário */
    
    /* === CORES DE STATUS === */
    --vuexy-success: #28C76F;
    --vuexy-success-light: #D4EDDA;
    --vuexy-danger: #EA5455;
    --vuexy-danger-light: #F8D7DA;
    --vuexy-warning: #FF9F43;
    --vuexy-warning-light: #FFF3CD;
    --vuexy-info: #00CFE8;
    --vuexy-info-light: #D1ECF1;
    
    /* === SOMBRAS === */
    --vuexy-shadow-sm: 0 2px 4px 0 rgba(28, 53, 94, 0.06);
    --vuexy-shadow-md: 0 4px 25px 0 rgba(28, 53, 94, 0.1);
    --vuexy-shadow-lg: 0 8px 30px rgba(28, 53, 94, 0.12);
    --vuexy-shadow-xl: 0 20px 40px rgba(28, 53, 94, 0.15);
    
    /* === BORDAS === */
    --vuexy-border-radius: 8px;
    --vuexy-border-radius-sm: 6px;
    --vuexy-border-radius-lg: 12px;
    --vuexy-border-color: #EBE9F1;
    
    /* === TIPOGRAFIA === */
    --vuexy-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --vuexy-font-size-xs: 0.75rem;   /* 12px */
    --vuexy-font-size-sm: 0.875rem;  /* 14px */
    --vuexy-font-size-base: 1rem;    /* 16px */
    --vuexy-font-size-lg: 1.125rem;  /* 18px */
    --vuexy-font-size-xl: 1.25rem;   /* 20px */
    --vuexy-font-size-2xl: 1.5rem;   /* 24px */
    --vuexy-font-size-3xl: 2rem;     /* 32px */
    
    /* === ESPAÇAMENTOS === */
    --vuexy-space-1: 0.25rem;  /* 4px */
    --vuexy-space-2: 0.5rem;   /* 8px */
    --vuexy-space-3: 0.75rem;  /* 12px */
    --vuexy-space-4: 1rem;     /* 16px */
    --vuexy-space-5: 1.25rem;  /* 20px */
    --vuexy-space-6: 1.5rem;   /* 24px */
    --vuexy-space-8: 2rem;     /* 32px */
    --vuexy-space-10: 2.5rem;  /* 40px */
    --vuexy-space-12: 3rem;    /* 48px */
    
    /* === TRANSIÇÕES === */
    --vuexy-transition: all 0.25s ease;
    --vuexy-transition-fast: all 0.15s ease;
    --vuexy-transition-slow: all 0.35s ease;
}

/* === RESET BASE === */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--vuexy-font-family);
    font-size: var(--vuexy-font-size-base);
    color: var(--vuexy-text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === CLASSES UTILITÁRIAS === */
.vuexy-text-primary { color: var(--vuexy-text-primary) !important; }
.vuexy-text-secondary { color: var(--vuexy-text-secondary) !important; }
.vuexy-text-light { color: var(--vuexy-text-light) !important; }
.vuexy-text-muted { color: var(--vuexy-text-muted) !important; }

.vuexy-bg-primary { background-color: var(--vuexy-bg-primary) !important; }
.vuexy-bg-secondary { background-color: var(--vuexy-bg-secondary) !important; }
.vuexy-bg-accent { background-color: var(--vuexy-accent) !important; }

.vuexy-shadow-sm { box-shadow: var(--vuexy-shadow-sm) !important; }
.vuexy-shadow-md { box-shadow: var(--vuexy-shadow-md) !important; }
.vuexy-shadow-lg { box-shadow: var(--vuexy-shadow-lg) !important; }

.vuexy-rounded { border-radius: var(--vuexy-border-radius) !important; }
.vuexy-rounded-sm { border-radius: var(--vuexy-border-radius-sm) !important; }
.vuexy-rounded-lg { border-radius: var(--vuexy-border-radius-lg) !important; }

/* === COMPONENTES BASE === */

/* Botões */
.btn-vuexy-primary {
    background-color: var(--vuexy-primary);
    border-color: var(--vuexy-primary);
    color: var(--vuexy-text-light);
    border-radius: var(--vuexy-border-radius);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: var(--vuexy-transition);
    box-shadow: var(--vuexy-shadow-sm);
}

.btn-vuexy-primary:hover {
    background-color: var(--vuexy-primary-dark);
    border-color: var(--vuexy-primary-dark);
    color: var(--vuexy-text-light);
    transform: translateY(-1px);
    box-shadow: var(--vuexy-shadow-md);
}

.btn-vuexy-primary:focus {
    background-color: var(--vuexy-primary-dark);
    border-color: var(--vuexy-primary-dark);
    color: var(--vuexy-text-light);
    box-shadow: 0 0 0 0.2rem rgba(28, 53, 94, 0.25);
}

/* Cards */
.vuexy-card {
    background-color: var(--vuexy-bg-primary);
    border: 1px solid var(--vuexy-border-color);
    border-radius: var(--vuexy-border-radius-lg);
    box-shadow: var(--vuexy-shadow-sm);
    transition: var(--vuexy-transition);
}

.vuexy-card:hover {
    box-shadow: var(--vuexy-shadow-md);
    transform: translateY(-2px);
}

.vuexy-card-body {
    padding: var(--vuexy-space-6);
}

/* Inputs */
.vuexy-form-control {
    border: 1px solid var(--vuexy-border-color);
    border-radius: var(--vuexy-border-radius);
    padding: 0.75rem 1rem;
    font-size: var(--vuexy-font-size-base);
    transition: var(--vuexy-transition);
    background-color: var(--vuexy-bg-primary);
}

.vuexy-form-control:focus {
    border-color: var(--vuexy-primary);
    box-shadow: 0 0 0 0.2rem rgba(28, 53, 94, 0.1);
    outline: 0;
}

/* Labels */
.vuexy-form-label {
    font-weight: 500;
    color: var(--vuexy-text-primary);
    margin-bottom: var(--vuexy-space-2);
    font-size: var(--vuexy-font-size-sm);
}

/* === PÁGINA DE LOGIN === */
.vuexy-login-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--vuexy-primary) 0%, var(--vuexy-primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--vuexy-space-4);
}

.vuexy-login-card {
    background: var(--vuexy-bg-primary);
    border-radius: var(--vuexy-border-radius-lg);
    box-shadow: var(--vuexy-shadow-xl);
    width: 100%;
    max-width: 420px;
    padding: var(--vuexy-space-8) var(--vuexy-space-6);
}

.vuexy-login-header {
    text-align: center;
    margin-bottom: var(--vuexy-space-8);
}

.vuexy-login-title {
    color: var(--vuexy-primary);
    font-size: var(--vuexy-font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--vuexy-space-2);
}

.vuexy-login-subtitle {
    color: var(--vuexy-text-muted);
    font-size: var(--vuexy-font-size-sm);
}

.vuexy-login-form .form-group {
    margin-bottom: var(--vuexy-space-5);
}

.vuexy-login-btn {
    width: 100%;
    padding: 0.875rem;
    font-size: var(--vuexy-font-size-base);
    font-weight: 600;
}

.vuexy-alert {
    border: none;
    border-radius: var(--vuexy-border-radius);
    padding: var(--vuexy-space-4);
    margin-bottom: var(--vuexy-space-5);
    font-size: var(--vuexy-font-size-sm);
}

.vuexy-alert-success {
    background-color: var(--vuexy-success-light);
    color: var(--vuexy-success);
}

.vuexy-alert-danger {
    background-color: var(--vuexy-danger-light);
    color: var(--vuexy-danger);
}

.vuexy-alert-warning {
    background-color: var(--vuexy-warning-light);
    color: var(--vuexy-warning);
}

.vuexy-alert-info {
    background-color: var(--vuexy-info-light);
    color: var(--vuexy-info);
}

/* === SEÇÕES DE FORMULÁRIO === */
.vuexy-form-section {
    margin-bottom: var(--vuexy-space-4);
}

.vuexy-section-title {
    color: var(--vuexy-text-primary);
    font-size: var(--vuexy-font-size-sm);
    font-weight: 600;
    margin-bottom: var(--vuexy-space-3);
    padding-bottom: var(--vuexy-space-2);
    border-bottom: 1px solid var(--vuexy-border-color);
    display: flex;
    align-items: center;
}

.vuexy-section-title i {
    color: var(--vuexy-primary);
}

/* === ESTILOS DE MODAL === */
.vuexy-modal-header {
    background-color: var(--vuexy-bg-secondary);
    border-bottom: 1px solid var(--vuexy-border-color);
    padding: var(--vuexy-space-5);
}

.vuexy-modal-body {
    padding: var(--vuexy-space-6) var(--vuexy-space-5);
}

.vuexy-modal-footer {
    background-color: var(--vuexy-bg-secondary);
    border-top: 1px solid var(--vuexy-border-color);
    padding: var(--vuexy-space-4) var(--vuexy-space-5);
}

/* === AVATAR STYLES === */
.vuexy-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.vuexy-avatar-sm {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

.vuexy-avatar.bg-danger {
    background-color: var(--vuexy-danger) !important;
}

/* === RESPONSIVIDADE === */
@media (max-width: 576px) {
    .vuexy-login-wrapper {
        padding: var(--vuexy-space-3);
    }
    
    .vuexy-login-card {
        padding: var(--vuexy-space-6) var(--vuexy-space-4);
        margin: var(--vuexy-space-2);
    }
    
    .vuexy-login-title {
        font-size: var(--vuexy-font-size-xl);
    }
    
    .vuexy-login-subtitle {
        font-size: var(--vuexy-font-size-xs);
    }
}

@media (max-width: 768px) {
    .vuexy-login-card {
        max-width: 380px;
    }
}

/* === MELHORIAS ESPECÍFICAS PARA LOGIN === */
.vuexy-login-form input:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(28, 53, 94, 0.15), 0 0 0 0.2rem rgba(28, 53, 94, 0.1);
}

.vuexy-login-btn:active {
    transform: translateY(0);
}

/* Ícone da senha */
.password-toggle {
    cursor: pointer;
    user-select: none;
}

.password-toggle:hover {
    color: var(--vuexy-primary) !important;
}

/* Loading state para botões */
.btn-loading {
    pointer-events: none;
    opacity: 0.8;
}

/* Melhor contraste para placeholders */
.vuexy-form-control::placeholder {
    color: var(--vuexy-text-muted);
    opacity: 0.7;
}

/* Foco melhorado nos labels */
.vuexy-form-label {
    transition: var(--vuexy-transition-fast);
}

.vuexy-form-control:focus + .vuexy-form-label,
.vuexy-form-control:focus ~ .vuexy-form-label {
    color: var(--vuexy-primary);
}

/* ==========================================
   LAYOUT PRINCIPAL - SIDEBAR & HEADER
   ========================================== */

/* === VARIÁVEIS PARA LAYOUT === */
:root {
    --vuexy-sidebar-width: 260px;
    --vuexy-sidebar-width-collapsed: 70px;
    --vuexy-header-height: 64px;
    --vuexy-z-sidebar: 1000;
    --vuexy-z-header: 1001;
}

/* === CORPO PRINCIPAL === */
body.vuexy-layout {
    margin: 0;
    padding: 0;
    background-color: var(--vuexy-bg-secondary);
    font-family: var(--vuexy-font-family);
    transition: var(--vuexy-transition);
}

.vuexy-main-wrapper {
    display: flex;
    min-height: 100vh;
}

.vuexy-content-wrapper {
    flex: 1;
    margin-left: var(--vuexy-sidebar-width);
    padding-top: var(--vuexy-header-height);
    transition: var(--vuexy-transition);
}

.vuexy-content {
    padding: var(--vuexy-space-6);
}

/* === HEADER/TOPBAR === */
.vuexy-header {
    position: fixed;
    top: 0;
    left: var(--vuexy-sidebar-width);
    right: 0;
    height: var(--vuexy-header-height);
    background-color: var(--vuexy-bg-primary);
    border-bottom: 1px solid var(--vuexy-border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--vuexy-space-6);
    z-index: var(--vuexy-z-header);
    box-shadow: var(--vuexy-shadow-sm);
    transition: var(--vuexy-transition);
}

.vuexy-header-left {
    display: flex;
    align-items: center;
    gap: var(--vuexy-space-4);
}

.vuexy-header-right {
    display: flex;
    align-items: center;
    gap: var(--vuexy-space-3);
}

.vuexy-header-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--vuexy-text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: var(--vuexy-space-2);
    border-radius: var(--vuexy-border-radius);
    transition: var(--vuexy-transition);
}

.vuexy-header-toggle:hover {
    background-color: var(--vuexy-bg-secondary);
    color: var(--vuexy-primary);
}

.vuexy-user-dropdown {
    position: relative;
}

.vuexy-user-info {
    display: flex;
    align-items: center;
    gap: var(--vuexy-space-3);
    padding: var(--vuexy-space-2) var(--vuexy-space-3);
    border-radius: var(--vuexy-border-radius);
    cursor: pointer;
    transition: var(--vuexy-transition);
    border: 1px solid transparent;
}

.vuexy-user-info:hover {
    background-color: var(--vuexy-bg-secondary);
    border-color: var(--vuexy-border-color);
}

.vuexy-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--vuexy-primary), var(--vuexy-primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: var(--vuexy-font-size-sm);
}

.vuexy-user-details h6 {
    margin: 0;
    font-size: var(--vuexy-font-size-sm);
    font-weight: 600;
    color: var(--vuexy-text-primary);
}

.vuexy-user-details p {
    margin: 0;
    font-size: var(--vuexy-font-size-xs);
    color: var(--vuexy-text-muted);
}

/* === SIDEBAR === */
.vuexy-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--vuexy-sidebar-width);
    height: 100vh;
    background-color: var(--vuexy-primary);
    z-index: var(--vuexy-z-sidebar);
    transition: var(--vuexy-transition);
    overflow-y: auto;
    overflow-x: hidden;
}

.vuexy-sidebar::-webkit-scrollbar {
    width: 4px;
}

.vuexy-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.vuexy-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.vuexy-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* === LOGO DO SIDEBAR === */
.vuexy-sidebar-header {
    padding: var(--vuexy-space-6) var(--vuexy-space-5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: var(--vuexy-space-3);
}

.vuexy-sidebar-logo {
    max-width: 140px;
    max-height: 40px;
    object-fit: contain;
}

.vuexy-sidebar-brand {
    color: var(--vuexy-text-light);
    font-size: var(--vuexy-font-size-xl);
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--vuexy-space-3);
}

/* === PERFIL DO USUÁRIO NO SIDEBAR === */
.vuexy-sidebar-user {
    padding: var(--vuexy-space-5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.vuexy-sidebar-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--vuexy-accent), var(--vuexy-primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: var(--vuexy-font-size-lg);
    margin: 0 auto var(--vuexy-space-3);
}

.vuexy-sidebar-user-name {
    color: var(--vuexy-text-light);
    font-weight: 600;
    font-size: var(--vuexy-font-size-sm);
    margin: 0 0 var(--vuexy-space-1);
}

.vuexy-sidebar-user-role {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--vuexy-font-size-xs);
    margin: 0;
}

.vuexy-sidebar-user-org {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--vuexy-font-size-xs);
    margin: var(--vuexy-space-1) 0 0;
}

/* === NAVEGAÇÃO DO SIDEBAR === */
.vuexy-sidebar-nav {
    padding: var(--vuexy-space-4) 0;
}

.vuexy-nav-item {
    margin: 0 var(--vuexy-space-3) var(--vuexy-space-1);
}

.vuexy-nav-link {
    display: flex;
    align-items: center;
    padding: var(--vuexy-space-3) var(--vuexy-space-4);
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    border-radius: var(--vuexy-border-radius);
    transition: var(--vuexy-transition);
    font-size: var(--vuexy-font-size-sm);
    font-weight: 500;
    position: relative;
}

.vuexy-nav-link:hover {
    color: var(--vuexy-text-light) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    transform: translateX(4px);
    text-decoration: none !important;
}

.vuexy-nav-link.active,
.vuexy-sidebar .vuexy-nav-link.active {
    color: var(--vuexy-primary) !important;
    background-color: var(--vuexy-accent) !important;
    box-shadow: 0 4px 12px rgba(255, 195, 80, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    padding: var(--vuexy-space-3) var(--vuexy-space-4) !important;
    text-decoration: none !important;
}

.vuexy-nav-link.active .vuexy-nav-text,
.vuexy-sidebar .vuexy-nav-link.active .vuexy-nav-text {
    color: var(--vuexy-primary) !important;
}

.vuexy-nav-link.active .vuexy-nav-icon,
.vuexy-sidebar .vuexy-nav-link.active .vuexy-nav-icon {
    color: var(--vuexy-primary) !important;
}

.vuexy-nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--vuexy-primary) !important;
    border-radius: 0 2px 2px 0;
}

/* Sobrescrever qualquer CSS conflitante da sidebar antiga */
aside.vuexy-sidebar .vuexy-nav-link.active,
.vuexy-sidebar .active {
    background-color: var(--vuexy-accent) !important;
    color: var(--vuexy-primary) !important;
}

aside.vuexy-sidebar .vuexy-nav-link.active *,
.vuexy-sidebar .active * {
    color: var(--vuexy-primary) !important;
}

/* Resetar qualquer conflito com Bootstrap */
.nav-link.active {
    background-color: transparent !important;
}

/* Garantir que os ícones e textos dos links ativos ficam com cor correta */
.vuexy-sidebar .vuexy-nav-link.active i,
.vuexy-sidebar .vuexy-nav-link.active span {
    color: var(--vuexy-primary) !important;
}

.vuexy-nav-icon {
    font-size: 1.1rem;
    margin-right: var(--vuexy-space-3);
    width: 20px;
    text-align: center;
}

.vuexy-nav-text {
    font-weight: 500;
}

/* === ESTADOS RESPONSIVOS === */
.vuexy-sidebar-collapsed {
    width: var(--vuexy-sidebar-width-collapsed);
}

.vuexy-sidebar-collapsed .vuexy-sidebar-header {
    padding: var(--vuexy-space-4);
    justify-content: center;
}

.vuexy-sidebar-collapsed .vuexy-sidebar-logo,
.vuexy-sidebar-collapsed .vuexy-sidebar-brand span,
.vuexy-sidebar-collapsed .vuexy-sidebar-user-name,
.vuexy-sidebar-collapsed .vuexy-sidebar-user-role,
.vuexy-sidebar-collapsed .vuexy-sidebar-user-org,
.vuexy-sidebar-collapsed .vuexy-nav-text {
    display: none;
}

.vuexy-sidebar-collapsed .vuexy-nav-link {
    justify-content: center;
    padding: var(--vuexy-space-3);
}

.vuexy-sidebar-collapsed .vuexy-nav-icon {
    margin: 0;
}

/* === OVERRIDES PARA CONFLITOS COM CSS ANTIGO === */

/* Garantir que os links da sidebar sempre usem o estilo Vuexy - MAS NÃO OS ATIVOS */
aside.vuexy-sidebar a:not(.active),
.vuexy-sidebar a:not(.active) {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
}

aside.vuexy-sidebar a:hover:not(.active),
.vuexy-sidebar a:hover:not(.active) {
    color: var(--vuexy-text-light) !important;
    text-decoration: none !important;
}

/* Resetar todos os links da sidebar primeiro */
.vuexy-sidebar .vuexy-nav-link {
    background-color: transparent !important;
    color: #a8b3c7 !important;
    font-weight: 400 !important;
    border-radius: var(--vuexy-border-radius);
    padding: var(--vuexy-space-3) var(--vuexy-space-4) !important;
    transition: all 0.2s ease;
    position: relative;
    display: flex !important;
    align-items: center !important;
}

/* Hover nos links não ativos */
.vuexy-sidebar .vuexy-nav-link:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
}

/* Resetar estilos conflitantes do Bootstrap */
.vuexy-sidebar .nav-link,
.vuexy-sidebar .nav-link.active {
    background-color: transparent !important;
    border: none !important;
}

/* Garantir que o ::before dos links ativos seja correto */
.vuexy-sidebar .vuexy-nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--vuexy-primary) !important;
    border-radius: 0 2px 2px 0;
}

/* Forçar reset de todos os links que NÃO são ativos */
.vuexy-sidebar .vuexy-nav-link:not(.active) {
    background-color: transparent !important;
    color: #a8b3c7 !important;
    font-weight: 400 !important;
}

.vuexy-sidebar .vuexy-nav-link:not(.active) i,
.vuexy-sidebar .vuexy-nav-link:not(.active) span {
    color: #a8b3c7 !important;
}
aside.vuexy-sidebar .active::before,
.vuexy-sidebar .active::before {
    background-color: var(--vuexy-primary) !important;
    width: 3px !important;
    height: auto !important;
    top: 0 !important;
    bottom: 0 !important;
}

/* === FIM DOS OVERRIDES === */
@media (max-width: 768px) {
    .vuexy-header-toggle {
        display: block;
    }
    
    .vuexy-sidebar {
        transform: translateX(-100%);
    }
    
    .vuexy-sidebar.show {
        transform: translateX(0);
    }
    
    .vuexy-content-wrapper {
        margin-left: 0;
    }
    
    .vuexy-header {
        left: 0;
    }
    
    .vuexy-sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: var(--vuexy-z-sidebar);
        opacity: 0;
        visibility: hidden;
        transition: var(--vuexy-transition);
    }
    
    .vuexy-sidebar-overlay.show {
        opacity: 1;
        visibility: visible;
    }
}

/* === MELHORIAS ADICIONAIS === */
.vuexy-content.container-fluid {
    padding: var(--vuexy-space-6);
}

/* Breadcrumb */
.vuexy-breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: var(--vuexy-space-5);
}

.vuexy-breadcrumb-item {
    color: var(--vuexy-text-muted);
    font-size: var(--vuexy-font-size-sm);
}

.vuexy-breadcrumb-item.active {
    color: var(--vuexy-text-primary);
    font-weight: 500;
}

/* === ANIMAÇÕES === */
@keyframes vuexy-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vuexy-fade-in {
    animation: vuexy-fadeIn 0.6s ease-out;
}

.vuexy-fade-in-delay {
    animation: vuexy-fadeIn 0.8s ease-out 0.2s both;
}

/* === ACTION CARDS === */
.vuexy-card-action {
    transition: all 0.3s ease;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 10px rgba(28, 53, 94, 0.1);
    height: auto;
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.vuexy-card-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(28, 53, 94, 0.15);
}

.vuexy-card-action.clickable {
    cursor: pointer;
}

.vuexy-card-action .card-body {
    padding: 1rem 1.25rem;
    flex: 1;
    display: flex;
    align-items: center;
}

.vuexy-card-action .card-text h6 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.vuexy-card-action .card-text p {
    font-size: 0.75rem;
    opacity: 0.85;
    margin-bottom: 0;
    line-height: 1.3;
}

.vuexy-card-action .card-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.vuexy-card-action .card-icon i {
    font-size: 1rem;
}

.card-action-footer {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: white;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.vuexy-card-action:hover .card-action-footer {
    background: rgba(0, 0, 0, 0.2);
}

.card-action-footer .action-text {
    font-weight: 500;
}

.card-action-footer .action-icon {
    transition: transform 0.3s ease;
    font-size: 0.7rem;
}

.vuexy-card-action:hover .card-action-footer .action-icon {
    transform: translateX(3px);
}

/* Card Color Variants */
.vuexy-card-action.card-primary {
    background: linear-gradient(135deg, var(--vuexy-primary), #2448a6);
}

.vuexy-card-action.card-warning {
    background: linear-gradient(135deg, var(--vuexy-warning), #e6a700);
}

.vuexy-card-action.card-danger {
    background: linear-gradient(135deg, var(--vuexy-danger), #d93025);
}

.vuexy-card-action.card-success {
    background: linear-gradient(135deg, var(--vuexy-success), #1e7e34);
}

/* === NEW ACTION CARDS === */
.vuexy-action-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(28, 53, 94, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.vuexy-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(28, 53, 94, 0.15);
}

/* Card Header */
.vuexy-card-header {
    padding: 1.25rem 1.5rem 0.75rem 1.5rem;
    border-bottom: 1px solid var(--vuexy-border-color);
    background-color: var(--vuexy-bg-primary);
}

.vuexy-card-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Card Body - para tabelas */
.vuexy-action-card .table-responsive {
    padding: 0 1.5rem 1.25rem 1.5rem;
}

/* Área de resposta/alertas dentro de cards */
.vuexy-action-card #resposta,
.vuexy-action-card .mensagem {
    padding: 0 1.5rem;
    margin-top: 0;
}

/* Ajuste para tabelas dentro de action cards */
.vuexy-action-card .vuexy-table {
    margin-bottom: 0;
}

/* === CARDS DE RESERVA === */
.vuexy-reservation-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(28, 53, 94, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    border: 2px solid transparent;
}

.vuexy-reservation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(28, 53, 94, 0.15);
}

.reservation-status {
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.875rem;
}

.reservation-number {
    font-size: 1.1rem;
    font-weight: 700;
}

.reservation-body {
    padding: 20px;
}

.unit-icon {
    width: 40px;
    height: 40px;
    background: var(--vuexy-bg-secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.unit-type {
    font-size: 0.95rem;
    line-height: 1.2;
}

.unit-name {
    font-size: 0.85rem;
    line-height: 1.2;
}

.reservation-guest,
.reservation-dates {
    font-size: 0.85rem;
}

.reservation-guest i,
.reservation-dates i {
    width: 16px;
    opacity: 0.7;
}

/* Status filters */
.status-filter {
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 6px 12px;
}

/* Empty state */
.vuexy-empty-state {
    padding: 2rem 1rem;
}

/* Border colors for cards */
.border-warning {
    border-color: var(--vuexy-warning) !important;
}

.border-info {
    border-color: var(--vuexy-info) !important;
}

.border-success {
    border-color: var(--vuexy-success) !important;
}

.border-danger {
    border-color: var(--vuexy-danger) !important;
}

/* === MÓDULO ESTACIONAMENTO === */
.parking-spot-icon {
    width: 32px;
    height: 32px;
    background: var(--vuexy-bg-secondary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.parking-spot-icon i {
    font-size: 1.2rem;
}

.action-card-body {
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.action-card-content h6 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: white;
}

.action-card-content p {
    font-size: 0.8rem;
    margin-bottom: 0;
    opacity: 0.85;
    color: white;
}

.action-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.action-card-footer {
    padding: 0.75rem 1.25rem;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.vuexy-action-card:hover .action-card-footer {
    background: rgba(0, 0, 0, 0.2);
}

.action-card-footer i {
    transition: transform 0.3s ease;
    font-size: 0.7rem;
}

.vuexy-action-card:hover .action-card-footer i {
    transform: translateX(3px);
}

/* Action Card Colors */
.vuexy-action-card.primary {
    background: linear-gradient(135deg, var(--vuexy-primary), #2448a6);
}

.vuexy-action-card.warning {
    background: linear-gradient(135deg, var(--vuexy-warning), #e6a700);
}

.vuexy-action-card.danger {
    background: linear-gradient(135deg, var(--vuexy-danger), #d93025);
}

.vuexy-action-card.success {
    background: linear-gradient(135deg, var(--vuexy-success), #1e7e34);
}

.vuexy-action-card.info {
    background: linear-gradient(135deg, var(--vuexy-info), #138496);
}

/* === STATISTICS CARDS === */
.vuexy-stats-card {
    background: var(--vuexy-bg-primary);
    border: 1px solid var(--vuexy-border-color);
    border-radius: var(--vuexy-border-radius-lg);
    padding: 1rem 1.25rem;
    box-shadow: var(--vuexy-shadow-sm);
    transition: var(--vuexy-transition);
    height: 100%;
    cursor: pointer;
}

.vuexy-stats-card:hover {
    box-shadow: var(--vuexy-shadow-md);
    transform: translateY(-2px);
}

.vuexy-stats-card .stats-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--vuexy-border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    margin-bottom: 0.75rem;
}

.vuexy-stats-card .stats-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--vuexy-text-primary);
    margin-bottom: 0.25rem;
    line-height: 1;
}

.vuexy-stats-card .stats-label {
    font-size: 0.8rem;
    color: var(--vuexy-text-muted);
    font-weight: 500;
    line-height: 1.2;
}

.vuexy-stats-card.primary .stats-icon { background: var(--vuexy-primary); }
.vuexy-stats-card.success .stats-icon { background: var(--vuexy-success); }
.vuexy-stats-card.warning .stats-icon { background: var(--vuexy-warning); }
.vuexy-stats-card.info .stats-icon { background: var(--vuexy-info); }

/* Dashboard Layout Improvements */
.dashboard-action-cards {
    max-height: calc(100vh - 300px);
    overflow-y: auto;
}

.dashboard-action-cards .row.g-3 > [class*="col-"] {
    margin-bottom: 0;
}

/* Responsive adjustments for action cards */
@media (max-width: 991.98px) {
    .vuexy-card-action {
        margin-bottom: 0.75rem;
    }
    
    .dashboard-action-cards .row.g-3 {
        margin-bottom: 1rem;
    }
}

@media (max-width: 767.98px) {
    .vuexy-card-action .card-body {
        padding: 0.875rem 1rem;
    }
    
    .vuexy-card-action .card-text h6 {
        font-size: 0.9rem;
    }
    
    .vuexy-card-action .card-text p {
        font-size: 0.7rem;
    }
    
    .vuexy-card-action .card-icon {
        width: 28px;
        height: 28px;
    }
    
    .vuexy-card-action .card-icon i {
        font-size: 0.9rem;
    }
    
    .card-action-footer {
        padding: 0.4rem 1rem;
        font-size: 0.7rem;
    }
}

/* === TABLES === */
.vuexy-table {
    color: var(--vuexy-text-primary);
}

.vuexy-table thead th {
    background-color: var(--vuexy-gray-50);
    color: #FFF;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 1.5rem;
    border: none;
    border-bottom: 1px solid var(--vuexy-border-color);
}

.vuexy-table tbody td {
    padding: 1rem 1.5rem;
    border: none;
    border-bottom: 1px solid var(--vuexy-border-light);
    vertical-align: middle;
    color: var(--vuexy-text-primary);
    font-size: 0.875rem;
}

.vuexy-table tbody tr {
    transition: background-color 0.2s ease;
}

.vuexy-table tbody tr:hover {
    background-color: var(--vuexy-gray-25);
}

.vuexy-table tbody tr:last-child td {
    border-bottom: none;
}

.vuexy-table .fw-medium {
    font-weight: 500;
    color: var(--vuexy-primary);
}

/* === LINKS ATIVOS DA SIDEBAR - DEVE FICAR NO FINAL PARA SOBRESCREVER TUDO === */
aside.vuexy-sidebar .vuexy-nav-link.active,
.vuexy-sidebar .vuexy-nav-link.active,
aside.vuexy-sidebar .active,
.vuexy-sidebar .active {
    background-color: var(--vuexy-accent) !important;
    color: var(--vuexy-primary) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    padding: var(--vuexy-space-3) var(--vuexy-space-4) !important;
}

/* Ícones e texto dos links ativos - com máxima especificidade */
aside.vuexy-sidebar .vuexy-nav-link.active i,
aside.vuexy-sidebar .vuexy-nav-link.active span,
.vuexy-sidebar .vuexy-nav-link.active i,
.vuexy-sidebar .vuexy-nav-link.active span,
aside.vuexy-sidebar .active i,
aside.vuexy-sidebar .active span,
.vuexy-sidebar .active i,
.vuexy-sidebar .active span {
    color: var(--vuexy-primary) !important;
    text-decoration: none !important;
}

/* Links ativos têm prioridade sobre qualquer regra genérica de links */
aside.vuexy-sidebar a.vuexy-nav-link.active,
.vuexy-sidebar a.vuexy-nav-link.active,
aside.vuexy-sidebar a.active,
.vuexy-sidebar a.active {
    color: var(--vuexy-primary) !important;
    background-color: var(--vuexy-accent) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    padding: var(--vuexy-space-3) var(--vuexy-space-4) !important;
    border-radius: var(--vuexy-border-radius) !important;
}

/* Remover sublinhado de TODOS os links dentro da sidebar, ativos ou não */
.vuexy-sidebar a,
.vuexy-sidebar a:hover,
.vuexy-sidebar a:focus,
.vuexy-sidebar a:active,
.vuexy-sidebar a:visited,
aside.vuexy-sidebar a,
aside.vuexy-sidebar a:hover,
aside.vuexy-sidebar a:focus,
aside.vuexy-sidebar a:active,
aside.vuexy-sidebar a:visited {
    text-decoration: none !important;
}