/* ── Base ── */
.card-soft { border: 0; border-radius: 18px; box-shadow: 0 8px 24px rgba(0,0,0,.07); }
.stat-card { min-height: 110px; }
.month-card.upcoming { opacity: .45; }
.table td, .table th { vertical-align: middle; }
.login-wrap { min-height: 100vh; display:flex; align-items:center; justify-content:center; }
.note-box { white-space: pre-wrap; }

/* ── App Shell ── */
body.app-body { background: #f0f4f8; }
.app-shell { min-height: 100vh; display: flex; }

/* ── Sidebar ── */
.app-sidebar {
    width: 270px;
    min-height: 100vh;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    box-shadow: 4px 0 20px rgba(15,23,42,.18);
    display: flex;
    flex-direction: column;
}

.app-sidebar::-webkit-scrollbar { width: 4px; }
.app-sidebar::-webkit-scrollbar-track { background: transparent; }
.app-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 4px; }

.app-main { flex: 1; min-width: 0; }
.app-content { padding-left: 1.25rem; padding-right: 1.25rem; }

.sidebar-brand { border-bottom: 1px solid rgba(255,255,255,.06); }

.app-menu .nav-link {
    color: rgba(255,255,255,.78);
    border-radius: 12px;
    padding: .6rem .9rem;
    margin-bottom: .2rem;
    font-weight: 500;
    font-size: .9rem;
    transition: all .2s;
}
.app-menu .nav-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.app-menu .nav-link.active { background: rgba(255,255,255,.13); color: #fff; font-weight: 600; }

.sidebar-user {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    padding: .9rem;
}

/* ── Topbar ── */
.app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem 1rem;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

/* ── Mobile offcanvas ── */
.app-offcanvas { background: #0f172a; color: #fff; }
.app-offcanvas .btn-close { filter: invert(1); }

/* ── Cards ── */
.page-banner { border: 1px solid rgba(15,23,42,.05); }

/* ── Message System ── */
.msg-shell { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.07); }

/* ── Notification dot ── */
.notif-dot { width: 8px; height: 8px; background: #ef4444; border-radius: 50%; display: inline-block; }

/* ── Leaderboard ── */
.progress { border-radius: 99px; background: #f1f5f9; }
.progress-bar { border-radius: 99px; }

/* ── Notes ── */
.note-card { transition: transform .15s; }
.note-card:hover { transform: translateY(-2px); }

/* ── Responsive ── */
@media (max-width: 991.98px) {
    .app-content { padding-left: .75rem; padding-right: .75rem; }
    .msg-shell { height: 80vh !important; }
}

/* ── Utility ── */
.min-w-0 { min-width: 0; }
