/* ========================================
   CONTROLE FINANCEIRO - DESIGN MODERNO V2.0
   ======================================== */

/* Reset e Variáveis */
:root {
    /* Paleta Moderna e Profissional */
    --primary: #2563EB;
    --primary-dark: #1E40AF;
    --secondary: #0F172A;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --dark: #1f2937;
    --light: #f8fafc;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15), 0 10px 10px rgba(0, 0, 0, 0.04);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--gray-50);
    min-height: 100vh;
    padding-bottom: 40px;
    line-height: 1.6;
    color: var(--dark);
}

/* Animações Globais */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes highlight {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: var(--shadow-md);
    }
    50% { 
        transform: scale(1.02); 
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.3), var(--shadow-xl);
    }
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    animation: fadeIn 0.5s ease-out;
}

/* ========================================
   HEADER MODERNO COM GLASSMORPHISM
   ======================================== */
header {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-200);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-info span {
    font-size: 0.95rem;
    color: var(--dark);
    font-weight: 500;
}

/* Botões Modernos com Gradientes */
.btn-logout, .btn-back {
    padding: 10px 20px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.btn-logout::before, .btn-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-logout:hover::before, .btn-back:hover::before {
    left: 100%;
}

.btn-logout {
    background: var(--danger);
    color: white;
}

.btn-logout:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-back {
    background: var(--gray-600);
    color: white;
}

.btn-back:hover {
    background: var(--gray-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   CARDS ULTRA MODERNOS
   ======================================== */
.card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card h3 {
    margin-bottom: 16px;
    color: var(--dark);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

/* Card Especiais com Gradiente */
.card-info {
    background: var(--primary);
    color: white;
    text-align: center;
    border: none;
}

.card-info h3 {
    color: white;
}

.card-warning {
    background: #fef3c7;
    border-left: 4px solid var(--warning);
    border: 1px solid #fde68a;
}

.card-pwa {
    background: var(--primary);
    color: white;
    text-align: center;
}

.meta-valor {
    font-size: 3rem;
    font-weight: 800;
    margin: 20px 0;
    letter-spacing: -1px;
}

.btn-small {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.4);
}

.btn-small:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* ========================================
   RESUMO GRID MODERNIZADO
   ======================================== */
.resumo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.resumo-item {
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.3s ease;
}

.resumo-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.resumo-item span {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.resumo-item strong {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.resumo-item.ganho {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
}

.resumo-item.gasto {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
}

.resumo-item.saldo {
    background: #dbeafe;
    color: #1e40af;
    border: 2px solid #3b82f6;
}

.resumo-item.saldo.positivo {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
}

.resumo-item.saldo.negativo {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
}

/* ========================================
   ACTION BUTTONS - DESIGN EXPLOSIVO
   ======================================== */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.action-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.action-btn .icon {
    font-size: 3rem;
    margin-bottom: 12px;
    transition: transform 0.2s;
}

.action-btn:hover .icon {
    transform: scale(1.1);
}

.action-btn span:last-child {
    /* Sem alteração */
}

.action-btn.ganho {
    background: var(--success);
}

.action-btn.gasto {
    background: var(--warning);
}

.action-btn.conta {
    background: var(--info);
}

.action-btn.historico {
    background: #ec4899;
}

.action-btn.config {
    background: #8b5cf6;
}

/* ========================================
   FORMULÁRIOS MODERNOS
   ======================================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.3s;
    background: white;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Botões Principais */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background: var(--success);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-danger {
    background: var(--danger);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-light {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-light:hover {
    background: var(--primary);
    color: white;
}

/* Lista de Transações */
.lista-transacoes {
    list-style: none;
}

.transacao-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.transacao-item.ganho {
    background: #d4edda;
    border-left: 4px solid #28a745;
}

.transacao-item.gasto {
    background: #f8d7da;
    border-left: 4px solid #e74c3c;
}

.transacao-info {
    flex: 1;
}

.transacao-data {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 3px;
}

.transacao-categoria {
    display: inline-block;
    background: rgba(0,0,0,0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-right: 5px;
}

.transacao-valor {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 5px 0;
}

.transacao-obs {
    display: block;
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

.btn-delete {
    background: #e74c3c;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.2rem;
    transition: background 0.3s;
}

.btn-delete:hover {
    background: #c0392b;
}

/* Formulário de Conta */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-options {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

.checkbox-option:hover {
    background: rgba(102, 126, 234, 0.1);
}

.checkbox-option input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.checkbox-option span {
    font-weight: 500;
}

.form-hint {
    display: block;
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 5px;
}

.info-preview {
    background: #e7f3ff;
    padding: 12px;
    border-radius: 8px;
    margin-top: 10px;
    color: #004085;
    text-align: center;
    border-left: 4px solid #0066cc;
}

/* Lista de Contas */
.lista-contas {
    list-style: none;
}

.grupo-separador {
    height: 2px;
    background: #dee2e6;
    margin: 15px 0;
}

.conta-item {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid #6c757d;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.conta-item.vencida {
    background: #f8d7da;
    border-left-color: #e74c3c;
}

.conta-item.urgente {
    background: #fff3cd;
    border-left-color: #ffc107;
}

.conta-item.atencao {
    background: #d1ecf1;
    border-left-color: #17a2b8;
}

.conta-item.paga {
    background: #d4edda;
    border-left-color: #28a745;
    opacity: 0.75;
}

.conta-info {
    flex: 1;
}

.conta-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 10px;
}

.conta-header h4 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-recorrente {
    background: #e7f3ff;
    color: #0066cc;
}

.badge-parcelado {
    background: #fff3e0;
    color: #ff6f00;
}

.conta-categoria {
    display: inline-block;
    background: rgba(0,0,0,0.05);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.conta-descricao {
    display: block;
    color: #666;
    font-size: 0.85rem;
    margin: 5px 0;
    font-style: italic;
}

.conta-valor {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
}

.conta-vencimento {
    display: block;
    margin-top: 8px;
    font-size: 0.9rem;
}

.status-pago {
    color: #155724;
    font-weight: 500;
}

.status-pendente {
    color: #666;
}

.alerta-vencida {
    color: #e74c3c;
    font-weight: bold;
}

.alerta-proxima {
    color: #ff8c00;
    font-weight: bold;
}

.conta-obs {
    display: block;
    color: #666;
    font-size: 0.85rem;
    margin-top: 5px;
    padding: 5px 10px;
    background: rgba(0,0,0,0.03);
    border-radius: 4px;
}

.conta-acoes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 90px;
}

.btn-action {
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
}

.btn-action.btn-success {
    background: #28a745;
    color: white;
}

.btn-action.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.btn-action.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-action.btn-danger:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

.btn-icon {
    font-size: 1.1rem;
}

/* Filtros */
.filter-buttons {
    display: flex;
    gap: 10px;
}

.btn-filter {
    flex: 1;
    padding: 10px;
    background: #e9ecef;
    color: #333;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-filter.active {
    background: var(--primary);
    color: white;
}

/* Histórico */
.historico-tabela {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

table th {
    background: #f8f9fa;
    font-weight: bold;
}

.valor-positivo {
    color: #28a745;
    font-weight: bold;
}

.valor-negativo {
    color: #e74c3c;
    font-weight: bold;
}

/* Alertas */
.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.total-mes {
    text-align: center;
    font-size: 1.3rem;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 15px;
}

.text-muted {
    color: #6c757d;
    text-align: center;
    padding: 20px;
}

/* Login Page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    text-align: center;
}

.btn-light {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-light:hover {
    background: var(--primary);
    color: white;
}

/* ========================================
   LISTAS E TRANSAÇÕES
   ======================================== */
.lista-transacoes {
    list-style: none;
}

.transacao-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.transacao-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.transacao-item.ganho {
    background: #d1fae5;
    border-left: 4px solid #10b981;
}

.transacao-item.gasto {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
}

.transacao-info {
    flex: 1;
}

.transacao-data {
    display: block;
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 4px;
}

.transacao-categoria {
    display: inline-block;
    background: rgba(0,0,0,0.15);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.transacao-valor {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 8px 0;
    letter-spacing: -0.5px;
}

.transacao-obs {
    display: block;
    font-size: 0.9rem;
    color: #6b7280;
    font-style: italic;
}

.btn-delete {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.btn-delete:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   CONTAS PÁGINA
   ======================================== */
.lista-contas {
    list-style: none;
}

.conta-item {
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    border-left: 5px solid #6c757d;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.conta-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.conta-item.vencida {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-left-color: #ef4444;
}

.conta-item.urgente {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-left-color: #f59e0b;
}

.conta-item.atencao {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-left-color: #3b82f6;
}

.conta-item.paga {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-left-color: #10b981;
    opacity: 0.85;
}

.conta-info {
    flex: 1;
}

.conta-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}

.conta-header h4 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 1.15rem;
    font-weight: 700;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-recorrente {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
}

.badge-parcelado {
    background: linear-gradient(135deg, #fed7aa, #fdba74);
    color: #c2410c;
}

.conta-valor {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1f2937;
    letter-spacing: -0.5px;
}

.conta-categoria {
    display: inline-block;
    background: rgba(102, 126, 234, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
}

.conta-descricao {
    display: block;
    color: #6b7280;
    font-size: 0.9rem;
    margin: 8px 0;
}

.conta-vencimento {
    display: block;
    margin-top: 10px;
    font-size: 0.95rem;
    font-weight: 600;
}

.conta-obs {
    display: block;
    color: #6b7280;
    font-size: 0.85rem;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(0,0,0,0.05);
    border-radius: var(--radius-sm);
}

.conta-acoes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 100px;
}

.btn-action {
    padding: 12px 18px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.3s;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.btn-action.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-action.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-action.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.btn-action.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   ALERTAS MODERNOS
   ======================================== */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-weight: 600;
    border-left: 5px solid;
    box-shadow: var(--shadow-sm);
    animation: slideDown 0.4s ease-out;
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    border-left-color: #10b981;
}

.alert-error {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    border-left-color: #ef4444;
}

.alert-warning {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border-left-color: #f59e0b;
}

.alert-info {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    border-left-color: #3b82f6;
}

/* ========================================
   LOGIN PAGE ULTRA MODERNO
   ======================================== */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 440px;
}

.login-box {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-xl);
    text-align: center;
    animation: fadeIn 0.6s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-box h1 {
    margin-bottom: 8px;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.subtitle {
    color: #6b7280;
    margin-bottom: 36px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* ========================================
   TABELAS MODERNAS
   ======================================== */
.historico-tabela {
    overflow-x: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

table th,
table td {
    padding: 16px;
    text-align: left;
}

table th {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

table tr {
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.3s;
}

table tbody tr:hover {
    background: #f9fafb;
    transform: scale(1.01);
}

.valor-positivo {
    color: #10b981;
    font-weight: 700;
}

.valor-negativo {
    color: #ef4444;
    font-weight: 700;
}

/* ========================================
   FILTROS AVANÇADOS
   ======================================== */
.filtros-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
}

.filtros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.filtro-group {
    display: flex;
    flex-direction: column;
}

.filtro-group label {
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filtro-group select {
    padding: 12px 14px;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.filtro-group select:hover {
    border-color: var(--primary);
}

.filtro-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.filtros-acoes {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 2px solid #e5e7eb;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-limpar-filtros {
    padding: 12px 24px;
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    transition: all 0.3s;
    display: inline-block;
    box-shadow: var(--shadow-sm);
}

.btn-limpar-filtros:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.filtros-info {
    font-size: 0.9rem;
    color: #6b7280;
    font-style: italic;
    font-weight: 600;
}

/* ========================================
   OUTROS ELEMENTOS
   ======================================== */
.info-extra {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
}

.info-extra p {
    margin: 8px 0;
    color: #6b7280;
    font-weight: 500;
}

.contas-lista {
    list-style: none;
}

.contas-lista li {
    padding: 16px;
    border-left: 5px solid var(--warning);
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    margin-bottom: 12px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.conta-item-dashboard {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.conta-nome {
    font-weight: 700;
    flex: 1;
    min-width: 150px;
    color: var(--dark);
}

.conta-vencimento {
    width: 100%;
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 8px;
    font-weight: 600;
}

.btn-link {
    display: block;
    text-align: center;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    margin-top: 16px;
    padding: 12px;
    border-radius: var(--radius-md);
    transition: all 0.3s;
    background: rgba(102, 126, 234, 0.05);
}

.btn-link:hover {
    background: rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.categoria-lista {
    list-style: none;
}

.categoria-lista li {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 2px solid #e5e7eb;
    font-weight: 600;
}

.categoria-lista li:last-child {
    border-bottom: none;
}

.total-mes {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    padding: 20px;
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
    border-radius: var(--radius-md);
    margin-top: 20px;
    box-shadow: var(--shadow-sm);
}

.text-muted {
    color: #9ca3af;
    text-align: center;
    padding: 24px;
    font-weight: 600;
}

.text-danger {
    color: var(--danger) !important;
}

.text-success {
    color: var(--success) !important;
}

.status-pago {
    color: #065f46;
    font-weight: 700;
}

.status-pendente {
    color: #6b7280;
    font-weight: 600;
}

.alerta-vencida {
    color: var(--danger);
    font-weight: 700;
}

.alerta-proxima {
    color: var(--warning);
    font-weight: 700;
}

/* Formulários Adicionais */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-options {
    background: #f9fafb;
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border: 2px solid #e5e7eb;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.3s;
}

.checkbox-option:hover {
    background: rgba(102, 126, 234, 0.1);
}

.checkbox-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-option span {
    font-weight: 600;
}

.form-hint {
    display: block;
    color: #6b7280;
    font-size: 0.85rem;
    margin-top: 6px;
    font-style: italic;
}

.info-preview {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    padding: 16px;
    border-radius: var(--radius-md);
    margin-top: 12px;
    color: #1e40af;
    text-align: center;
    border-left: 5px solid #3b82f6;
    font-weight: 700;
}

.grupo-separador {
    height: 3px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
    margin: 20px 0;
}

.resumo-filtro {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.resumo-item-filtro {
    text-align: center;
    padding: 18px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.resumo-item-filtro span {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
}

.resumo-item-filtro strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.form-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.form-inline label {
    margin: 0;
    font-weight: 600;
}

.form-inline input {
    flex: 1;
}

.btn-icon {
    font-size: 1.2rem;
}

.card-destaque {
    border: 2px solid var(--primary);
}

/* ========================================
   FILTROS MODERNOS - GANHOS/GASTOS
   ======================================== */
.filtro-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(255,255,255,0.95));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(102, 126, 234, 0.1);
}

.filtro-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f3f4f6;
}

.filtro-header h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 1.5rem;
    color: var(--dark);
}

.icon-filtro {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.filtro-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: capitalize;
    box-shadow: var(--shadow-md);
}

.filtro-badge.gasto {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.filtro-mes-form {
    margin-bottom: 24px;
}

.filtro-mes-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filtro-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--dark);
    font-size: 1.05rem;
}

.label-icon {
    font-size: 1.4rem;
}

.label-text {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-with-btn {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.input-mes {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-lg);
    font-size: 1.05rem;
    font-weight: 600;
    background: white;
    color: var(--dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-family: inherit;
}

.input-mes:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.input-mes:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.btn-hoje {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-hoje::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-hoje:hover::before {
    left: 100%;
}

.btn-hoje:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-hoje:active {
    transform: translateY(0);
}

.icon-btn {
    font-size: 1.3rem;
}

.total-mes-moderno {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
    border-radius: var(--radius-lg);
    border: 2px solid #e5e7eb;
    transition: all 0.3s;
}

.total-mes-moderno:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.total-icon {
    font-size: 3.5rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.total-icon.gasto {
    filter: drop-shadow(0 4px 8px rgba(245, 158, 11, 0.3));
}

.total-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.total-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.total-valor {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.total-valor.ganho {
    color: var(--success);
    text-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.total-valor.gasto {
    color: var(--warning);
    text-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

/* ========================================
   FILTROS AVANÇADOS - CONTAS
   ======================================== */
.filtro-card-avancado {
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(255,255,255,0.95));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(102, 126, 234, 0.1);
}

.filtro-header-avancado {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-filtro-grande {
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.header-left h3 {
    margin: 0 0 4px 0;
    font-size: 1.6rem;
    color: var(--dark);
}

.filtro-subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.btn-toggle-filtros {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.btn-toggle-filtros:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.icon-toggle {
    display: inline-block;
    font-size: 1rem;
    transition: transform 0.3s;
}

.filtros-form.collapsed .icon-toggle {
    transform: rotate(-90deg);
}

.filtros-form.collapsed .filtros-grid-moderno,
.filtros-form.collapsed .filtros-status,
.filtros-form.collapsed .filtros-acoes-modernas {
    display: none;
}

.filtros-grid-moderno {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.filtro-group-moderno {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filtro-label-moderno {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--dark);
    font-size: 0.95rem;
}

.filtro-label-moderno .label-icon {
    font-size: 1.3rem;
}

.filtro-label-moderno .label-text {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.select-wrapper {
    position: relative;
}

.select-moderno {
    width: 100%;
    padding: 14px 40px 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    background: white;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none;
    font-family: inherit;
}

.select-moderno:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.select-moderno:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
}

.filtros-status {
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    border: 2px solid #e5e7eb;
}

.filtros-ativos-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.filtros-label {
    font-weight: 700;
    color: var(--dark);
    font-size: 0.9rem;
    margin-right: 8px;
}

.filtro-badge-ativo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.filtro-badge-ativo:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.badge-icon {
    font-size: 1.1rem;
}

.badge-text {
    text-transform: capitalize;
}

.filtros-vazios {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    padding: 8px;
}

.icon-vazio {
    font-size: 1.5rem;
}

.texto-vazio {
    color: #6b7280;
    font-weight: 600;
    font-style: italic;
}

.filtros-acoes-modernas {
    display: flex;
    justify-content: center;
}

.btn-limpar-moderno {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn-limpar-moderno::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-limpar-moderno:hover::before {
    left: 100%;
}

.btn-limpar-moderno:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-limpar-moderno:active {
    transform: translateY(-1px);
}

.btn-limpar-moderno .btn-icon {
    font-size: 1.3rem;
}

/* ========================================
   GERENCIAMENTO DE USUÁRIOS (ADMIN)
   ======================================== */
.card-admin {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(219, 234, 254, 0.05));
    border: 2px solid rgba(139, 92, 246, 0.2);
    position: relative;
    overflow: visible;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 16px;
    box-shadow: var(--shadow-md);
}

.collapsible-section {
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.collapsible-section:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark);
    transition: all 0.3s;
    list-style: none;
}

.section-title::-webkit-details-marker {
    display: none;
}

.section-title:hover {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.section-title .icon {
    font-size: 1.5rem;
}

.section-content {
    padding: 24px;
    background: linear-gradient(135deg, #fafbfc, #f9fafb);
    border-top: 1px solid #e5e7eb;
}

.form-criar-usuario .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid #d1d5db;
    box-shadow: var(--shadow-sm);
}

.checkbox-label:hover {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: #fbbf24;
    box-shadow: var(--shadow-md);
}

.checkbox-label input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
    margin-top: 2px;
}

.checkbox-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.checkbox-text strong {
    font-size: 1rem;
    color: #1f2937;
    font-weight: 800;
}

.checkbox-text small {
    font-size: 0.85rem;
    color: #4b5563;
    font-weight: 600;
}

.btn-criar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.05rem;
    padding: 16px;
}

.btn-criar .btn-icon {
    font-size: 1.3rem;
}

.usuarios-lista {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.usuario-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-lg);
    transition: all 0.3s;
    gap: 20px;
}

.usuario-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.usuario-card.inativo {
    opacity: 0.6;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.usuario-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.usuario-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: var(--shadow-md);
}

.usuario-dados {
    flex: 1;
}

.usuario-nome {
    margin: 0 0 6px 0;
    font-size: 1.15rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.badge-admin {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.badge-voce {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.usuario-email,
.usuario-data {
    margin: 4px 0;
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.usuario-acoes {
    display: flex;
    gap: 10px;
}

.btn-acao {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.3s;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.btn-acao .icon {
    font-size: 1.2rem;
}

.btn-ativar {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
}

.btn-ativar:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-desativar {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.btn-desativar:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-deletar {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: white;
}

.btn-deletar:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.sua-conta {
    color: #6b7280;
    font-weight: 600;
    font-style: italic;
    padding: 10px 16px;
}

/* ========================================
   RESPONSIVO APRIMORADO
   ======================================== */
@media (max-width: 768px) {
    :root {
        font-size: 14px;
    }
    
    .container {
        padding: 12px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .user-info span {
        display: none;
    }
    
    .resumo-grid {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .action-btn {
        padding: 24px 20px;
    }
    
    .action-btn .icon {
        font-size: 2.5rem;
    }
    
    .meta-valor {
        font-size: 2.5rem;
    }
    
    .login-box {
        padding: 36px 24px;
    }
    
    .login-box h1 {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .conta-item {
        flex-direction: column;
    }
    
    .conta-acoes {
        flex-direction: row;
        width: 100%;
    }
    
    .conta-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filtros-grid {
        grid-template-columns: 1fr;
    }
    
    .resumo-filtro {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filtros-acoes {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-limpar-filtros {
        text-align: center;
        width: 100%;
    }
    
    .filtros-info {
        text-align: center;
    }
    
    table {
        font-size: 0.85rem;
    }
    
    table th,
    table td {
        padding: 10px;
    }
    
    .filtros-grid-moderno {
        grid-template-columns: 1fr;
    }
    
    .input-with-btn {
        flex-direction: column;
    }
    
    .btn-hoje {
        width: 100%;
    }
    
    .filtro-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .filtro-header-avancado {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .header-left {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-toggle-filtros {
        width: 100%;
    }
    
    .filtros-ativos-lista {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .total-mes-moderno {
        flex-direction: column;
        text-align: center;
    }
    
    .total-icon {
        font-size: 3rem;
    }
    
    .form-criar-usuario .form-row {
        grid-template-columns: 1fr;
    }
    
    .usuario-card {
        flex-direction: column;
        align-items: stretch;
    }
    
    .usuario-info {
        flex-direction: column;
        text-align: center;
    }
    
    .usuario-acoes {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-acao {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 8px;
    }
    
    .card {
        padding: 16px;
    }
    
    .login-box {
        padding: 28px 20px;
    }
    
    .action-btn {
        padding: 20px 16px;
    }
    
    .filtro-header h3 {
        font-size: 1.3rem;
    }
    
    .icon-filtro-grande {
        font-size: 2rem;
    }
    
    .header-left h3 {
        font-size: 1.3rem;
    }
    
    .total-valor {
        font-size: 1.6rem;
    }
    
    .filtro-badge {
        font-size: 0.8rem;
        padding: 6px 14px;
    }
    
    .input-mes {
        padding: 14px 16px;
        font-size: 1rem;
    }
    
    .btn-hoje {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
    
    .btn-text {
        display: none;
    }
    
    .icon-btn {
        font-size: 1.5rem;
    }
}
