:root {
    /* Paleta quente bege/vermelho */
    --primary: #C41E1E;
    --primary-light: #F0EDED;
    --primary-dark: #961717;
    --primary-hover: #961717;
    
    --secondary: #D4CBB8;
    --secondary-light: #E5DCCB;
    
    --accent-mint: #059669;
    --accent-lavender: #8B5CF6;
    --accent-rose: #DC2626;
    --accent-sky: #0EA5E9;
    --accent-peach: #D97706;
    --accent-lemon: #D97706;
    
    --bg-body: #8A8377;
    --bg-primary: #E5DCCB;
    --bg-secondary: #D4CBB8;
    --bg-card: #E5DCCB;
    --bg-card-alt: #F6F1E9;
    
    --text-primary: #1A1A1A;
    --text-secondary: #4A4A4A;
    --text-muted: #6B6B6B;
    
    --border-light: #D4CBB8;
    --border-soft: #D4CBB8;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    
    --radius-sm: 6px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    --success: #059669;
    --success-bg: #F0FDF4;
    --success-text: #047857;
    --warning: #D97706;
    --warning-bg: #FFFBEB;
    --warning-text: #92400E;
    --danger: #DC2626;
    --danger-bg: #FEF2F2;
    --danger-text: #991B1B;
    --info: #0EA5E9;
    --info-text: #0369A1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #8A8377;
    height: 100%;
    color: #1A1A1A;
    line-height: 1.5;
    margin: 0;
    overflow-x: hidden;
}

/* Container principal */
.dashboard-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 16px;
    background: #8A8377;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    position: relative;
}

.dashboard-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #8A8377;
    z-index: 0;
    pointer-events: none;
}

.dashboard-container > * {
    position: relative;
    z-index: 1;
}

/* Esconder scrollbar */
.dashboard-container::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.dashboard-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.dashboard-header .logo h1 {
    -webkit-text-fill-color: #FFFFFF;
    background: none;
    color: #FFFFFF;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Títulos de página */
.page-title {
    font-size: 24px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title .icon {
    font-size: 28px;
}

/* Cards de resumo */
.cards-resumo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.card-resumo {
    background: #E5DCCB;
    border: 1px solid #D4CBB8;
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-resumo:nth-child(2) {
    background: #E5DCCB;
    border-color: #D4CBB8;
}

.card-resumo:nth-child(3) {
    background: #E5DCCB;
    border-color: #D4CBB8;
}

.card-resumo:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(138, 131, 119, 0.2);
    border-color: #C4B9A5;
}

.card-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-icon.blue {
    background: rgba(196, 30, 30, 0.15);
}

.card-icon.mint {
    background: #DCFCE7;
}

.card-icon.rose {
    background: #FEE2E2;
}

.card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-label {
    color: #4A4A4A;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.card-value {
    font-size: 28px;
    font-weight: 700;
    color: #1A1A1A;
}

.card-value.positivo {
    color: #059669;
}

.card-value.negativo {
    color: #DC2626;
}

.card-subtitle {
    font-size: 12px;
    color: #6B6B6B;
    margin-top: 4px;
}

/* Gráficos */
.graficos-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.grafico-card {
    background: #E5DCCB;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #D4CBB8;
    transition: all 0.3s ease;
}

.grafico-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #C41E1E;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.grafico-card:hover {
    box-shadow: 0 8px 32px rgba(138, 131, 119, 0.2);
    transform: translateY(-2px);
}

.grafico-container {
    height: 286px;
    position: relative;
}

/* Alertas */
.alertas-section {
    background: #F6F1E9;
    border: 1px solid #D4CBB8;
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
}

.alertas-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #92400E;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alerta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(251, 191, 36, 0.2);
}

.alerta-item:last-child {
    border-bottom: none;
}

.alerta-icone {
    font-size: 24px;
}

.alerta-mensagem {
    color: #92400E;
    font-size: 14px;
}

/* Menu rápido */
.menu-rapido {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.menu-item {
    background: #E5DCCB;
    border-radius: var(--radius-lg);
    padding: 14px 12px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #D4CBB8;
    transition: all 0.3s ease;
}

.menu-item:nth-child(2) {
    border-color: rgba(5, 150, 105, 0.3);
}

.menu-item:nth-child(3) {
    border-color: rgba(217, 119, 6, 0.3);
}

.menu-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.menu-icone {
    width: 39px;
    height: 39px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.menu-item:nth-child(1) .menu-icone {
    background: rgba(196, 30, 30, 0.12);
}

.menu-item:nth-child(2) .menu-icone {
    background: rgba(16, 185, 129, 0.12);
}

.menu-item:nth-child(3) .menu-icone {
    background: rgba(245, 158, 11, 0.12);
}

.menu-texto {
    color: #1A1A1A;
    font-weight: 600;
    font-size: 12px;
}

/* Filtros */
.filtros {
    background: #E5DCCB;
    padding: 14px 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #D4CBB8;
}

.filtros-form {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filtro-grupo {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 140px;
}

.filtro-grupo label {
    font-size: 12px;
    font-weight: 600;
    color: #1A1A1A;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    padding: 10px 14px;
    border: 1px solid #D4CBB8;
    border-radius: var(--radius);
    font-size: 14px;
    background: rgba(138, 131, 119, 0.3);
    color: #1A1A1A;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #C41E1E;
    box-shadow: 0 0 0 3px rgba(196, 130, 30, 0.15);
}

.btn-filtrar {
    padding: 8px 20px;
    background: #C41E1E;
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-filtrar:hover {
    background: #961717;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* Resumo de transações */
.resumo-transacoes {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--accent-mint) 0%, #D1FAE5 100%);
    border-radius: var(--radius);
    color: var(--success-text);
}

.resumo-transacoes strong {
    font-size: 18px;
    font-weight: 700;
}

/* Tabela */
.tabela-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    overflow: hidden;
    margin-bottom: 24px;
}

.tabela-transacoes {
    width: 100%;
    border-collapse: collapse;
}

.tabela-transacoes th {
    background: var(--bg-secondary);
    padding: 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-light);
}

.tabela-transacoes td {
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
}

.tabela-transacoes tr:hover {
    background: var(--bg-primary);
}

.tabela-transacoes tr:last-child td {
    border-bottom: none;
}

.categoria-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #F6F1E9 100%);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-dark);
}

.valor {
    font-weight: 700;
    color: var(--danger-text);
}

/* Paginação */
.paginacao {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    padding: 8px;
}

.btn-pagina {
    padding: 10px 20px;
    background: var(--bg-card);
    color: var(--primary);
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.btn-pagina:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagina-info {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Sem dados */
.sem-dados {
    text-align: center;
    padding: 70px 47px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    margin-bottom: 16px;
}

.sem-dados .icon {
    font-size: 75px;
    margin-bottom: 23px;
}

.sem-dados p {
    font-size: 21px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.sem-dados .hint {
    font-size: 16px;
    color: var(--text-muted);
}

/* ============================================
   LOGIN — Glassmorphism Redesign
   ============================================ */

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes floatShape1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(30px, -40px) scale(1.05); }
}

@keyframes floatShape2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-40px, 30px) scale(0.95); }
}

@keyframes floatShape3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(20px, 20px) scale(1.08); }
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50%      { opacity: 1; }
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    background: #8A8377;
}

/* Formas decorativas flutuantes */
.login-container::before,
.login-container::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.login-container::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(196, 30, 30, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: floatShape1 20s ease-in-out infinite;
}

.login-container::after {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(138, 131, 119, 0.3) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    animation: floatShape2 25s ease-in-out infinite;
}

.login-shape-extra {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(122, 115, 103, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: floatShape3 18s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Wrapper split layout */
.login-wrapper {
    display: flex;
    max-width: 960px;
    width: 100%;
    min-height: 520px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    animation: fadeSlideUp 0.6s ease-out;
}

/* Painel de estatísticas (esquerda) */
.login-stats {
    flex: 1;
    background: #F6F1E9;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #1A1A1A;
    position: relative;
    overflow: hidden;
}

.login-stats::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(138, 131, 119, 0.15);
    border-radius: 50%;
    top: -60px;
    right: -60px;
}

.login-stats::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(138, 131, 119, 0.1);
    border-radius: 50%;
    bottom: -40px;
    left: -30px;
}

.login-stats h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.login-stats .stats-subtitle {
    font-size: 15px;
    opacity: 1;
    color: #4A4A4A;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.stat-item {
    background: rgba(138, 131, 119, 0.2);
    border: 1px solid #D4CBB8;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #4A4A4A;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Depoimento */
.testimonial {
    background: rgba(138, 131, 119, 0.15);
    border: 1px solid #D4CBB8;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    z-index: 1;
    transition: opacity 0.5s ease;
}

.testimonial-quote {
    font-size: 14px;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 12px;
    color: #4A4A4A;
}

.testimonial-author {
    font-size: 13px;
    font-weight: 600;
    color: #1A1A1A;
}

.testimonial-dots {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    justify-content: center;
}

.testimonial-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(138, 131, 119, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot.active {
    background: #C41E1E;
    transform: scale(1.2);
}

/* Card de login (direita) */
.login-box {
    flex: 0 0 400px;
    background: #E5DCCB;
    border: 1px solid #D4CBB8;
    padding: 48px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo-icon {
    width: 64px;
    height: 64px;
    background: #F6F1E9;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 6px;
}

.login-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.login-logo p {
    color: #4A4A4A;
    font-size: 14px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #1A1A1A;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #D4CBB8;
    border-radius: 10px;
    font-size: 15px;
    background: rgba(138, 131, 119, 0.3);
    color: #1A1A1A;
    transition: all 0.2s ease;
}

.form-group input::placeholder {
    color: rgba(26, 26, 26, 0.5);
}

.form-group input:focus {
    outline: none;
    border-color: #C41E1E;
    background: rgba(138, 131, 119, 0.4);
    box-shadow: 0 0 0 3px rgba(196, 30, 30, 0.15);
}

.btn-primary {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #C41E1E 0%, #961717 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(196, 30, 30, 0.3);
    letter-spacing: 0.3px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #961717 0%, #7A1414 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 30, 0.4);
}

.btn-secondary {
    padding: 12px 20px;
    background: #D4CBB8;
    color: #1A1A1A;
    border: 1px solid #C4B9A5;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-secondary:hover {
    background: #C4B9A5;
    border-color: #B0A590;
}

.links {
    text-align: center;
    margin-top: 20px;
}

.links a {
    color: #C41E1E;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.links a:hover {
    color: #961717;
    text-decoration: underline;
}

.alert {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-danger {
    background: var(--danger-bg);
    color: var(--danger-text);
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.alert-success {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid rgba(5, 150, 105, 0.3);
}

/* Metas */
.btn-nova-meta {
    background: linear-gradient(135deg, #C41E1E 0%, #961717 100%);
    color: #FFFFFF;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 24px;
    transition: all 0.2s ease;
}

.btn-nova-meta:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.form-nova-meta {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.metas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.meta-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--accent-mint);
    transition: all 0.2s ease;
}

.meta-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.meta-card.alerta {
    border-left-color: var(--warning);
}

.meta-card.excedido {
    border-left-color: var(--danger);
}

.meta-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.meta-icone {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #F6F1E9 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.meta-nome {
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.btn-excluir {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.btn-excluir:hover {
    opacity: 1;
}

.meta-valores {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
}

.valor-atual {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.valor-limite {
    color: var(--text-secondary);
    font-size: 14px;
}

.progresso-container {
    margin-bottom: 12px;
}

.progresso-barra {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.progresso-preenchido {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-mint) 0%, var(--success) 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.meta-card.alerta .progresso-preenchido {
    background: linear-gradient(90deg, var(--secondary) 0%, var(--warning) 100%);
}

.meta-card.excedido .progresso-preenchido {
    background: linear-gradient(90deg, var(--accent-rose) 0%, var(--danger) 100%);
}

.progresso-info {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
}

.badge-ok {
    color: var(--success-text);
}

.badge-alerta {
    color: var(--warning-text);
}

.badge-excedido {
    color: var(--danger-text);
}

.meta-restante {
    text-align: center;
    padding: 12px;
    background: linear-gradient(135deg, var(--accent-mint) 0%, #D1FAE5 100%);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    color: var(--success-text);
}

/* Insights */
.insights-section {
    margin-bottom: 28px;
}

.insights-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.insight-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--primary);
    transition: all 0.2s ease;
}

.insight-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.insight-card.aumento {
    border-left-color: var(--accent-rose);
}

.insight-card.reducao {
    border-left-color: var(--accent-mint);
}

.insight-card.top_categoria {
    border-left-color: var(--secondary);
}

.insight-icone {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #F6F1E9 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.insight-conteudo {
    flex: 1;
}

.insight-mensagem {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
}

.insight-valor {
    font-weight: 700;
    color: var(--primary);
    font-size: 16px;
}

.comparativo-lista {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.comparativo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s;
}

.comparativo-item:hover {
    background: var(--bg-primary);
}

.comparativo-item:last-child {
    border-bottom: none;
}

.comparativo-categoria {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 160px;
}

.categoria-icone {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #F6F1E9 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.categoria-nome {
    font-weight: 600;
    color: var(--text-primary);
}

.comparativo-valores {
    display: flex;
    align-items: center;
    gap: 32px;
}

.valor-mes {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.valor-mes .label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.valor-mes .valor {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.variacao {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
}

.variacao.aumento {
    background: linear-gradient(135deg, var(--accent-rose) 0%, #FEE2E2 100%);
    color: var(--danger-text);
}

.variacao.reducao {
    background: linear-gradient(135deg, var(--accent-mint) 0%, #D1FAE5 100%);
    color: var(--success-text);
}

.variacao.estavel {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.variacao .seta {
    font-size: 16px;
}

.padroes-lista {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    padding: 8px 0;
}

.padrao-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
}

.padrao-item:last-child {
    border-bottom: none;
}

.padrao-icone {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-lavender) 0%, #F3E8FF 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.padrao-mensagem {
    margin: 0;
    font-size: 14px;
    color: var(--text-primary);
}

/* Responsivo */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 16px;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .header-actions .user-greeting {
        font-size: 13px;
    }
    
    .header-logout {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .header-logout span {
        display: inline;
    }
    
    .page-title {
        font-size: 20px;
        text-align: center;
        justify-content: center;
    }
    
    .cards-resumo {
        grid-template-columns: 1fr;
    }
    
    .graficos-row {
        grid-template-columns: 1fr;
    }
    
    .grafico-container {
        height: 280px;
    }
    
    .menu-rapido {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filtros-form {
        flex-direction: column;
    }
    
    .filtro-grupo {
        width: 100%;
    }
    
    .form-control {
        width: 100%;
    }
    
    /* Tabela responsiva - esconde coluna descrição em telas pequenas */
    .tabela-transacoes th:nth-child(2),
    .tabela-transacoes td:nth-child(2) {
        display: none;
    }
    
    .tabela-transacoes th,
    .tabela-transacoes td {
        padding: 12px 8px;
        font-size: 13px;
    }
    
    .categoria-tag {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    /* Comparativo insights */
    .comparativo-item {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .comparativo-valores {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }
    
    .valor-mes {
        min-width: auto;
    }
    
    /* Metas */
    .metas-grid {
        grid-template-columns: 1fr;
    }
    
    .meta-valores {
        flex-direction: column;
        gap: 4px;
    }
    
    /* Form nova meta */
    .form-row {
        flex-direction: column;
    }
    
    .login-box {
        padding: 32px 24px;
    }
}

/* Telas muito pequenas - esconde também categoria */
@media (max-width: 480px) {
    .tabela-transacoes th:nth-child(3),
    .tabela-transacoes td:nth-child(3) {
        display: none;
    }
    
    .tabela-transacoes th,
    .tabela-transacoes td {
        padding: 10px 6px;
        font-size: 12px;
    }
    
    .valor {
        font-size: 13px;
    }
    
    .resumo-transacoes {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    /* Ajustes para gráficos em telas pequenas */
    .grafico-container {
        height: 250px;
    }
    
    /* Cards de resumo em tela pequena */
    .card-resumo {
        padding: 16px;
    }
    
    .card-value {
        font-size: 22px;
    }
    
    /* Menu rápido em 2 colunas */
    .menu-rapido {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Ajuste comparativo insights */
    .comparativo-valores {
        gap: 16px;
    }
    
    .valor-mes .valor {
        font-size: 13px;
    }
    
    /* Metas grid em 1 coluna */
    .metas-grid {
        grid-template-columns: 1fr;
    }
    
    /* Insights grid em 1 coluna */
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    /* Login em telas muito pequenas */
    .login-container {
        padding: 12px;
    }
    
    .login-wrapper {
        border-radius: 12px;
    }
    
    .login-stats {
        padding: 20px 16px;
    }
    
    .login-stats h2 {
        font-size: 16px;
    }
    
    .stat-box {
        padding: 10px 12px;
    }
    
    .stat-number {
        font-size: 18px;
    }
    
    .login-box {
        padding: 24px 20px;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-resumo, .grafico-card, .meta-card, .insight-card, .menu-item {
    animation: fadeIn 0.4s ease-out;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--border-soft);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============================================
   DASHBOARD — Header Elegante com Avatar
   ============================================ */

.dashboard-header {
    background: linear-gradient(135deg, #7A7367 0%, #8A8377 50%, #7A7367 100%);
    color: #1A1A1A;
    padding: 16px 24px;
    border-radius: var(--radius-xl);
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    top: -80px;
    right: 40px;
}

.dashboard-header .greeting {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dashboard-header .greeting .greeting-text {
    font-size: 22px;
    font-weight: 600;
    opacity: 1;
}

.dashboard-header .greeting .greeting-date {
    font-size: 14px;
    opacity: 0.75;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 1;
}

.header-actions .user-greeting {
    color: #FFFFFF;
    font-size: 15px;
}

.header-actions .user-greeting strong {
    color: #FFFFFF;
    font-weight: 600;
}

.dashboard-header .logo h1 {
    background: none;
    -webkit-text-fill-color: #FFFFFF;
    color: #FFFFFF;
}

.header-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.header-notif-btn {
    display: none !important;
}

.notif-badge {
    display: none !important;
}

.header-logout {
    background: #C41E1E;
    border: 1px solid #961717;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.header-logout:hover {
    background: #961717;
    transform: translateY(-1px);
}

/* ============================================
   DASHBOARD — Animação Count-Up
   ============================================ */

.count-up {
    display: inline-block;
    transition: opacity 0.2s ease;
}

/* ============================================
   DASHBOARD — Gráficos maiores e responsivos
   ============================================ */

.grafico-card canvas {
    min-height: 286px !important;
    max-height: 372px !important;
}

.grafico-card {
    min-height: 386px;
}

/* ============================================
   RESPONSIVIDADE — Login e Dashboard
   ============================================ */

/* Login: telas pequenas */
@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
        max-width: 440px;
        min-height: auto;
    }

    .login-stats {
        padding: 24px 20px;
    }

    .login-stats h2 {
        font-size: 18px;
    }

    .stat-box {
        padding: 12px 16px;
    }

    .stat-number {
        font-size: 20px;
    }

    .stat-label {
        font-size: 10px;
    }

    .login-box {
        flex: none;
        width: 100%;
    }

    .testimonial {
        display: none;
    }
}

/* Dashboard: header compacto mobile */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 24px;
    }

    .dashboard-header .greeting .greeting-text {
        font-size: 18px;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .header-logout span {
        display: none;
    }
}

/* Gráficos: tablets */
@media (max-width: 900px) {
    .graficos-row {
        grid-template-columns: 1fr;
    }

    .grafico-container {
        height: 240px;
    }

    .grafico-card canvas {
        min-height: 220px !important;
        max-height: 300px !important;
    }

    .grafico-card {
        min-height: 300px;
    }
}

/* Gráficos: mobile */
@media (max-width: 480px) {
    .grafico-container {
        height: 200px;
    }

    .grafico-card canvas {
        min-height: 180px !important;
        max-height: 240px !important;
    }

    .grafico-card {
        min-height: 260px;
        padding: 14px;
    }

    .grafico-card h3 {
        font-size: 14px;
    }

    .cards-resumo {
        grid-template-columns: 1fr;
    }
}
