:root {
    --bg-main: linear-gradient(135deg, #1f2937, #111827);
    --text-main: white;
    --card-bg: rgba(255,255,255,0.08);
    --card-border: rgba(255,255,255,0.1);
    --text-muted: rgba(255,255,255,0.5);
}

.light-mode {
    --bg-main: linear-gradient(135deg, #f8fafc, #e2e8f0);
    --text-main: #111827;
    --card-bg: white;
    --card-border: #e5e7eb;
    --text-muted: #6b7280;
}

body {
    overscroll-behavior: none;
    min-height: 100vh;
    background: var(--bg-main);
    color: var(--text-main);
    transition: background 0.4s ease, color 0.4s ease;
}

h1, h2, h3 {
    color: inherit;
}

.app-card {
    border-radius: 18px;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    transition: all 0.4s ease;
}

.app-card:hover {
    transform: translateY(-4px);
}

.app-card h1 {
    font-size: 3rem;
}        

.app-card img {
    border-radius: 6px;
}

.app-card .border-bottom:last-child {
    border-bottom: none !important;
}

.card-visa {
    background: #1a1f71;
}

.card-mc {
    background: #111;
}

.app-card[role="button"]:hover {
    transform: scale(1.02);
    cursor: pointer;
}

.badge-mese-aperto {
    background: #22c55e;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
}

/*input.form-control {
    background: var(--card-bg);
    color: var(--text-main);
    border: 1px solid var(--card-border);
}

input.form-control::placeholder {
    color: var(--text-muted);
}*/

.form-check-label {
    color: var(--text-muted);
}

.saldo-positivo {
    color: #22c55e;
}

.saldo-negativo {
    color: #ef4444;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* LIGHT MODE */
.light-mode {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    color: #111827;
}

.light-mode .btn-outline-light {
    color: #111827;
    border-color: #111827;
}

.light-mode .btn-outline-light:hover {
    background: #111827;
    color: white;
}

.light-mode h1,
.light-mode h2,
.light-mode h3 {
    color: var(--text-main);
}

.light-mode .table {
    color: #111827;
}

.modal input.form-control {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}

body:not(.light-mode) .text-muted {
    color: #9ca3af !important;
}

.divider-soft {
    border-bottom: 1px solid #374151;
}

.app-card hr {
    opacity: .15;
}

.movimento-escluso {
    opacity: .5;
    text-decoration: line-through;
}

.app-card i[role="button"] {
    cursor: pointer;
    opacity: 0.85;
}

.app-card i[role="button"]:hover {
    opacity: 1;
    transform: scale(1.1);
}

.movimenti-scroll {
    max-height: 560px;
    overflow-y: auto;
    padding-right: 20px;
}

.spinner {
    margin: 10px auto;
    width: 24px;
    height: 24px;
    border: 3px solid #ccc;
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

