@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg: #0b1220;
    --card: #111b2e;
    --text: #eaf0ff;
    --muted: #9fb0ca;
    --line: rgba(255, 255, 255, .12);
    --danger: #ff5b5b;
    --font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/*
 * Root cause of the missing icons: this rule used to include *::before and *::after, which
 * forced the text font onto the pseudo-elements that Font Awesome, Tabler and other icon fonts
 * use to draw their glyphs. Pseudo-elements now inherit their element's font, so icon fonts work.
 */
* {
    font-family: var(--font-family);
}

body, button, input, select, textarea, .btn, .sidebar, .admin-main, .admin-card, .table, h1, h2, h3, h4, h5, h6, p, label, .login-box, .badge, .small, .alert {
    font-family: var(--font-family) !important;
}

body {
    margin: 0;
    font-family: var(--font-family);
    background: #000000;
    color: #ffffff;
}

button, input, select, textarea {
    font-family: inherit;
}

a {
    text-decoration: none;
    color: inherit
}

img {
    max-width: 100%
}

/* ===================== CUSTOM MOUSE CURSOR ===================== */
.bdv-cursor-dot,
.bdv-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    border-radius: 50%;
    z-index: 9999999;
    opacity: 0;
    will-change: transform, width, height, opacity, background-color, border-color;
    transform: translate3d(-100px, -100px, 0);
}

.bdv-cursor-dot {
    width: 6px;
    height: 6px;
    background-color: #92c6fb;
    box-shadow: 0 0 10px rgba(146, 198, 251, 0.8);
    transition: opacity 0.25s ease, transform 0.15s ease, background-color 0.25s ease;
    margin-left: -3px;
    margin-top: -3px;
}

.bdv-cursor-ring {
    width: 32px;
    height: 32px;
    margin-left: -16px;
    margin-top: -16px;
    border: 1.5px solid rgba(146, 198, 251, 0.55);
    background-color: rgba(0, 73, 255, 0.04);
    box-shadow: 0 0 16px rgba(0, 73, 255, 0.15);
    transition: width 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
                height 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
                margin 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
                border-color 0.28s ease,
                background-color 0.28s ease,
                opacity 0.25s ease;
}

body.bdv-cursor-hover .bdv-cursor-ring {
    width: 52px;
    height: 52px;
    margin-left: -26px;
    margin-top: -26px;
    border-color: rgba(146, 198, 251, 0.95);
    background-color: rgba(0, 73, 255, 0.14);
    box-shadow: 0 0 24px rgba(0, 73, 255, 0.35);
}

body.bdv-cursor-hover .bdv-cursor-dot {
    background-color: #ffffff;
    transform: scale(1.3);
}

body.bdv-cursor-active .bdv-cursor-ring {
    width: 26px;
    height: 26px;
    margin-left: -13px;
    margin-top: -13px;
    background-color: rgba(0, 73, 255, 0.3);
}

body.bdv-cursor-active .bdv-cursor-dot {
    transform: scale(0.7);
}

.bdv-cursor-visible {
    opacity: 1;
}

@media (pointer: coarse), (hover: none), (max-width: 991px) {
    .bdv-cursor-dot,
    .bdv-cursor-ring {
        display: none !important;
    }
}

.site-header {
    padding: 18px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0b1220;
    color: white
}

.site-header nav a {
    margin-left: 18px;
    color: #dfe8ff
}

.hero {
    padding: 90px 6%;
    background: linear-gradient(135deg, #0b1220, #162b57);
    color: white
}

.hero h1 {
    font-size: clamp(36px, 7vw, 76px);
    margin: 0 0 18px
}

.hero p {
    max-width: 720px;
    color: #cbd7ef;
    font-size: 20px
}

.container {
    width: min(1100px, 90%);
    margin: 40px auto
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 22px
}

.card {
    background: white;
    border: 1px solid #e5eaf2;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(25, 34, 55, .06)
}

.btn {
    display: inline-block;
    padding: 11px 16px;
    border-radius: 10px;
    background: #0b1220;
    color: white;
    border: 0;
    cursor: pointer
}

.btn.secondary {
    background: #edf2ff;
    color: #15233d
}

.btn.danger {
    background: var(--danger)
}

.admin-card .input,
.admin-card textarea,
.admin-card select,
.login-box .input,
.login-box textarea,
.login-box select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d9e1ee;
    border-radius: 10px;
    margin: 7px 0 14px;
    box-sizing: border-box;
}

.admin-card textarea,
.login-box textarea {
    min-height: 130px
}

.alert {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 18px
}

.alert.success {
    background: #e8fff5;
    color: #08764b
}

.alert.error {
    background: #fff0f0;
    color: #a42727
}

.admin-body {
    display: flex;
    background: #0b1220;
    min-height: 100vh;
    color: var(--text)
}

.sidebar {
    width: 260px;
    background: #0b1220;
    padding: 24px;
    border-right: 1px solid var(--line);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0
}

.sidebar h2 {
    margin: 0 0 28px;
}

.sidebar a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: #c8d6ee;
    margin-bottom: 8px
}

.sidebar a:hover {
    background: #17243a;
    color: white
}

.admin-main {
    margin-left: 260px;
    width: calc(100% - 260px);
    padding: 28px
}

.admin-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px
}

.admin-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px
}

.admin-card .input,
.admin-card textarea,
.admin-card select {
    background: #0e1728;
    color: white;
    border-color: var(--line)
}

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

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

.table th {
    color: #b9c8e3
}

.badge {
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    background: #223650
}

.badge.active {
    background: rgba(39, 194, 129, .18);
    color: #74e4b4
}

.badge.inactive {
    background: rgba(255, 91, 91, .18);
    color: #ff9999
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    background: #21324d
}

.login-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #07101e, #172b55)
}

.login-box {
    width: min(420px, 92%);
    background: white;
    border-radius: 22px;
    padding: 30px
}

.small {
    color: var(--muted);
    font-size: 14px
}

@media(max-width:800px) {
    .admin-body {
        display: block
    }

    .sidebar {
        position: relative;
        width: 100%
    }

    .admin-main {
        margin-left: 0;
        width: 100%
    }
}