/* webroot/css/custom.css */
:root {
    --primary-color: #2563eb;    /* Azul mais vibrante */
    --secondary-color: #4f46e5; /* Índigo */
    --light-bg: #f8f9fa;
    --dark-bg: #1e293b;         /* Dark mode mais suave */
    --text-light: #1e293b;
    --text-dark: #f8fafc;
}

/* Transição suave entre temas */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

/* Light Mode Moderno */
body.light-mode {
    background-color: var(--light-bg);
    color: var(--text-light);
    
    .bg-primary {
        background-color: var(--primary-color) !important;
    }
    
    .card {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 0.75rem;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }
}

/* Dark Mode Atualizado */
body.dark-mode {
    background-color: var(--dark-bg);
    color: var(--text-dark);
    
    .bg-primary {
        background-color: #1e40af !important; /* Azul mais escuro */
    }
    
    .card {
        background-color: #334155;
        border: 1px solid #475569;
    }
    
    .form-control {
        background-color: #334155;
        border-color: #475569;
        color: #f8fafc;
    }
    
    .dropdown-menu {
        background-color: #334155;
        border: 1px solid #475569;
    }
}

/* Header Moderno */
header {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-bottom: none;
    
    .navbar-brand {
        font-weight: 600;
        font-size: 1.25rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        
        img {
            height: 2.5rem;
        }
    }
}

/* Botão de Tema Moderno */
#theme-toggle {
    border: none;
    padding: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Menu de Navegação */
.navbar-nav {
    gap: 1rem;
    
    .nav-link {
        padding: 0.5rem 1rem;
        border-radius: 0.5rem;
        transition: all 0.2s ease;
        
        &:hover {
            background-color: rgba(255,255,255,0.1);
        }
    }
}

/* Notificações Modernas */
.notification-dropdown {
    width: 350px;
    
    .notification-item {
        padding: 0.75rem;
        border-bottom: 1px solid #e2e8f0;
        
        &:last-child {
            border-bottom: none;
        }
    }
}

/* Tabelas */
.table {
    thead th {
        border-bottom: 2px solid var(--primary-color);
    }
}

/* Footer Atualizado */
footer {
    margin-top: auto;
    padding: 1.5rem;
    background-color: rgba(0,0,0,0.05);
    border-top: 1px solid #e2e8f0;
    
    .dark-mode & {
        background-color: rgba(255,255,255,0.05);
        border-color: #334155;
    }
}

