:root {
    --sidebar-bg: #17324d;
    --sidebar-bg-soft: #244a70;
    --page-bg: #eef3f8;
    --card-accent: #d7e6f4;
    --text-main: #19324b;
}

body.dashboard-body {
    background: linear-gradient(180deg, #f6f9fc 0%, #edf3f9 100%);
    color: var(--text-main);
}

body.auth-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(66, 135, 245, 0.18), transparent 35%),
        linear-gradient(160deg, #10263d 0%, #17324d 55%, #21496f 100%);
}

.sidebar {
    min-height: 100%;
    background:
        linear-gradient(180deg, rgba(17, 47, 77, 0.96), rgba(28, 70, 110, 0.98)),
        linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 50%);
    position: sticky;
    top: 0;
}

.sidebar-eyebrow {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.sidebar-link {
    border-radius: 0.9rem;
    padding: 0.8rem 1rem;
    color: rgba(255, 255, 255, 0.86);
    background: transparent;
    transition: all 0.2s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.sidebar-note {
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
}

.sidebar-user {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.sidebar-user-top {
    margin-bottom: 1.25rem;
}

.content-shell {
    background: transparent;
}

.content-area {
    max-width: 1440px;
}

.topbar {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(25, 50, 75, 0.08);
}

.dashboard-card {
    background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
    border: 1px solid var(--card-accent);
}

.agenda-calendar-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
    border: 1px solid #e1e9f2;
}

.agenda-calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.75rem;
}

.agenda-calendar-head {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6d7f92;
}

.agenda-calendar-cell {
    min-height: 132px;
    padding: 0.8rem;
    border: 1px solid #e1e9f2;
    border-radius: 1rem;
    background: #fbfdff;
}

.agenda-calendar-cell.is-muted {
    opacity: 0.48;
}

.agenda-calendar-cell.is-today {
    border-color: #8cb5da;
    box-shadow: inset 0 0 0 1px rgba(56, 117, 177, 0.12);
}

.agenda-calendar-date {
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.agenda-calendar-item {
    display: block;
    margin-bottom: 0.45rem;
    padding: 0.45rem 0.55rem;
    border-radius: 0.75rem;
    background: #edf4fb;
    color: #19324b;
    text-decoration: none;
    font-size: 0.82rem;
    line-height: 1.25;
}

.agenda-calendar-time {
    display: inline-block;
    margin-right: 0.4rem;
    font-weight: 700;
}

.note-preview,
.note-card,
.empty-state {
    border: 1px solid #e1e9f2;
    border-radius: 1rem;
    background: #f9fbfd;
    padding: 1rem;
}

.table > :not(caption) > * > * {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.card {
    border-radius: 1.25rem;
}

.btn,
.form-control,
.form-select {
    border-radius: 0.85rem;
}

textarea.form-control {
    min-height: 8rem;
}

.auth-shell {
    min-height: 100vh;
}

.auth-card {
    border: 0;
    border-radius: 1.4rem;
    overflow: hidden;
}

.auth-panel {
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.16), transparent 42%),
        linear-gradient(160deg, #15314c 0%, #1c466d 100%);
    color: #fff;
}

.auth-panel,
.auth-form {
    padding: 2rem;
}

.auth-form {
    background: #fff;
}

.auth-tip {
    border: 1px solid #dfe8f1;
    border-radius: 1rem;
    background: #f7fafc;
    padding: 1rem;
}

@media (max-width: 991.98px) {
    .sidebar {
        position: relative;
    }

    .agenda-calendar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .auth-panel,
    .auth-form {
        padding: 1.5rem;
    }
}
