
:root {
    --primary: #2563eb;
    --primary-light: #eff4ff;
    --background: #f5f7fb;
    --surface: #ffffff;
    --text: #17243b;
    --muted: #7b879b;
    --border: #e7ebf2;
    --sidebar-width: 250px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
}

a {
    text-decoration: none;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 28px 18px;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 10px 30px;
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
}

.brand-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    font-size: 20px;
}

.nav-label {
    padding: 15px 12px 9px;
    color: #a0aabd;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 14px;
    margin-bottom: 5px;
    border-radius: 10px;
    color: #718096;
    font-size: 14px;
    font-weight: 600;
    transition: .2s ease;
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary-light);
    color: var(--primary);
}

.nav-link .nav-icon {
    width: 20px;
    text-align: center;
    font-size: 17px;
}

.sidebar-bottom {
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding-top: 15px;
}

.main-content {
    margin-left: var(--sidebar-width);
    padding: 35px;
    min-height: 100vh;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-title {
    margin: 0;
    font-size: 28px;
    font-weight: 750;
}

.page-subtitle {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.logout {
    color: #e05252;
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 800px) {
    .sidebar {
        width: 210px;
    }

    .main-content {
        margin-left: 210px;
        padding: 22px;
    }
}

@media (max-width: 600px) {
    .sidebar {
        position: static;
        width: 100%;
        height: auto;
        padding: 15px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .brand {
        padding: 0 5px 12px;
    }

    .nav-label,
    .sidebar-bottom {
        display: none;
    }

    .sidebar nav {
        display: flex;
        overflow-x: auto;
        gap: 5px;
    }

    .nav-link {
        flex-shrink: 0;
        margin: 0;
        padding: 10px;
    }

    .main-content {
        margin-left: 0;
        padding: 20px 15px;
    }

    .topbar {
        margin-bottom: 22px;
    }

    .page-title {
        font-size: 23px;
    }
}

/* Dashboard layout */

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 28px;
}

.card {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 3px 14px rgba(25, 45, 80, 0.035);
    transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(25, 45, 80, 0.08);
}

.label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.number {
    color: var(--text);
    font-size: 34px;
    font-weight: 800;
    margin-top: 16px;
    overflow-wrap: anywhere;
}

.note {
    color: #929db0;
    font-size: 12px;
    margin-top: 10px;
}

.section {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 3px 14px rgba(25, 45, 80, 0.035);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.section-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 750;
}

.event-count {
    color: var(--muted);
    font-size: 12px;
}

.event {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 17px 0;
    border-bottom: 1px solid #edf0f5;
}

.event:last-child {
    border-bottom: none;
}

.event-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 13px;
    font-size: 21px;
}

.event-content {
    flex: 1;
    min-width: 0;
}

.event-title {
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.event-description {
    color: var(--muted);
    font-size: 13px;
    margin-top: 5px;
    overflow-wrap: anywhere;
}

.event-meta {
    color: #929db0;
    font-size: 11px;
    margin-top: 7px;
}

.event-date {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
    text-align: right;
}

.empty {
    text-align: center;
    padding: 40px 15px;
    color: var(--muted);
}

@media (max-width: 1050px) {
    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .cards {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .card {
        padding: 20px;
    }

    .section {
        padding: 17px;
    }

    .event {
        gap: 10px;
    }

    .event-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .event-date {
        font-size: 10px;
        white-space: normal;
        min-width: 72px;
    }
}
