:root {
    --bg: #f6f6f6;
    --panel: #ffffff;
    --muted: #9aa0a6;
    --accent: #e9eef0;
    --primary: #1f6aa5;
    --danger: #e04b4b;
    --success: #1f7fe0;
    --warning: #f7e9d6;
    --radius: 10px;
    --card-radius: 12px;
    --shadow: 0 8px 20px rgba(20, 20, 20, 0.06);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Reset */
* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--bg);
    color: #111827;
    font-size: 15px;
    line-height: 1.4
}

/* Layout */
.app {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    min-height: 100vh
}

/* Sidebar */
.sidebar {
    background: #f3f6f6;
    padding: 28px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid rgba(0, 0, 0, 0.03)
}

.brand {
    font-weight: 700;
    color: var(--primary);
    font-size: 22px;
    margin-bottom: 26px
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    color: #374151;
    text-decoration: none;
    font-weight: 500
}

.nav a.active {
    background: var(--accent);
    color: #0f172a;
    font-weight: 600
}

.logout {
    color: var(--danger);
    font-weight: 600;
    text-decoration: none;
    padding: 10px 12px
}

/* Main */
.main {
    padding: 28px 36px
}

/* Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px
}

.page-title {
    font-size: 36px;
    margin: 0;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px
}

.page-sub {
    margin: 6px 0 0;
    color: var(--muted);
    font-weight: 500
}

/* new badge */
.new-badge {
    background: #e11d48;
    color: #fff;
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    margin-left: 8px
}

/* header actions */
.header-actions .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    border: 0;
    font-weight: 700;
    cursor: pointer
}

.header-actions .plus {
    font-size: 18px;
    line-height: 0
}

/* stats */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 14px 0 22px
}

.stat {
    background: var(--panel);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center
}

.stat .left {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.stat .label {
    color: var(--muted);
    font-weight: 600
}

.stat .value {
    font-size: 28px;
    font-weight: 800
}

.stat .icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #fff7ea;
    display: grid;
    place-items: center;
    font-size: 22px
}

/* notifications card */
.notifications-card {
    background: var(--panel);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow);
    padding: 18px
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px
}

.card-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 800
}

.mark-all {
    background: transparent;
    border: 0;
    color: #374151;
    cursor: pointer;
    font-weight: 600
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px
}

/* single notification */
.notification {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px;
    border-radius: 12px;
    background: linear-gradient(180deg, #fff, #fbfbfb);
    border: 1px solid rgba(0, 0, 0, 0.04);
    cursor: pointer;
}

.notification.unread {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.05)
}

.notification.info {
    background: #fbf7ef
}

.notification.alert {
    background: #fff6f6
}

.notification.success {
    background: #fbfffb
}

.note-left {
    width: 56px;
    display: grid;
    place-items: center
}

.note-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.03);
    font-size: 18px
}

.note-body {
    flex: 1
}

.note-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800
}

.note-text {
    margin: 8px 0 6px;
    color: #4b5563
}

.note-meta {
    font-size: 13px;
    color: var(--muted)
}

.note-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 90px
}

.note-tag {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    background: #e9eef0;
    color: #475569;
    font-weight: 700;
    font-size: 13px
}

.note-tag.success {
    background: #1f7fe0;
    color: #fff
}

.note-tag.alert {
    background: #fee2e2;
    color: #b91c1c
}

/* unread dot */
.unread-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f59e0b;
    display: inline-block;
    margin-left: 6px
}