/* =========================================
   REMUNERATUS PRO - DESIGN SYSTEM (VELO STYLE)
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Roboto:wght@400;500;700&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* --- PALETA VELO / ZEUS --- */
    --primary: #2e0249;       /* Roxo Profundo */
    --primary-light: #4a148c; 
    --accent: #f97316;        /* Laranja Vibrante */
    --accent-hover: #ea580c;
    
    --velo-orange: #FF3D00;
    --velo-purple: #591B72;
    --velo-gray: #555555;
    --velo-hover: #f5f5f5;

    /* Cores de Fundo e Texto */
    --bg-body: #f3f4f6;       /* Cinza claro fundo */
    --bg-card: #ffffff;       /* Branco cards */
    --text-main: #1f2937;     /* Texto Principal */
    --text-muted: #6b7280;    /* Texto Secundário */
    
    /* Cores Funcionais */
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    
    /* UI */
    --border: #e5e7eb;
    --radius: 8px;
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --sidebar-width: 260px;
}

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    height: 100vh;
    overflow: hidden;
    font-size: 14px;
}

/* =========================================
   TELA DE LOGIN (O QUE ESTAVA FALTANDO)
   ========================================= */

#loginOverlay {
    position: fixed;
    inset: 0;
    background-color: #f3f4f6; /* Fundo cinza claro */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
}

/* O Elemento Gráfico (Círculo Roxo Gigante) */
.login-bg-shape {
    position: absolute;
    width: 90vh;
    height: 90vh;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a148c 0%, #880e4f 100%);
    left: -25vh;
    top: 50%;
    transform: translateY(-50%);
    mask: radial-gradient(transparent 45%, black 46%);
    -webkit-mask: radial-gradient(transparent 45%, black 46%);
    z-index: 0;
}

.login-box {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 8px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    position: relative;
    z-index: 10;
}

.login-header { text-align: center; margin-bottom: 2rem; }

.form-group-login { margin-bottom: 1.5rem; }

.form-group-login label {
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    color: #4a0072;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}

.form-group-login input {
    width: 100%;
    padding: 0.9rem 1rem;
    background-color: #eef2f6; /* Fundo input cinza */
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    color: #333;
    transition: all 0.2s;
}
.form-group-login input:focus {
    background-color: #e2e8f0;
    box-shadow: 0 0 0 2px rgba(74, 0, 114, 0.1);
}

.password-wrapper { position: relative; }
.toggle-pass { 
    position: absolute; right: 15px; top: 50%; transform: translateY(-50%); 
    color: #94a3b8; cursor: pointer; 
}

.login-links { display: flex; flex-direction: column; gap: 5px; margin-bottom: 2rem; }
.login-links a { font-size: 0.85rem; color: #64748b; text-decoration: none; }
.login-links a:hover { color: #4a0072; text-decoration: underline; }

#loginBtn {
    width: 100%;
    padding: 1rem;
    background-color: #ff4500; /* Laranja Velo */
    color: white;
    border: none;
    border-radius: 50px; /* Botão Pílula */
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.3);
}
#loginBtn:hover {
    background-color: #e03e00;
    transform: translateY(-2px);
}

/* =========================================
   LAYOUT PRINCIPAL (APP SHELL)
   ========================================= */
.app-layout { display: flex; height: 100vh; width: 100vw; }

/* SIDEBAR VELO */
.sidebar {
    width: var(--sidebar-width);
    background-color: #ffffff;
    color: var(--velo-gray);
    display: flex; flex-direction: column; flex-shrink: 0;
    font-family: 'Roboto', sans-serif;
    border-right: 1px solid #e0e0e0;
    box-shadow: 2px 0 10px rgba(0,0,0,0.03);
}

.sidebar-header {
    height: 70px; display: flex; align-items: center; padding: 0 1.5rem;
    border-bottom: 1px solid #e0e0e0; gap: 12px;
}
.sidebar-logo-icon { font-size: 1.8rem; color: var(--velo-purple); } /* Ícone Logo Maior */
.sidebar-brand span { font-weight: 700; font-size: 1.3rem; color: var(--velo-purple); letter-spacing: 0.5px; }
.sidebar-brand small { font-size: 0.8rem; color: #999; display: block; font-weight: 400; }

.sidebar-menu { flex: 1; padding: 15px 0; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }

.menu-label {
    font-size: 0.85rem; /* Aumentado de 0.75rem */
    text-transform: uppercase; color: #afafaf; font-weight: 700;
    margin: 20px 0 8px 25px; letter-spacing: 0.8px;
}

.menu-label {
    font-size: 0.75rem; text-transform: uppercase; color: #afafaf; font-weight: 600;
    margin: 15px 0 5px 25px; letter-spacing: 0.5px;
}

/* Item do Menu */
/* Item do Menu */
.nav-item {
    display: flex; align-items: center; gap: 18px; padding: 14px 25px; /* Mais espaçamento */
    color: var(--velo-gray); background: transparent; border: none;
    cursor: pointer; text-align: left; border-radius: 0;
    font-weight: 500; transition: all 0.2s; 
    font-size: 17px; /* Aumentado de 15px para 17px */
    font-family: 'Roboto', sans-serif; border-left: 5px solid transparent;
    text-decoration: none;
}
.nav-item i { 
    width: 26px; text-align: center; 
    font-size: 22px; /* Aumentado de 18px para 22px */
    color: var(--velo-purple); 
}

.nav-item:hover { background-color: var(--velo-hover); color: #333; border-left-color: #ccc; }

.nav-item.active {
    background-color: var(--velo-orange); color: white !important;
    font-weight: 700; box-shadow: 0 4px 8px rgba(255, 61, 0, 0.25);
    border-left-color: var(--velo-orange);
}
.nav-item.active i { color: white !important; }

/* Rodapé Sidebar */
.sidebar-footer {
    padding: 1rem; border-top: 1px solid #e0e0e0;
    background-color: #fcfcfc;
}
.btn-logout {
    width: 100%; border: 1px solid #e0e0e0; background: white; color: #666;
    padding: 8px; border-radius: 6px; font-size: 0.85rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: all 0.2s;
}
.btn-logout:hover { background: #fee2e2; color: var(--danger); border-color: #fecaca; }

/* MAIN CONTENT */
.main-content { flex: 1; display: flex; flex-direction: column; background: var(--bg-body); overflow: hidden; }

/* =========================================
   TOPBAR ESTILO VELO (ROXO DEGRADÊ)
   ========================================= */
.topbar {
    height: 64px; 
    /* O Segredo: Degradê Roxo igual da imagem */
    background: linear-gradient(90deg, var(--primary) 0%, #79215A 100%);
    border-bottom: none;
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 0 2rem;
    flex-shrink: 0; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    color: white; /* Texto branco */
}

.topbar h2 { 
    font-size: 1.1rem; 
    font-weight: 500; 
    color: white; /* Força branco */
    margin: 0; 
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
}

/* Badge de Data com fundo translúcido */
.date-badge { 
    background: rgba(255, 255, 255, 0.15); 
    padding: 6px 15px; 
    border-radius: 4px; 
    font-size: 0.8rem; 
    font-weight: 500; 
    color: white; 
    border: 1px solid rgba(255,255,255,0.2);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Ícones de notificação no header */
.btn-notification {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    position: relative;
}
.btn-notification:hover { opacity: 0.8; }
.topbar h2 { font-size: 1.25rem; font-weight: 700; color: var(--text-main); margin: 0; }
.topbar-right { display: flex; align-items: center; gap: 15px; }

.content-body { flex: 1; padding: 2rem; overflow-y: auto; }

/* Tab Content Logic */
.tab-content { display: none; animation: fadeIn 0.3s ease; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================
   COMPONENTES GERAIS
   ========================================= */
.card {
    background: white; border-radius: var(--radius); border: 1px solid var(--border);
    box-shadow: var(--shadow-sm); margin-bottom: 1.5rem; overflow: hidden;
}
.card-header {
    padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); 
    display: flex; justify-content: space-between; align-items: center; background: #fff;
}
.card-header h3 { font-size: 1rem; font-weight: 700; color: var(--text-main); margin: 0; }

.btn {
    padding: 0.6rem 1.2rem; border-radius: 6px; font-weight: 600; border: none; cursor: pointer;
    font-size: 0.9rem; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.2s;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-text { background: transparent; color: var(--text-muted); }
.btn-text:hover { color: var(--text-main); }

.form-control {
    width: 100%; padding: 0.6rem 0.8rem; border: 1px solid var(--border);
    border-radius: 6px; font-size: 0.9rem; background: #fff;
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1); }

/* =========================================
   ESTILOS ESPECÍFICOS REMUNERATUS
   ========================================= */

/* KPI Cards */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-bottom: 1.5rem; }
.kpi-card {
    background: white; padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--border);
    display: flex; align-items: center; gap: 1rem; box-shadow: var(--shadow-sm);
}
.kpi-icon {
    width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.kpi-info h3 { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; margin: 0; text-transform: uppercase; }
.kpi-info p { font-size: 1.5rem; font-weight: 800; margin: 5px 0 0 0; color: var(--text-main); }

/* Cores KPI */
.kpi-blue .kpi-icon { background: #e0f2fe; color: #0284c7; }
.kpi-purple .kpi-icon { background: #f3e8ff; color: #9333ea; }
.kpi-green .kpi-icon { background: #dcfce7; color: #16a34a; }

/* Rotinas Grid */
.section-label { font-size: 0.8rem; text-transform: uppercase; color: var(--text-muted); font-weight: 700; margin-bottom: 1rem; border-left: 4px solid var(--primary); padding-left: 10px; }
.routines-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.routine-card {
    background: white; padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--border);
    cursor: pointer; transition: all 0.2s; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.routine-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.routine-card i { font-size: 2rem; color: var(--velo-purple); }
.routine-card h4 { font-size: 0.9rem; font-weight: 600; color: var(--text-main); margin: 0; }

/* Relógio de Ponto */
.clock-container { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.clock-card { flex: 1; min-width: 300px; text-align: center; padding: 2rem; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.digital-clock { font-size: 3.5rem; font-weight: 800; color: var(--text-main); letter-spacing: 2px; margin: 10px 0; font-family: 'Roboto', monospace; }
#currentDate { color: var(--text-muted); font-weight: 500; margin-bottom: 20px; }

/* Tabela Moderna */
.modern-table { width: 100%; border-collapse: collapse; }
.modern-table th { background: #f8fafc; padding: 1rem; text-align: left; font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); font-weight: 700; border-bottom: 2px solid var(--border); }
.modern-table td { padding: 1rem; border-bottom: 1px solid var(--border); color: var(--text-main); vertical-align: middle; }
.table-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.btn-icon { width: 32px; height: 32px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; border: none; cursor: pointer; transition: 0.2s; }
.bg-edit { background: #e0f2fe; color: #0284c7; } .bg-edit:hover { background: #0284c7; color: white; }
.bg-delete { background: #fee2e2; color: #dc2626; } .bg-delete:hover { background: #dc2626; color: white; }
.bg-pay { background: #dcfce7; color: #16a34a; } .bg-pay:hover { background: #16a34a; color: white; }
.bg-warn { background: #fef3c7; color: #d97706; } .bg-info { background: #f3e8ff; color: #9333ea; }

/* Modais */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; display: none; justify-content: center; align-items: center; }
.modal { background: white; width: 500px; max-width: 90%; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.modal-header { background: var(--primary); color: white; padding: 1rem 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.modal-body { padding: 1.5rem; max-height: 70vh; overflow-y: auto; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); background: #f9fafb; display: flex; justify-content: flex-end; gap: 10px; }
.close { cursor: pointer; color: white; opacity: 0.8; } .close:hover { opacity: 1; }

/* =========================================
   ESTILOS MOBILE (APP MODE)
   ========================================= */

/* Botão do Menu Mobile (Hambúrguer) - Inicialmente oculto no Desktop */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 15px;
}

/* Fundo Escuro quando o menu abre */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none; /* Controlado via JS */
    backdrop-filter: blur(2px);
}

@media (max-width: 768px) {
    /* 1. Layout Geral */
    .app-layout { 
        flex-direction: column; 
        height: 100vh; /* Garante altura total */
    }
    
    .main-content {
        width: 100%;
        height: 100%;
    }

    /* 2. Sidebar (Gaveta Deslizante) */
    .mobile-menu-btn { display: block; } /* Mostra o botão */

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 280px; /* Largura fixa confortável */
        z-index: 1001; /* Acima de tudo */
        transform: translateX(-100%); /* Esconde na esquerda */
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-right: 1px solid #eee;
    }
    
    .sidebar.open {
        transform: translateX(0); /* Desliza para dentro */
        box-shadow: 5px 0 25px rgba(0,0,0,0.2);
    }
    
    .sidebar-menu { display: flex; } /* Força display flex mesmo no mobile */

    /* 3. Topbar Ajustada */
    .topbar {
        padding: 0 1rem;
        justify-content: flex-start; /* Alinha itens à esquerda */
    }
    .topbar h2 { font-size: 1rem; }
    .topbar-right { margin-left: auto; gap: 10px; } /* Empurra ícones pra direita */
    .date-badge { display: none; } /* Oculta data pra economizar espaço */

    /* 4. Tabelas Responsivas (Scroll Horizontal) */
    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Scroll suave no iOS */
        border: 1px solid #eee;
        border-radius: 8px;
    }
    
    .velo-table, .modern-table {
        min-width: 600px; /* Força largura mínima pra ativar scroll */
    }
    
    .velo-table th, .velo-table td {
        white-space: nowrap; /* Impede quebra de linha feia */
        padding: 12px 10px;
    }

    /* 5. Modais em Tela Cheia ou Quase */
    .modal {
        width: 95% !important;
        max-width: 95% !important;
        max-height: 90vh;
        margin: 10px;
        display: flex;
        flex-direction: column;
    }
    .modal-body { overflow-y: auto; flex: 1; }
    .form-row { grid-template-columns: 1fr !important; gap: 10px !important; } /* Inputs empilhados */
    .row { flex-direction: column !important; } /* Flex rows viram colunas */

    /* 6. Dashboard e Grids */
    .kpi-grid { grid-template-columns: 1fr; gap: 10px; }
    .routines-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    
    .finance-header-layout { padding: 1rem; }
    .finance-filters-row { flex-direction: column; }
    .finance-title-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .finance-title-row button { width: 100%; } /* Botões full width */
    
    /* Login Ajustado */
    .login-bg-shape { display: none; } /* Remove peso visual no mobile */
    .login-box { margin: 20px; width: auto; box-shadow: none; background: transparent; }
}
/* ============================================================
   ESTILOS DE TABELA AVANÇADA (FINANCEIRO)
   ============================================================ */

.full-height-card {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 140px);
    padding: 0 !important; /* Remove padding padrão do card para a tabela encostar */
}

/* Cabeçalho e Filtros */
.finance-header-layout {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    background: #fff;
}

.finance-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.finance-filters-row {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
}

.filter-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

/* Tabela Estilo Velo */
.table-responsive {
    flex: 1;
    overflow: auto;
}

.velo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.velo-table thead th {
    background-color: #f8fafc;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.velo-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.1s;
}
.velo-table tbody tr:hover {
    background-color: #fdf4ff; /* Hover Roxo Suave */
}

.velo-table td {
    padding: 1rem;
    color: var(--text-main);
    vertical-align: middle;
}

.text-right { text-align: right !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }

/* Rodapé de Totais */
.finance-footer-summary {
    background: #fff;
    border-top: 2px solid var(--border);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 3rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
}

.summary-item { text-align: right; }
.summary-item span {
    display: block; font-size: 0.75rem; color: var(--text-muted);
    text-transform: uppercase; font-weight: 600;
}
.summary-item strong { font-size: 1.1rem; color: var(--text-main); }
.summary-item.total strong { font-size: 1.3rem; }

/* Ajuste Responsivo */
@media (max-width: 768px) {
    .finance-filters-row { flex-direction: column; align-items: stretch; gap: 10px; }
    .finance-footer-summary { flex-direction: column; gap: 1rem; align-items: flex-end; }
}
/* ============================================================
   MELHORIAS NA TABELA DE COLABORADORES
   ============================================================ */

/* 1. Foto de Perfil Maior e com Borda */
.table-avatar {
    width: 50px;  /* Aumentado de 36px para 50px */
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border); /* Borda sutil para destacar */
    padding: 2px; /* Espaço entre foto e borda */
    background: #fff;
}

/* 2. Badges de Status (Pílulas Coloridas) */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    min-width: 80px;
    text-align: center;
}

.status-badge.active {
    background-color: #dcfce7; /* Verde Claro */
    color: #166534;            /* Verde Escuro */
    border: 1px solid #bbf7d0;
}

.status-badge.inactive {
    background-color: #fee2e2; /* Vermelho Claro */
    color: #991b1b;            /* Vermelho Escuro */
    border: 1px solid #fecaca;
}

/* Ajuste de alinhamento vertical da tabela */
.modern-table td {
    vertical-align: middle;
}
/* =========================================
   FILTROS FINANCEIROS (ESTILO VELO)
   ========================================= */

/* Container dos filtros */
.finance-header-layout {
    background-color: #fff;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
}

/* Título da página (Breadcrumb style) */
.finance-title-row h3 {
    color: #666;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
}
.finance-title-row h3 strong {
    font-weight: 700;
    color: var(--primary); /* Roxo */
}

/* Botão "Nova Conta" Roxo Escuro (igual imagem) */
.btn-purple-dark {
    background-color: #591B72;
    color: white;
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 6px rgba(89, 27, 114, 0.2);
}
.btn-purple-dark:hover {
    background-color: #4a148c;
    transform: translateY(-1px);
}

/* Inputs de Filtro */
.filter-group label {
    color: var(--primary); /* Roxo */
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 5px;
    display: block;
}

.filter-group input, 
.filter-group select {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 4px; /* Bordas levemente arredondadas */
    padding: 8px 12px;
    font-size: 0.9rem;
    color: #333;
    height: 40px; /* Altura fixa igual imagem */
}

/* Checkboxes (Estilo Roxo) */
.checkbox-custom input:checked {
    accent-color: #591B72; /* Roxo */
}
.checkbox-custom span {
    color: #591B72; /* Texto roxo */
    font-weight: 600;
    font-size: 0.9rem;
}
/* Botão de Extrato (Roxo Escuro/Indigo) */
.bg-extract {
    background: #4338ca; /* Indigo */
    color: white;
}
.bg-extract:hover {
    background: #312e81;
    color: #e0e7ff;
}

/* Estilo das Listas do Extrato */
.extract-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.85rem;
}
.extract-item:last-child { border-bottom: none; }
.extract-item:nth-child(even) { background-color: #f8fafc; }

.extract-date { color: #64748b; font-size: 0.75rem; display: block; }
.extract-desc { font-weight: 600; color: #334155; }
.extract-value { font-weight: 700; font-size: 0.9rem; }
.text-red { color: var(--danger); }
/* ... (Mantenha todo o seu CSS anterior) ... */

/* =========================================
   NOTIFICAÇÕES TOAST (NOVO)
   ========================================= */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    min-width: 300px;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideIn 0.3s ease forwards;
    border-left: 5px solid #ccc;
    font-family: 'Inter', sans-serif;
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.info { border-left-color: var(--primary); }

.toast i { font-size: 1.2rem; }
.toast.success i { color: var(--success); }
.toast.error i { color: var(--danger); }
.toast.info i { color: var(--primary); }

.toast-message { font-size: 0.9rem; color: var(--text-main); font-weight: 500; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateX(100%); }
}
/* Botão para o Demonstrativo Detalhado */
.bg-details {
    background-color: #4b0082; /* Indigo Profundo */
    color: white;
}
.bg-details:hover {
    background-color: #3a0061;
    color: #e0e7ff;
}
/* =========================================
   ESTILOS DA LOGO (PERSONALIZAÇÃO)
   ========================================= */

/* Logo na tela de Login */
.logo-login-img {
    width: auto;
    max-width: 200px; /* Limita a largura para não estourar o card */
    height: auto;
    display: block;
    margin: 0 auto 15px auto; /* Centraliza e dá espaço para o título */
}

/* Logo na Sidebar (Menu do Sistema) */
.logo-sidebar-img {
    height: 40px; /* Altura fixa para alinhar com o menu */
    width: auto;  /* Largura automática proporcional */
    max-width: 140px;
    object-fit: contain; /* Garante que não distorça */
    margin-right: 10px;
}

/* Ajuste para remover o padding extra onde estava o ícone antigo */
.sidebar-header {
    justify-content: flex-start; /* Alinha à esquerda */
    padding-left: 20px;
}


