/* ==================== NAVEGAÇÃO DE MÊS (MODERNO) ==================== */
.mes-navegacao {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 55%, #8B5CF6 100%);
    margin-bottom: 18px;
    border-radius: 26px;
    box-shadow: 0 18px 42px rgba(124,58,237,0.35), 0 8px 22px rgba(79,70,229,0.30);
    border: 2px solid rgba(255,255,255,0.15);
    position: relative;
    overflow: hidden;
    transition: box-shadow .3s ease, transform .3s ease;
}

.mes-navegacao:hover {
    box-shadow: 0 24px 58px rgba(124,58,237,0.45), 0 10px 28px rgba(79,70,229,0.35);
    transform: translateY(-3px);
}

.mes-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.mes-nav-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
}

.mes-nav-btn:active {
    transform: scale(0.95);
}

.mes-info-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.mes-titulo {
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    letter-spacing: -0.5px;
    text-align: center;
    padding: 10px 24px;
    border-radius: 16px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(4px);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15), 0 6px 18px rgba(0,0,0,0.25);
}

.btn-hoje {
    padding: 6px 16px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    border: 2px solid #4F46E5;
    background: transparent;
    color: #4F46E5;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-hoje:hover {
    background: #4F46E5;
    color: white;
    transform: scale(1.05);
}

.btn-hoje:active {
    transform: scale(0.95);
}

/* ==================== MODAL RECORRÊNCIAS (MOBILE) ==================== */
#modal-gerenciar-recorrencias .modal-mobile {
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
}
.lista-recorrencias {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.item-recorrencia {
    background: #FFFFFF;
    border: 2px solid #E5E7EB;
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.item-recorrencia-info { flex: 1; }
.item-recorrencia-nome { font-weight:600; font-size:14px; margin-bottom:4px; }
.item-recorrencia-detalhes { font-size:12px; color:#6B7280; }
.item-recorrencia-acoes .btn { padding:6px 10px; font-size:12px; }
.tag-recorrente {
    display:inline-block;
    background:#4F46E5;
    color:#fff;
    font-size:11px;
    padding:3px 8px;
    border-radius:20px;
    margin-left:6px;
}
/* Lumis - Sistema de Gestão Financeira - Estilos */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #CBD5E1;
    color: #1F2937;
}

/* Container Mobile */
.mobile-container {
    max-width: 428px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 140px rgba(0, 0, 0, 0.28), 0 25px 70px rgba(0, 0, 0, 0.22);
}

/* Toast Notification */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    max-width: 400px;
    width: 90%;
}

.toast {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slideIn 0.3s ease-out;
    border-left: 4px solid #3B82F6;
}

.toast.warning {
    border-left-color: #f39c12;
    background: #fffbf0;
}

.toast.danger {
    border-left-color: #e74c3c;
    background: #fff5f5;
}

.toast.success {
    border-left-color: #10B981;
    background: #d1fae5;
}

.toast.info {
    border-left-color: #3B82F6;
    background: #dbeafe;
}

.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
}

.toast-message {
    font-size: 13px;
    color: #6B7280;
}

.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #9CA3AF;
    padding: 0;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

@keyframes slideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Header */
.header {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 55%, #8B5CF6 100%);
    padding: 38px 20px 26px;
    color: white;
}

.header-with-month {
    display:flex;
    flex-direction:column;
    gap:28px;
}

.header-with-month .header-embedded-month {
    background: linear-gradient(90deg, #4F46E5 0%, #5B21B6 100%);
    border-radius:24px;
    padding:10px 18px;
    backdrop-filter: blur(6px);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
    opacity: 0.92;
}

.header-with-month .mes-nav-btn { box-shadow:none; }
.header-with-month .mes-nav-btn:hover { box-shadow:none; }
.header-with-month .mes-titulo {
    background: linear-gradient(90deg, #4F46E5 0%, #5B21B6 100%);
    box-shadow: none;
    color: #fff;
    font-weight: 600;
    opacity: 0.92;
}

.header-with-month .btn-hoje { border-color:#fff; color:#fff; }
.header-with-month .btn-hoje:hover { background:#fff; color:#4F46E5; }

.header-greeting {
    font-size: 14px;
    opacity: 0.9;
}

.header-title {
    font-size: 24px;
    font-weight: 700;
    margin-top: 4px;
}

.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Main Content */
.content {
    padding: 20px;
    padding-bottom: 100px;
}

/* Card Saldo Total */
.saldo-card {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    border-radius: 20px;
    padding: 24px;
    color: white;
    box-shadow: 0 16px 40px rgba(79, 70, 229, 0.4), 0 8px 20px rgba(79, 70, 229, 0.3);
    margin-top: -40px;
    position: relative;
}

.saldo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.saldo-label {
    font-size: 12px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.saldo-value {
    font-size: 36px;
    font-weight: 700;
    margin-top: 8px;
}

.privacy-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.privacy-toggle:hover {
    opacity: 1;
}

/* Grid Resumo */
.resumo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
}

.resumo-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18), 0 3px 10px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.resumo-card .icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.resumo-label {
    font-size: 12px;
    color: #6B7280;
}

.resumo-value {
    font-size: 20px;
    font-weight: 700;
    margin-top: 4px;
}

.receita {
    color: #10B981;
}

.despesa {
    color: #EF4444;
}

/* Section */
.section {
    margin-top: 32px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Orçamento Card */
.orcamento-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.orcamento-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.categoria-name {
    font-weight: 600;
    font-size: 14px;
}

.orcamento-values {
    font-size: 12px;
    color: #6B7280;
    margin-bottom: 8px;
}

.progress-bar {
    height: 8px;
    background: #F3F4F6;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    border-radius: 8px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 12px;
    font-weight: 600;
}

/* Pagamentos Card */
.pagamento-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border-radius: 12px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.pagamento-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    background: linear-gradient(135deg, #F3F4F6 0%, #FFFFFF 100%);
}

.pagamento-info {
    flex: 1;
}

.pagamento-desc {
    font-weight: 600;
    font-size: 14px;
}

.pagamento-data {
    font-size: 12px;
    color: #6B7280;
    margin-top: 2px;
}

.pagamento-valor {
    font-weight: 700;
    font-size: 16px;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 428px;
    width: 100%;
    background: white;
    border-top: 1px solid #F3F4F6;
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 0.3s;
}

.nav-item:hover {
    background: #F3F4F6;
}

.nav-item.active {
    color: #4F46E5;
}

.nav-item.highlight {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: white;
    transform: scale(1.1);
}

.nav-icon {
    font-size: 24px;
}

.nav-label {
    font-size: 11px;
    font-weight: 500;
}

/* Telas */
.extrato-screen,
.orcamento-screen,
.registrar-screen {
    display: none;
}

/* Tela de Registro Rápido */
.registro-quick-entry {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    padding: 30px 20px 20px;
    background: #fff;
    border-bottom: 1px solid #F3F4F6;
    color: #1F2937;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.registro-quick-entry input {
    border: none;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    text-align: center;
    width: 100%;
    outline: none;
    background: none;
    padding: 0;
}

.tipo-transacao-toggle {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.tipo-btn {
    padding: 10px 18px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid #E5E7EB;
    background: white;
    transition: all 0.2s;
}

.tipo-btn.active.despesa {
    background: #fee2e2;
    border-color: #EF4444;
    color: #EF4444;
}

.tipo-btn.active.receita {
    background: #d1fae5;
    border-color: #10B981;
    color: #10B981;
}

.tipo-btn.active.transferencia {
    background: #dbeafe;
    border-color: #4F46E5;
    color: #4F46E5;
}

/* Campos de Registro */
.registro-form {
    padding: 20px;
}

.btn-primary {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

/* Modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background: #fff;
    width: 92%;
    max-width: 420px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: #fff;
    font-weight: 700;
}

.modal-body {
    padding: 16px 20px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 12px;
    color: #6B7280;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
}

.modal-footer {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #F3F4F6;
}

.btn {
    flex: 1;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid #E5E7EB;
    background: #fff;
    color: #374151;
}

.btn-danger {
    background: #EF4444;
    color: #fff;
    border-color: #EF4444;
}

/* Filtros */
.filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding: 0 20px;
}

.filter-btn {
    flex: 1;
    padding: 10px;
    border: 2px solid #E5E7EB;
    background: white;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active {
    border-color: #4F46E5;
    color: #4F46E5;
    background: #EDE9FE;
}

/* Transações */
.transacao-item {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: white;
    border-bottom: 1px solid #F3F4F6;
}

.transacao-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: linear-gradient(135deg, #E0E7FF 0%, #EDE9FE 100%);
}

.transacao-info {
    flex: 1;
}

.transacao-desc {
    font-weight: 600;
    font-size: 14px;
}

.transacao-categoria {
    font-size: 12px;
    color: #6B7280;
    margin-top: 2px;
}

.transacao-data {
    font-size: 12px;
    color: #6B7280;
    margin-top: 2px;
}

.transacao-valor {
    font-weight: 700;
    font-size: 16px;
    text-align: right;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: #6B7280;
}

.spinner {
    border: 3px solid #F3F4F6;
    border-top: 3px solid #4F46E5;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6B7280;
}

.empty-icon {
    font-size: 64px;
    opacity: 0.3;
    margin-bottom: 16px;
}

/* ==================== PERFIL SCREEN ==================== */
.perfil-screen {
    display: none;
    flex-direction: column;
    height: 100%;
}

.perfil-content {
    padding-bottom: 90px;
}

.perfil-section {
    background: white;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.perfil-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.perfil-section-title i {
    color: #4F46E5;
}

.perfil-info-card {
    background: #F9FAFB;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.perfil-info-item {
    margin-bottom: 12px;
}

.perfil-info-item:last-child {
    margin-bottom: 0;
}

.perfil-info-item label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6B7280;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.perfil-value {
    font-size: 15px;
    font-weight: 600;
    color: #1F2937;
}

.perfil-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-action {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-action:hover {
    background: #F9FAFB;
    border-color: #4F46E5;
    color: #4F46E5;
}

.btn-action i {
    font-size: 16px;
}

.btn-danger-outline {
    border-color: #FEE2E2;
    color: #DC2626;
}

.btn-danger-outline:hover {
    background: #FEF2F2;
    border-color: #DC2626;
    color: #DC2626;
}

/* Config List */
.perfil-config-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.perfil-config-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #F3F4F6;
}

.perfil-config-item:last-child {
    border-bottom: none;
}

.config-info {
    flex: 1;
}

.config-label {
    font-size: 14px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 2px;
}

.config-description {
    font-size: 12px;
    color: #6B7280;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #E5E7EB;
    transition: 0.3s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #4F46E5;
}

input:checked + .slider:before {
    transform: translateX(22px);
}

.form-control-small {
    padding: 8px 12px;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
    background: white;
    min-width: 160px;
}

.perfil-version {
    text-align: center;
    margin-top: 20px;
    color: #9CA3AF;
}

/* Modal Large */
.modal-large {
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header-danger {
    background: #FEF2F2;
    color: #DC2626;
}

/* Gerenciar Contas/Categorias */
.item-gerenciar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #F9FAFB;
    border-radius: 8px;
    margin-bottom: 8px;
}

.item-gerenciar-info {
    flex: 1;
}

.item-gerenciar-nome {
    font-weight: 600;
    font-size: 14px;
    color: #1F2937;
}

.item-gerenciar-detalhes {
    font-size: 12px;
    color: #6B7280;
    margin-top: 2px;
}

.item-gerenciar-acoes {
    display: flex;
    gap: 8px;
}

.btn-icon {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    color: #6B7280;
    transition: all 0.2s;
}

.btn-icon:hover {
    border-color: #4F46E5;
    color: #4F46E5;
}

.btn-icon.btn-icon-danger:hover {
    border-color: #EF4444;
    color: #EF4444;
}

/* ==================== THEME TOGGLE (Modern Button) ==================== */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.theme-toggle:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(79, 70, 229, 0.45); }
.theme-toggle:active { transform: translateY(0); }

/* ==================== SELECT AS MODERN BUTTON ==================== */
.select-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: #ffffff;
    color: #111827;
    border: 1.5px solid #D1D5DB;
    border-radius: 9999px;
    padding: 10px 42px 10px 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.12);
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
}
.select-button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(79, 70, 229, 0.18); }
.select-button:focus { outline: 3px solid rgba(124, 58, 237, 0.25); outline-offset: 2px; border-color:#A78BFA; }
.select-button option { color: #111827; }

/* ==================== DARK THEME OVERRIDES ==================== */
[data-theme="dark"] body {
    background: #000000;
    color: #E5E7EB;
}

[data-theme="dark"] .mobile-container {
    background: #1E293B;
    color: #E5E7EB;
    box-shadow: 0 0 150px rgba(255,255,255,0.08), 0 0 80px rgba(79, 70, 229, 0.15), 0 20px 60px rgba(0,0,0,0.9);
}

[data-theme="dark"] .mes-navegacao {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 55%, #8B5CF6 100%);
    border-color: rgba(255,255,255,0.18);
    box-shadow: 0 22px 60px rgba(124,58,237,0.50), 0 10px 28px rgba(79,70,229,0.45);
}

[data-theme="dark"] .mes-titulo { 
    color: white; 
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}
[data-theme="dark"] .btn-hoje {
    border-color: #8B5CF6;
    color: #C4B5FD;
}
[data-theme="dark"] .btn-hoje:hover { background: #7C3AED; color: #fff; }

[data-theme="dark"] .content { color: #E5E7EB; }

[data-theme="dark"] .saldo-card { 
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.4), 0 10px 25px rgba(79, 70, 229, 0.3), 0 0 60px rgba(124, 58, 237, 0.15);
}

[data-theme="dark"] .resumo-card,
[data-theme="dark"] .orcamento-card,
[data-theme="dark"] .pagamento-item,
[data-theme="dark"] .perfil-section {
    background: #1E293B;
    box-shadow: 0 6px 20px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.4);
    border: 1px solid rgba(71, 85, 105, 0.3);
}

[data-theme="dark"] .perfil-info-card { 
    background: #1E293B;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    border: 1px solid rgba(71, 85, 105, 0.3);
}

[data-theme="dark"] .resumo-label,
[data-theme="dark"] .pagamento-data,
[data-theme="dark"] .orcamento-values,
[data-theme="dark"] .config-description,
[data-theme="dark"] .perfil-info-item label { color: #9CA3AF; }

[data-theme="dark"] .config-label { color: #E5E7EB; }

[data-theme="dark"] .section-title,
[data-theme="dark"] .perfil-section-title,
[data-theme="dark"] .perfil-value,
[data-theme="dark"] .item-gerenciar-nome,
[data-theme="dark"] .pagamento-desc { color: #E5E7EB; }

[data-theme="dark"] .progress-bar { background: #1F2937; }

[data-theme="dark"] .bottom-nav {
    background: #0F172A;
    border-top: 1px solid #1F2937;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.4);
}
[data-theme="dark"] .nav-item:hover { background: #1F2937; }

[data-theme="dark"] .registro-quick-entry {
    background: #0F172A;
    border-bottom: 1px solid #1F2937;
    color: #E5E7EB;
}

[data-theme="dark"] .tipo-btn { background: #0F172A; border-color: #334155; color: #E5E7EB; }

[data-theme="dark"] .modal { background: #0F172A; }
[data-theme="dark"] .modal-footer { border-top: 1px solid #1F2937; }
[data-theme="dark"] .modal-header-danger { background:#3F1D1D; color:#FCA5A5; }
[data-theme="dark"] .btn { background: #111827; color: #E5E7EB; border-color: #334155; }
[data-theme="dark"] .btn:hover { background:#1F2937; }
[data-theme="dark"] .btn-action { background:#111827; border-color:#334155; color:#E5E7EB; }
[data-theme="dark"] .btn-action:hover { background:#1F2937; border-color:#7C3AED; color:#C4B5FD; }
[data-theme="dark"] .btn-icon { background:#111827; border-color:#334155; color:#E5E7EB; }
[data-theme="dark"] .btn-icon:hover { border-color:#7C3AED; color:#C4B5FD; }

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-control-small,
[data-theme="dark"] select.form-control,
[data-theme="dark"] input.form-control {
    background: #0F172A;
    border-color: #334155;
    color: #E5E7EB;
}

[data-theme="dark"] .filter-btn { background: #0F172A; border-color: #334155; color: #E5E7EB; }
[data-theme="dark"] .filter-btn.active { background: #1E293B; border-color: #7C3AED; color: #C4B5FD; }

[data-theme="dark"] .transacao-item { background: #0F172A; border-bottom: 1px solid #1F2937; }
[data-theme="dark"] .transacao-icon { background: linear-gradient(135deg, #111827 0%, #1F2937 100%); }

[data-theme="dark"] .toast { background: #111827; color: #E5E7EB; }
[data-theme="dark"] .toast-message { color: #CBD5E1; }

/* Recorrências (modal mobile) */
[data-theme="dark"] .item-recorrencia { background:#111827; border-color:#334155; box-shadow: 0 2px 6px rgba(0,0,0,0.6); }
[data-theme="dark"] .item-recorrencia-detalhes { color:#9CA3AF; }

/* Switch */
[data-theme="dark"] .slider { background-color:#334155; }
[data-theme="dark"] input:checked + .slider { background-color:#7C3AED; }

/* Loading/Empty states */
[data-theme="dark"] .loading { color:#94A3B8; }
[data-theme="dark"] .spinner { border-color:#1F2937; border-top-color:#7C3AED; }
[data-theme="dark"] .empty-state { color:#94A3B8; }
[data-theme="dark"] .item-gerenciar { background:#111827; }

[data-theme="dark"] .select-button {
    color:#fff;
    border: none;
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
    /* Layer 1: chevron (top), Layer 2: gradient (bottom) */
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
                      linear-gradient(135deg, #5B54F7 0%, #8B5CF6 100%);
    background-repeat: no-repeat, no-repeat;
    background-position: right 12px center, 0 0;
    background-size: 16px 16px, cover;
}
[data-theme="dark"] .select-button:hover { box-shadow: 0 10px 24px rgba(79, 70, 229, 0.5); }
[data-theme="dark"] .select-button:focus { outline: 3px solid rgba(139, 92, 246, 0.4); outline-offset: 2px; }
[data-theme="dark"] .select-button option { color:#E5E7EB; background-color:#0F172A; }
