/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    z-index: 9999 !important;
}

.toast {
    min-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    margin-bottom: 0.75rem;
}

.toast-success {
    background-color: #d4edda;
    border-left: 4px solid #28a745;
}

.toast-success .toast-header {
    background-color: #28a745;
    color: white;
}

.toast-error {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
}

.toast-error .toast-header {
    background-color: #dc3545;
    color: white;
}

.toast-warning {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
}

.toast-warning .toast-header {
    background-color: #ffc107;
    color: #212529;
}

.toast-info {
    background-color: #d1ecf1;
    border-left: 4px solid #17a2b8;
}

.toast-info .toast-header {
    background-color: #17a2b8;
    color: white;
}

.toast-body {
    padding: 0.75rem;
    font-size: 0.9rem;
}

/* ===== VARIÁVEIS CSS ===== */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #8b5cf6;
    --danger-color: #ef4444;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --light-bg: #f9fafb;
    --dark-bg: #1f2937;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

/* ===== RESET E BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%) !important;
    min-height: 100vh;
    color: #1f2937 !important;
    color-scheme: light !important;
}

body {
    padding: 0;
    margin: 0;
}

html, body {
        background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%) !important;
        color: #1f2937 !important;
        color-scheme: light !important;
    }
    
    * {
        color-scheme: light !important;
    }
    
    /* Force dark text in summary cards */
    .summary-value,
    .summary-content strong {
        color: #111827 !important;
    }
    
    .summary-content small,
    .text-muted {
        color: #6b7280 !important;
    }

/* ===== CONTAINER ===== */
.container-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

/* ===== TYPO ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    line-height: 1.6;
    color: #4b5563;
}

/* ===== BOTÕES ===== */
.btn {
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #4338ca);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #7c3aed;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

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

.btn-success {
    background: var(--success-color);
    color: white;
}

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

.btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Month selector styles */
.month-selector {
    gap: 0.75rem;
}
.month-label {
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: capitalize;
    padding: 0 0.5rem;
    color: #111827;
}
.month-btn {
    padding: 0.5rem 0.9rem;
    font-size: 1.15rem;
    border-radius: 0.6rem;
    min-width: 44px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--border-color);
    color: #374151;
}
.month-btn:hover {
    background: var(--light-bg);
    transform: none;
    box-shadow: none;
}
.btn-outline-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: #374151;
}

@media (max-width: 576px) {
    .month-label { font-size: 0.98rem; }
    .month-btn { padding: 0.4rem 0.7rem; font-size: 1rem; min-width: 38px; height: 36px; }
}

/* ===== ACTION BUTTONS ===== */
.btn-action {
    white-space: nowrap;
    min-width: 100px;
}

@media (max-width: 576px) {
    .btn-action {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
        flex: 1;
        min-width: auto;
    }
}

/* ===== TOTALIZADORES RESPONSIVOS ===== */
.totals-container {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 0.75rem;
    padding: 1rem;
    border: 1px solid #bae6fd;
}

.totals-item {
    padding: 0.5rem;
}

.totals-item small {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.totals-item strong,
.totals-item span {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Mobile: stack items */
@media (max-width: 767px) {
    .totals-container {
        padding: 0.75rem;
    }
    
    .totals-item {
        padding: 0.5rem 0;
    }
    
    .totals-item strong,
    .totals-item span {
        font-size: 1.1rem;
    }
}

/* ===== SUMMARY CARDS ===== */
.summary-card {
    background: white;
    border-radius: 1rem;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.summary-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.summary-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.summary-icon.total {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.summary-icon.pending {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.summary-icon.paid {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.summary-icon.count {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.summary-content {
    flex: 1;
    min-width: 0;
}

.summary-content small {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    line-height: 1.2;
}

@media (max-width: 767px) {
    .summary-card {
        padding: 1rem;
    }
    
    .summary-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .summary-value {
        font-size: 1.25rem;
    }
}

/* ===== EMPTY STATES ===== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h5 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

.empty-state p {
    margin-bottom: 1.5rem;
    color: #6b7280;
}

.empty-state-small {
    padding: 3rem 1.5rem;
    text-align: center;
}

.empty-state-small p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

@media (max-width: 576px) {
    .empty-state {
        padding: 3rem 1rem;
    }
    
    .empty-icon {
        font-size: 3rem;
    }
}

/* ===== BOTTOM NAVIGATION ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.04);
    padding: 0;
}

.bottom-nav-item,
.bottom-nav-item:link,
.bottom-nav-item:visited,
.bottom-nav-item:hover,
.bottom-nav-item:active,
.bottom-nav-item:focus {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1;
    height: 100%;
    color: #4b5563 !important;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 4px;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.bottom-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 0 2px 2px;
}

.bottom-nav-item:hover,
.bottom-nav-item:hover:link,
.bottom-nav-item:hover:visited {
    color: #4f46e5 !important;
    background: rgba(99, 102, 241, 0.03);
    text-decoration: none !important;
}

.bottom-nav-item.active,
.bottom-nav-item.active:link,
.bottom-nav-item.active:visited {
    color: #4f46e5 !important;
    text-decoration: none !important;
}

.bottom-nav-item.active::before {
    width: 50%;
}

.bottom-nav-icon {
    font-size: 1.5rem;
    line-height: 1;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: block !important;
}

.bottom-nav-item:hover .bottom-nav-icon {
    transform: translateY(-2px);
}

.bottom-nav-item.active .bottom-nav-icon {
    transform: scale(1.1);
}

.bottom-nav-label {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none !important;
    display: block !important;
    color: inherit !important;
}

/* ===== PLANNING PAGE ===== */
.planning-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 100px; /* Space for total bar + bottom nav */
}

.planning-item {
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 2px solid #e5e7eb;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.planning-item:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.planning-item.selected {
    border-color: #6366f1;
    background: linear-gradient(135deg, #fafaff 0%, #f5f5ff 100%);
}

.planning-checkbox {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.planning-checkbox input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #6366f1;
}

.planning-info {
    flex: 1;
    min-width: 0;
}

.planning-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
}

.planning-header strong {
    font-size: 1rem;
    color: #1f2937;
}

.planning-details {
    font-size: 0.875rem;
}

.planning-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #4f46e5;
    flex-shrink: 0;
}

.planning-total-bar {
    position: fixed;
    bottom: 60px; /* Above bottom nav */
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 1.25rem 0;
    box-shadow: 0 -4px 24px rgba(99, 102, 241, 0.4);
    z-index: 999;
}

.planning-total-bar small {
    opacity: 0.95;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.planning-total-bar strong {
    font-size: 1.25rem;
    font-weight: 700;
}

.planning-total-value {
    font-size: 1.75rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 576px) {
    .planning-item {
        padding: 0.875rem;
    }
    
    .planning-value {
        font-size: 1.1rem;
    }
    
    .planning-total-value {
        font-size: 1.25rem;
    }
}

/* ===== INPUTS ===== */
.form-control, .form-select {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

.form-label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    display: block;
}

/* ===== CARDS ===== */
.card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-bg);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.card-body {
    padding: 0;
}

/* ===== BADGES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.badge-secondary {
    background: rgba(139, 92, 246, 0.1);
    color: var(--secondary-color);
}

/* ===== PROGRESS ===== */
progress {
    width: 100%;
    height: 0.5rem;
    border-radius: 9999px;
    border: none;
    background: var(--light-bg);
    overflow: hidden;
}

progress::-webkit-progress-bar {
    background: var(--light-bg);
    border-radius: 9999px;
}

progress::-webkit-progress-value {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 9999px;
}

progress::-moz-progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 9999px;
}

/* ===== MODALS ===== */
/* Softer backdrop with subtle blur to avoid heavy black */
.modal-backdrop {
    background: rgba(15, 23, 42, 0.18); /* dark-navy tint */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1040;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal {
    z-index: 1050;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    outline: 0;
}

.modal.d-block {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.12);
    overflow: hidden;
    animation: popIn 180ms cubic-bezier(.2,.9,.3,1);
}

/* Make modal dialogs wider (less tall/vertical feeling) while keeping responsiveness */
.modal-dialog {
    max-width: 760px; /* default wider size */
    width: 100%;
}

@media (min-width: 992px) {
    .modal-dialog { max-width: 940px; }
}

@media (min-width: 1200px) {
    .modal-dialog { max-width: 1100px; }
}

.modal-content { width: 100%; }

@keyframes popIn {
    from { transform: translateY(-6px) scale(0.995); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* Lighter, elegant header with soft gradient and rounded corners */
.modal-header {
    background: linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(249,250,255,0.9) 100%);
    color: #0f172a; /* dark slate for better contrast with light header */
    border: none;
    padding: 1.25rem 1.5rem;
    align-items: center;
    gap: 0.5rem;
}

.modal-title {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--primary-dark);
    margin: 0;
}

/* Circular white close button with subtle shadow */
.btn-close {
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    background: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
    border: none;
    transition: transform 120ms ease, box-shadow 120ms ease;
}
.btn-close:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(15,23,42,0.12); }
.btn-close::before { color: var(--primary-dark); font-weight: 700; }

.modal-body {
    padding: 1.5rem 2rem;
    background: white;
}

.modal-footer {
    border-top: 1px solid rgba(15,23,42,0.04);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,250,252,0.98));
}

/* Small screens: keep modal full width with comfortable padding */
@media (max-width: 576px) {
    .modal-content { width: 100%; border-radius: 0.75rem; }
    .modal-body { padding: 1rem; }
}

/* ===== TABS ===== */
.nav-tabs {
    border-bottom: 2px solid var(--border-color);
    gap: 0;
}

.nav-tabs .nav-link {
    color: #6b7280;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 500;
    transition: var(--transition);
    padding: 1rem 1.5rem;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: transparent;
}

/* ===== CHECKBOX CUSTOMIZADO ===== */
.form-check {
    margin-bottom: 1rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.35rem;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.form-check-input:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-check-label {
    font-weight: 500;
    color: #374151;
    cursor: pointer;
}

/* ===== LAYOUT RESPONSIVO ===== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

/* Grid Layout */
.grid-responsive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Mobile First */
@media (max-width: 768px) {
    html, body {
        font-size: 14px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .container-main {
        padding: 0.75rem;
    }

    .card {
        padding: 1rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .grid-responsive {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        padding: 0.75rem;
        font-size: 1rem;
    }

    .btn-sm {
        width: auto;
        padding: 0.5rem 0.75rem;
    }

    .nav-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .container-main {
        padding: 0.5rem;
    }

    .card {
        padding: 0.75rem;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .modal {
        margin: 0.5rem;
    }

    .modal-content {
        border-radius: 0.5rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-footer {
        padding: 1rem;
        flex-direction: column;
    }

    .modal-footer .btn {
        width: 100%;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .grid-responsive {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop */
@media (min-width: 1025px) {
    .grid-responsive {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== UTILITÁRIOS ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.pt-2 { padding-top: 1rem; }
.pb-2 { padding-bottom: 1rem; }

.hidden { display: none; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.rounded { border-radius: 0.5rem; }
.rounded-lg { border-radius: 1rem; }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }

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

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

.slide-in {
    animation: slideIn 0.3s ease;
}

/* ===== CARDS ESPECÍFICOS ===== */
/* ContaCard */
.card-conta {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card-conta:hover {
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.card-conta-paga {
    opacity: 0.6;
}

.conta-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.conta-info {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    flex: 1;
}

.conta-checkbox {
    display: flex;
    align-items: center;
    padding-top: 0.15rem;
}

.conta-nome {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
}

.conta-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.2rem;
}

.conta-meta .valor {
    font-weight: 600;
    color: #374151;
}

.conta-status {
    display: flex;
    gap: 0.35rem;
}

.conta-actions {
    display: flex;
    gap: 0.4rem;
    justify-content: flex-end;
}

.conta-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* DividaCard */
.card-divida {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card-divida:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.divida-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.divida-nome {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

.divida-valores {
    display: flex;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.divida-progresso {
    margin-bottom: 0.75rem;
}

.divida-progresso progress {
    width: 100%;
    height: 6px;
    margin-bottom: 0.25rem;
}

.divida-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.divida-actions .btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
}

/* ContaFuturaCard */
.card-futura {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card-futura:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.futura-header {
    margin-bottom: 0.75rem;
}

.futura-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.futura-nome {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

.futura-valores {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.futura-valores .valor {
    font-weight: 600;
    color: #374151;
}

.futura-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.futura-actions .btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
}

/* MetaCard */
.card-meta {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card-meta:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.meta-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.meta-nome {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

.meta-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.meta-progresso {
    margin-bottom: 1rem;
}

.progresso-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: #6b7280;
}

.progresso-info .valor {
    font-weight: 600;
    color: #111827;
}

.meta-progresso progress {
    width: 100%;
    height: 6px;
    margin-bottom: 0.25rem;
}

.meta-tempo {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 0.375rem;
}

.tempo-item {
    display: flex;
    flex-direction: column;
    font-size: 0.75rem;
}

.tempo-item .label {
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.tempo-item .valor {
    color: #111827;
    font-weight: 600;
    font-size: 0.875rem;
}

.meta-motivacao {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    border-left: 3px solid #6366f1;
    padding: 0.75rem;
    border-radius: 0.375rem;
    margin-bottom: 0.75rem;
    color: #4b5563;
}

.meta-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.meta-actions .btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
}

/* ===== RESPONSIVE CARDS ===== */
@media (max-width: 768px) {
    .card-conta, .card-divida, .card-futura, .card-meta {
        padding: 0.75rem;
    }

    .conta-header, .divida-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .conta-actions, .divida-actions, .futura-actions, .meta-actions {
        width: 100%;
    }

    .conta-actions .btn, .divida-actions .btn, .futura-actions .btn, .meta-actions .btn {
        flex: 1;
    }

    .meta-tempo {
        grid-template-columns: 1fr;
    }
}

/* ===== SCROLLBAR CUSTOMIZADO ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ===== DARK MODE (Futuro) ===== */
    :root {
        --light-bg: white;
        --dark-bg: white;
        --border-color: #e5e7eb;
    }

    html, body {
        background: white !important;
        color: #1f2937 !important;
    }

    .card, .card-conta, .card-divida, .card-meta, .card-futura {
        background: white !important;
        border-color: var(--border-color) !important;
        color: #1f2937 !important;
    }

    .form-control, .form-select {
        background: white !important;
        color: #1f2937 !important;
        border-color: var(--border-color) !important;
    }
