:root {
    --bg: #eef9fc;
    --bg-soft: #d9f2f8;
    --panel: #ffffff;
    --line: #c6e5ee;
    --text: #19404f;
    --muted: #60808d;
    --brand: #15a4c8;
    --brand-dark: #0b86a7;
    --accent: #f1d79a;
    --success: #0f9f79;
    --error: #d45757;
    --shadow: 0 24px 60px rgba(17, 102, 128, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), transparent 30%),
        linear-gradient(180deg, #f7fcfe 0, #eef9fc 100%);
    min-height: 100vh;
}

a {
    color: var(--brand-dark);
    text-decoration: none;
}

.shell {
    display: grid;
    grid-template-columns: 300px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    border-right: 1px solid rgba(21, 164, 200, 0.12);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-top {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand,
.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand {
    justify-content: center;
}

.brand-mark {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 36% 32%, var(--accent) 0 6px, transparent 7px),
        radial-gradient(circle at 48% 20%, var(--accent) 0 5px, transparent 6px),
        radial-gradient(circle at 61% 25%, var(--accent) 0 5px, transparent 6px),
        radial-gradient(circle at 31% 49%, var(--accent) 0 5px, transparent 6px),
        radial-gradient(circle at 48% 47%, var(--accent) 0 4px, transparent 5px),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(235, 248, 252, 0.95));
    box-shadow: inset 0 0 0 1px rgba(21, 164, 200, 0.08);
}

.brand-logo {
    display: block;
    width: min(220px, 100%);
    height: auto;
}

.menu-toggle {
    display: none;
}

.menu-button {
    display: none;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(21, 164, 200, 0.1);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    flex-shrink: 0;
}

.menu-button span {
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: var(--brand-dark);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.brand-name {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--brand);
}

.brand-subtitle {
    margin: 0;
    color: var(--brand-dark);
    font-size: 0.95rem;
}

.menu {
    display: grid;
    gap: 8px;
}

.menu a {
    padding: 14px 16px;
    border-radius: 16px;
    color: var(--text);
    font-weight: 600;
}

.menu a.active,
.menu a:hover {
    background: linear-gradient(135deg, rgba(21, 164, 200, 0.16), rgba(241, 215, 154, 0.3));
}

.sidebar-user {
    margin-top: auto;
    padding: 18px;
    border-radius: 18px;
    background: var(--bg-soft);
    display: grid;
    gap: 4px;
}

.content {
    padding: 34px;
}

.page-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
    min-height: 64px;
}

.page-head h1,
.login-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.05;
}

.page-head p,
.login-hero p {
    margin: 0;
    color: var(--muted);
    max-width: 720px;
}

.hero-badge {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(241, 215, 154, 0.28);
    color: var(--brand-dark);
    font-weight: 700;
    margin-bottom: 18px;
}

.card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.65);
}

.soft-card {
    background: rgba(255, 255, 255, 0.72);
}

.stats-grid,
.two-column,
.profile-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 24px;
}

.stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.two-column {
    grid-template-columns: 1.3fr 1fr;
}

.two-column-wide {
    grid-template-columns: 1fr 1.3fr;
}

.profile-grid {
    grid-template-columns: 1.2fr 0.8fr;
}

.stat-card span {
    display: block;
    color: var(--muted);
}

.stat-card strong {
    font-size: 2.4rem;
    color: var(--brand-dark);
}

.section-title,
.section-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.section-title h2 {
    margin: 0;
    font-size: 1.2rem;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 0.92rem;
}

.button {
    border: 0;
    border-radius: 16px;
    padding: 13px 18px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: white;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.button-light {
    background: rgba(21, 164, 200, 0.12);
    color: var(--brand-dark);
}

.button-small {
    padding: 10px 14px;
    border-radius: 12px;
}

.badge {
    display: inline-flex;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(21, 164, 200, 0.12);
    color: var(--brand-dark);
    font-size: 0.88rem;
    font-weight: 700;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

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

.full-width {
    grid-column: 1 / -1;
}

label {
    display: grid;
    gap: 8px;
    font-weight: 600;
    color: var(--text);
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 13px 14px;
    background: rgba(255, 255, 255, 0.95);
    font: inherit;
    color: var(--text);
}

textarea {
    resize: vertical;
}

.search-form {
    display: flex;
    gap: 12px;
    width: min(100%, 360px);
}

.search-form input {
    flex: 1;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.details-grid div {
    padding: 14px;
    border-radius: 18px;
    background: var(--bg);
    display: grid;
    gap: 6px;
}

.details-grid strong {
    color: var(--muted);
    font-size: 0.9rem;
}

.note-block {
    margin-top: 18px;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(21, 164, 200, 0.08), rgba(241, 215, 154, 0.1));
}

.list-stack {
    display: grid;
    gap: 12px;
}

.list-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background: var(--bg);
}

.static-item {
    align-items: flex-start;
}

.list-item p,
.list-item small {
    margin: 4px 0 0;
    color: var(--muted);
}

.alert {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 600;
}

.alert-success {
    background: rgba(15, 159, 121, 0.14);
    color: #0f7157;
}

.alert-error {
    background: rgba(212, 87, 87, 0.14);
    color: #a43f3f;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 500;
}

.checkbox-row input {
    width: auto;
    margin-top: 4px;
}

.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-centered {
    width: 100%;
    display: flex;
    justify-content: center;
}

.login-simple-card {
    width: min(420px, 100%);
    padding: 36px 32px;
}

.login-card {
    display: grid;
    gap: 16px;
    margin-top: 12px;
}

.login-logo {
    display: block;
    width: min(240px, 100%);
    margin: 0 auto 20px;
}

.tablet-card {
    max-width: 1100px;
}

@media (max-width: 1080px) {
    .shell,
    .two-column,
    .two-column-wide,
    .profile-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        padding: 18px 20px;
        gap: 14px;
        border-right: 0;
        border-bottom: 1px solid rgba(21, 164, 200, 0.12);
    }

    .content {
        padding: 20px;
    }

    .sidebar-top {
        justify-content: space-between;
        gap: 16px;
    }

    .brand {
        justify-content: flex-start;
        flex: 1;
    }

    .brand-logo {
        width: min(180px, 100%);
    }

    .menu-button {
        display: inline-flex;
    }

    .menu {
        display: none;
        gap: 10px;
        padding-top: 6px;
    }

    .sidebar-user {
        display: none;
        margin-top: 0;
    }

    .menu-toggle:checked ~ .menu,
    .menu-toggle:checked ~ .sidebar-user {
        display: grid;
    }

    .menu-toggle:checked ~ .sidebar-top .menu-button span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle:checked ~ .sidebar-top .menu-button span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle:checked ~ .sidebar-top .menu-button span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .page-head,
    .section-inline {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-head {
        min-height: auto;
    }
}

@media (max-width: 760px) {
    .form-grid,
    .tablet-form,
    .details-grid {
        grid-template-columns: 1fr;
    }

    .content {
        padding: 16px;
    }

    .page-head h1 {
        font-size: clamp(1.7rem, 8vw, 2.3rem);
    }
}
