:root {
    --navy: #0b1f4b;
    --blue: #2563eb;
    --blue-2: #4f7ff0;
    --pale: #eaf1ff;
    --bg: #f5f8ff;
    --card: #fff;
    --text: #17233d;
    --muted: #6b7690;
    --border: #dbe5f7;
    --danger: #d64545;
    --sidebar: 92px;
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: 'Nunito', 'Segoe UI', Arial, sans-serif;
    color: var(--text)
}

body.page-body {
    background: var(--bg);
    display: flex
}

.sidebar {
    width: var(--sidebar);
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    background: #fff;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 24px 12px;
    z-index: 20;
    box-shadow: 3px 0 16px rgba(23, 55, 110, .06)
}

.sidebar .logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 14px
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px
}

.nav-item,
.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none
}

.nav-item {
    width: 64px;
    min-height: 56px;
    border-radius: 14px;
    color: var(--navy);
    font-weight: 800;
    font-size: 12px;
    padding: 6px;
    transition: .2s
}

.nav-item:hover,
.nav-item.active {
    background: var(--pale);
    color: var(--blue);
    transform: translateY(-1px)
}

.nav-item img {
    width: 28px;
    height: 28px;
    object-fit: contain
}

.sidebar-bottom {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.icon-btn {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: #f5f8ff
}

.icon-btn:hover {
    background: var(--pale)
}

.icon-btn img {
    width: 32px;
    height: 32px;
    object-fit: contain
}

.main-page {
    margin-left: var(--sidebar);
    width: calc(100% - var(--sidebar));
    min-height: 100vh;
    padding: 40px clamp(22px, 5vw, 70px)
}

.page-head {
    margin-bottom: 28px
}

.page-head h1 {
    margin: 0 0 8px;
    font-size: 34px;
    color: var(--navy)
}

.page-head p {
    margin: 0;
    color: var(--muted);
    font-size: 15px
}

.panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 8px 26px rgba(30, 65, 130, .07)
}

.btn {
    border: 0;
    border-radius: 12px;
    padding: 11px 18px;
    font: 800 14px inherit;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px
}

.btn-primary {
    background: var(--blue);
    color: #fff
}

.btn-primary:hover {
    background: #1d4ed8
}

.btn-outline {
    background: #fff;
    color: var(--blue);
    border: 1px solid #bcd0fa
}

.btn-danger {
    background: #fff;
    color: var(--danger);
    border: 1px solid #f0c7c7
}

.btn-ghost {
    background: #eef4ff;
    color: var(--navy)
}

.toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    background: var(--navy);
    color: #fff;
    padding: 13px 18px;
    border-radius: 12px;
    box-shadow: 0 10px 25px #0002;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: .2s;
    z-index: 100
}

.toast.show {
    opacity: 1;
    transform: none
}
