* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    min-height: 100vh;
    color: #f5f7fb;
    overflow-x: hidden;
}

/* LOGIN PAGE */
.login-body {
    background:
        radial-gradient(circle at top left, rgba(70, 90, 255, 0.18), transparent 30%),
        radial-gradient(circle at bottom right, rgba(0, 200, 170, 0.14), transparent 30%),
        linear-gradient(135deg, #0b1020, #11182c 45%, #0d1324);
    position: relative;
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    opacity: 0.35;
}

.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.5;
    pointer-events: none;
}

.orb-1 {
    width: 260px;
    height: 260px;
    background: rgba(76, 110, 255, 0.45);
    top: 60px;
    left: 60px;
}

.orb-2 {
    width: 320px;
    height: 320px;
    background: rgba(0, 220, 180, 0.22);
    bottom: 40px;
    right: 40px;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    z-index: 2;
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px);
    border-radius: 28px;
    padding: 34px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.brand-wrap {
    text-align: center;
    margin-bottom: 26px;
}

.brand-badge {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, #6f88ff, #28d4b5);
    color: white;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    box-shadow: 0 15px 35px rgba(52, 96, 255, 0.35);
}

.brand-badge.large {
    width: 66px;
    height: 66px;
    font-size: 20px;
}

.brand-wrap h1 {
    font-size: 34px;
    margin-bottom: 6px;
}

.subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-form label {
    margin-top: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.86);
}

.login-form input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 15px;
    outline: none;
}

.login-form input:focus {
    border-color: rgba(111, 136, 255, 0.8);
    box-shadow: 0 0 0 4px rgba(111, 136, 255, 0.12);
}

.btn-primary,
.btn-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: bold;
    transition: 0.2s ease;
}

.btn-primary {
    margin-top: 18px;
    background: linear-gradient(135deg, #6f88ff, #28d4b5);
    color: white;
    box-shadow: 0 18px 35px rgba(43, 111, 255, 0.28);
}

.btn-primary:hover,
.btn-logout:hover {
    transform: translateY(-1px);
    opacity: 0.96;
}

.tiny-note {
    margin-top: 18px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.56);
}

.message {
    padding: 12px 14px;
    border-radius: 14px;
    margin-bottom: 16px;
    font-size: 14px;
}

.message.error {
    background: rgba(255, 77, 109, 0.15);
    border: 1px solid rgba(255, 77, 109, 0.3);
    color: #ffd9e0;
}

.message.success {
    background: rgba(40, 212, 181, 0.12);
    border: 1px solid rgba(40, 212, 181, 0.28);
    color: #d7fff7;
}

/* DASHBOARD */
.dashboard-body {
    background: linear-gradient(135deg, #09111f, #0f172a 48%, #0c1323);
    color: #eef3ff;
}

.dashboard-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
}

.sidebar {
    padding: 24px 22px;
    border-right: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 24px;
}

.sidebar h2 {
    margin-top: 12px;
    margin-bottom: 10px;
    font-size: 28px;
}

.sidebar-tag {
    color: rgba(255, 255, 255, 0.66);
    line-height: 1.5;
    font-size: 14px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 28px;
}

.sidebar-nav a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.04);
    padding: 13px 14px;
    border-radius: 14px;
    transition: 0.2s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: linear-gradient(135deg, rgba(111, 136, 255, 0.22), rgba(40, 212, 181, 0.16));
    color: white;
}

.btn-logout {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    margin-top: 20px;
}

.main-content {
    padding: 34px;
}

.topbar {
    margin-bottom: 24px;
}

.topbar h1 {
    font-size: 34px;
    margin-bottom: 6px;
}

.topbar p {
    color: rgba(255, 255, 255, 0.65);
}

.hero-card {
    background: linear-gradient(135deg, rgba(111, 136, 255, 0.18), rgba(40, 212, 181, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.09);
    padding: 28px;
    border-radius: 24px;
    margin-bottom: 24px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 12px;
    color: #9dc3ff;
    margin-bottom: 10px;
}

.hero-card h2 {
    font-size: 30px;
    margin-bottom: 12px;
}

.hero-copy {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
    max-width: 800px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card,
.panel-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.stat-card span {
    display: block;
    color: rgba(255, 255, 255, 0.66);
    margin-bottom: 12px;
    font-size: 14px;
}

.stat-card strong {
    display: block;
    font-size: 32px;
    margin-bottom: 6px;
}

.stat-card small {
    color: rgba(255, 255, 255, 0.56);
}

.panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.panel-card h3 {
    font-size: 21px;
    margin-bottom: 12px;
}

.panel-card p {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .dashboard-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .stats-grid,
    .panel-grid {
        grid-template-columns: 1fr;
    }
}
.mini-table-wrap {
    overflow-x: auto;
    margin-top: 12px;
}

.mini-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.mini-table th,
.mini-table td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mini-table th {
    color: rgba(255,255,255,0.7);
    font-weight: bold;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.mini-table td {
    color: rgba(255,255,255,0.9);
}
.account-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.account-form-grid .full-width {
    grid-column: 1 / -1;
}

.account-form-grid label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.86);
    font-size: 14px;
}

.account-form-grid input,
.account-form-grid select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.08);
    color: white;
    font-size: 15px;
    outline: none;
}

.account-form-grid input:focus,
.account-form-grid select:focus {
    border-color: rgba(111, 136, 255, 0.8);
    box-shadow: 0 0 0 4px rgba(111, 136, 255, 0.12);
}

@media (max-width: 900px) {
    .account-form-grid {
        grid-template-columns: 1fr;
    }
}
.sidebar-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand-logo-wrap {
    width: 72px;
    height: 72px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 16px;
}

.brand-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.sidebar h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 28px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.btn-logout {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    margin-top: 8px;
}
.budget-group-card {
    margin-bottom: 20px;
}

.budget-group-card h3 {
    margin-bottom: 16px;
}

.budget-lines {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.budget-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}

.budget-line-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.budget-category-name {
    font-size: 15px;
    color: rgba(255,255,255,0.95);
}

.budget-category-type {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.budget-line-input {
    min-width: 180px;
}

.budget-line-input input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.08);
    color: white;
    font-size: 15px;
    outline: none;
    text-align: right;
}

.budget-line-input input:focus {
    border-color: rgba(111, 136, 255, 0.8);
    box-shadow: 0 0 0 4px rgba(111, 136, 255, 0.12);
}

.budget-save-wrap {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 700px) {
    .budget-line {
        flex-direction: column;
        align-items: stretch;
    }

    .budget-line-input {
        min-width: 100%;
    }

    .budget-save-wrap {
        justify-content: stretch;
    }

    .budget-save-wrap .btn-primary {
        width: 100%;
    }
}