/* ==========================================
   CINZA MODERNO ELEGANTE 🌫️
   Inspiração: Notion + Linear + Vercel
   Design clean, profissional e impressionante
   ========================================== */

:root {
    /* CORES CINZA MODERNO */
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary-color: #6366f1;
    
    /* Cores Funcionais */
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    
    /* FUNDO CINZA MODERNO */
    --light-bg: #fafafa;
    --sidebar-bg: #f5f5f5;
    --card-bg: #ffffff;
    
    /* TEXTO */
    --dark-text: #1f2937;
    --gray-text: #6b7280;
    --light-text: #9ca3af;
    
    /* BORDAS */
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    
    --sidebar-width: 260px;
}

/* ==========================================
   BODY - FUNDO CINZA CLARINHO
   ========================================== */
body {
    background: #fafafa;
    color: #1f2937;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto', sans-serif;
}

/* ==========================================
   SIDEBAR - CINZA SUAVE ELEGANTE
   ========================================== */
.sidebar {
    background: #f5f5f5;
    border-right: 1px solid #e5e7eb;
    box-shadow: none;
}

.sidebar-header {
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}

.sidebar-header h1 {
    color: #1f2937;
    font-weight: 700;
}

.sidebar-header .logo {
    color: #3b82f6;
}

.sidebar-header p {
    color: #6b7280;
}

/* ==========================================
   NAVIGATION - CLEAN E MODERNO
   ========================================== */
.nav-item {
    color: #6b7280;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.nav-item svg {
    color: #9ca3af;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background: #ffffff;
    border-left-color: #3b82f6;
    color: #1f2937;
}

.nav-item:hover svg {
    color: #3b82f6;
}

.nav-item.active {
    background: #ffffff;
    border-left-color: #3b82f6;
    color: #1f2937;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-item.active svg {
    color: #3b82f6;
}

/* ==========================================
   MAIN CONTENT
   ========================================== */
.main-content {
    background: #fafafa;
}

.page-header {
    background: transparent;
}

.page-header h1 {
    color: #111827;
    font-weight: 700;
}

.page-header p {
    color: #6b7280;
}

/* User info header */
.user-info {
    color: #6b7280;
}

.user-info strong {
    color: #1f2937;
}

/* ==========================================
   CARDS - BRANCO PURO COM SHADOW SUAVE
   ========================================== */
.card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

.card-header h3 {
    color: #6b7280;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.card-value {
    color: #111827;
    font-weight: 700;
}

.card-trend {
    color: #6b7280;
    font-size: 13px;
}

/* Card icons com cores suaves */
.card.positive .card-icon {
    background: #ecfdf5;
    color: #10b981;
}

.card.negative .card-icon {
    background: #fef2f2;
    color: #ef4444;
}

.card.info .card-icon {
    background: #eff6ff;
    color: #3b82f6;
}

.card.neutral .card-icon {
    background: #f3f4f6;
    color: #6b7280;
}

/* ==========================================
   BOTÕES - AZUL MODERNO
   ========================================== */
.btn {
    font-weight: 600;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.btn-primary {
    background: #3b82f6;
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-outline {
    background: transparent;
    border: 1px solid #e5e7eb;
    color: #6b7280;
}

.btn-outline:hover {
    background: #f9fafb;
    border-color: #3b82f6;
    color: #3b82f6;
}

/* ==========================================
   TABELAS - LIMPO E ELEGANTE
   ========================================== */
.table-container {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

table {
    background: #ffffff;
}

thead {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

th {
    color: #374151;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px;
}

td {
    color: #1f2937;
    border-bottom: 1px solid #f3f4f6;
    padding: 16px;
}

tbody tr {
    transition: all 0.15s ease;
}

tbody tr:hover {
    background: #f9fafb;
}

tbody tr:last-child td {
    border-bottom: none;
}

/* ==========================================
   FORMULÁRIOS - CLEAN E MODERNO
   ========================================== */
.form-group {
    margin-bottom: 20px;
}

label {
    color: #374151;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

input,
select,
textarea {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #1f2937;
    padding: 12px 16px;
    border-radius: 8px;
    width: 100%;
    transition: all 0.2s ease;
    font-size: 14px;
}

input:hover,
select:hover,
textarea:hover {
    border-color: #d1d5db;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

input::placeholder {
    color: #9ca3af;
}

/* ==========================================
   BADGES E STATUS
   ========================================== */
.badge {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.badge-success {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #d1fae5;
}

.badge-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.badge-warning {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fed7aa;
}

.badge-info {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
}

.badge-neutral {
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
}

/* ==========================================
   GRÁFICOS - FUNDO LIMPO
   ========================================== */
.chart-container {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.chart-container h3 {
    color: #111827;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-container h3 svg {
    color: #6b7280;
}

/* ==========================================
   ALERTAS - CLEAN E SUAVE
   ========================================== */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid;
    font-size: 14px;
}

.alert-success {
    background: #ecfdf5;
    border-color: #10b981;
    color: #065f46;
}

.alert-danger {
    background: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

.alert-warning {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #92400e;
}

.alert-info {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1e40af;
}

/* ==========================================
   MODAIS - CLEAN E ELEGANTE
   ========================================== */
.modal {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
}

.modal-header {
    border-bottom: 1px solid #f3f4f6;
    background: #fafafa;
    padding: 20px 24px;
}

.modal-header h2 {
    color: #111827;
    font-weight: 600;
}

.modal-body {
    color: #374151;
    padding: 24px;
}

/* ==========================================
   PERÍODO SELECTOR
   ========================================== */
#periodo-selector {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #1f2937;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
}

#periodo-selector:hover {
    border-color: #d1d5db;
}

#periodo-selector:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ==========================================
   ACTIONS BAR
   ========================================== */
.actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: #f5f5f5;
    color: #6b7280;
    border-top: 1px solid #e5e7eb;
    padding: 16px;
    text-align: center;
    font-size: 13px;
}

/* ==========================================
   SCROLLBAR - CLEAN
   ========================================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* ==========================================
   SEÇÃO TOP 10 CONTAS
   ========================================== */
.top10-container {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.top10-item {
    padding: 12px;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.15s ease;
}

.top10-item:hover {
    background: #f9fafb;
    border-radius: 8px;
}

.top10-item:last-child {
    border-bottom: none;
}

.ranking {
    color: #3b82f6;
    font-weight: 700;
}

/* ==========================================
   RESPONSIVO
   ========================================== */
@media (max-width: 768px) {
    .sidebar {
        width: 0;
        overflow: hidden;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 20px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   ANIMAÇÕES SUAVES
   ========================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card,
.table-container,
.chart-container {
    animation: fadeIn 0.3s ease;
}
