:root {
    --bg: #05070d;
    --panel: #0b101b;
    --panel-soft: #101827;
    --border: rgba(83, 193, 255, 0.22);
    --blue: #35c8ff;
    --blue-dark: #147ee8;
    --gold: #ffc84a;
    --text: #f5f8ff;
    --muted: #91a0b8;
    --danger: #ff5263;
    --success: #22d398;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 10%, rgba(53, 200, 255, 0.12), transparent 28%),
        radial-gradient(circle at 90% 20%, rgba(255, 200, 74, 0.08), transparent 22%),
        var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    position: fixed;
    inset: 0 auto 0 0;
    padding: 24px 18px;
    background: rgba(7, 11, 19, 0.96);
    border-right: 1px solid var(--border);
    box-shadow: 15px 0 45px rgba(0, 0, 0, 0.24);
    overflow-y: auto;
}

.brand {
    padding: 16px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(53, 200, 255, 0.12), rgba(255, 200, 74, 0.06));
}

.brand h1 {
    font-size: 21px;
    color: var(--blue);
    text-shadow: 0 0 18px rgba(53, 200, 255, 0.45);
}

.brand p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
}

.nav-menu {
    display: grid;
    gap: 9px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    border-radius: 12px;
    color: #b7c3d7;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    background: linear-gradient(90deg, rgba(53, 200, 255, 0.18), rgba(53, 200, 255, 0.04));
    border-left: 3px solid var(--blue);
}

.main-content {
    width: calc(100% - 260px);
    margin-left: 260px;
    padding: 28px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}

.page-title h2 {
    font-size: 27px;
}

.page-title p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 14px;
}

.user-badge {
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--panel);
    color: var(--gold);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 25px;
}

.stat-card,
.panel {
    border: 1px solid var(--border);
    background: linear-gradient(145deg, rgba(15, 24, 39, 0.96), rgba(8, 13, 23, 0.96));
    box-shadow: var(--shadow);
    border-radius: 18px;
}

.stat-card {
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    right: -35px;
    top: -35px;
    border-radius: 50%;
    background: rgba(53, 200, 255, 0.13);
    filter: blur(3px);
}

.stat-label {
    color: var(--muted);
    font-size: 13px;
}

.stat-value {
    display: block;
    margin-top: 8px;
    font-size: 29px;
    font-weight: 800;
    color: var(--blue);
}

.stat-note {
    display: block;
    margin-top: 7px;
    color: var(--gold);
    font-size: 12px;
}

.panel {
    padding: 22px;
    margin-bottom: 22px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 19px;
}

.panel-title {
    font-size: 18px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 11px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.2s ease;
}

.btn-primary {
    color: #04111c;
    background: linear-gradient(135deg, var(--blue), #68e0ff);
    box-shadow: 0 8px 24px rgba(53, 200, 255, 0.25);
}

.btn-gold {
    color: #221600;
    background: linear-gradient(135deg, #ffd76b, var(--gold));
    box-shadow: 0 8px 24px rgba(255, 200, 74, 0.2);
}

.btn-danger {
    color: white;
    background: var(--danger);
}

.btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.07);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group.full {
    grid-column: 1 / -1;
}

label {
    color: #c6d1e2;
    font-size: 13px;
    font-weight: 700;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    color: white;
    background: #080d16;
    border: 1px solid rgba(145, 160, 184, 0.22);
    border-radius: 11px;
    outline: none;
}

.form-control:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(53, 200, 255, 0.11);
}

textarea.form-control {
    min-height: 130px;
    resize: vertical;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(145, 160, 184, 0.12);
}

th {
    color: var(--gold);
    font-size: 12px;
    text-transform: uppercase;
}

td {
    color: #d7dfeb;
    font-size: 14px;
}

.badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.badge-success {
    color: #8effd8;
    background: rgba(34, 211, 152, 0.13);
}

.badge-danger {
    color: #ff9da7;
    background: rgba(255, 82, 99, 0.13);
}

.badge-pending {
    color: #ffe09a;
    background: rgba(255, 200, 74, 0.13);
}

.alert {
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: 12px;
}

.alert-success {
    color: #a5ffe0;
    background: rgba(34, 211, 152, 0.12);
    border: 1px solid rgba(34, 211, 152, 0.3);
}

.alert-danger {
    color: #ffb3ba;
    background: rgba(255, 82, 99, 0.12);
    border: 1px solid rgba(255, 82, 99, 0.3);
}

.progress {
    width: 100%;
    height: 14px;
    overflow: hidden;
    background: #070b12;
    border-radius: 999px;
    border: 1px solid var(--border);
}

.progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--blue-dark), var(--blue), var(--gold));
    border-radius: inherit;
    transition: width 0.3s ease;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 430px;
    padding: 34px;
    border-radius: 22px;
    border: 1px solid var(--border);
    background: rgba(9, 14, 24, 0.96);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.login-logo {
    text-align: center;
    margin-bottom: 26px;
}

.login-logo h1 {
    color: var(--blue);
    font-size: 27px;
}

.login-logo p {
    color: var(--muted);
    margin-top: 8px;
}

@media (max-width: 1000px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .sidebar {
        position: static;
        width: 100%;
        height: auto;
    }

    .app-layout {
        display: block;
    }

    .main-content {
        width: 100%;
        margin-left: 0;
        padding: 18px;
    }

    .stats-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }
}