/*
 * Coldshot shared theme - grey / black / red / white.
 * Public pages (dashboard, studio, profile, badges, login, register, landing) now carry their own
 * styles. This file only holds the shared colour tokens and the admin panel skin.
 */
:root {
    color-scheme: dark;
    --cs-bg: #0c0c0c;
    --cs-bg-soft: #121212;
    --cs-panel: rgba(24, 24, 24, .82);
    --cs-panel-solid: #181818;
    --cs-panel-raised: #202020;
    --cs-line: rgba(236, 236, 236, .09);
    --cs-line-strong: rgba(236, 236, 236, .16);
    --cs-text: #f7f7f7;
    --cs-muted: #a7a7a7;
    --cs-frost: #d4d4d8;
    --cs-frost-bright: #f4f4f5;
    --cs-ember: #ff3b47;
    --cs-red: #e11d2e;
    --cs-ember-soft: rgba(225, 29, 46, .13);
    --cs-radius: 17px;
    --cs-shadow: 0 24px 70px rgba(0, 0, 0, .3);
    --cs-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html { scroll-behavior: smooth; }

.coldshot-admin {
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 82% 0%, rgba(151, 151, 151, .14), transparent 36rem),
        radial-gradient(ellipse at 10% 75%, rgba(225, 29, 46, .06), transparent 32rem),
        var(--cs-bg);
    color: var(--cs-text);
    font-family: var(--cs-font);
}
.coldshot-admin > .d-flex { min-height: 100vh; }
.coldshot-admin .sidebar {
    position: sticky;
    top: 0;
    width: 252px;
    height: 100vh;
    flex: 0 0 252px;
    padding: 22px 14px;
    border-right: 1px solid var(--cs-line);
    background: rgba(14, 14, 14, .86);
    box-shadow: 12px 0 42px rgba(0, 0, 0, .14);
}
.coldshot-admin .admin-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 1px 8px 30px;
    color: #f8f8f8;
    font-size: .97rem;
    font-weight: 800;
    letter-spacing: .035em;
    text-decoration: none;
}
.coldshot-admin .admin-brand > span {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid rgba(225, 29, 46, .3);
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(225, 29, 46, .18), rgba(255, 255, 255, .1));
    color: var(--cs-ember);
}
.coldshot-admin .admin-brand small {
    margin-left: auto;
    color: var(--cs-muted);
    font-size: .58rem;
    letter-spacing: .14em;
}
.coldshot-admin .sidebar .avatar-img {
    border: 2px solid rgba(255, 255, 255, .45);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .07);
}
.coldshot-admin .sidebar h5 { color: #f4f4f4; font-size: .9rem; font-weight: 650; }
.coldshot-admin .sidebar .nav-link {
    margin: 3px 0;
    padding: 11px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #b0b0b0;
    font-size: .85rem;
    transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.coldshot-admin .sidebar .nav-link:hover,
.coldshot-admin .sidebar .nav-link.active {
    transform: none;
    border-color: rgba(255, 255, 255, .12);
    background: linear-gradient(100deg, rgba(255, 255, 255, .1), rgba(225, 29, 46, .055));
    color: #f8f8f8;
    box-shadow: none;
}
.coldshot-admin .main-content {
    width: calc(100% - 252px);
    min-width: 0;
    flex: 1 1 auto;
    padding: 38px clamp(22px, 4vw, 58px);
}
.coldshot-admin .header-title {
    margin-bottom: 8px !important;
    background: linear-gradient(105deg, #fff 8%, var(--cs-frost-bright) 70%, #ffb3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    font-weight: 750;
    letter-spacing: -.055em;
}
.coldshot-admin .lead { color: var(--cs-muted); font-size: .94rem; }
.coldshot-admin .glass-card {
    border: 1px solid var(--cs-line);
    border-radius: var(--cs-radius);
    background: linear-gradient(145deg, rgba(30, 30, 30, .88), rgba(18, 18, 18, .88));
    box-shadow: var(--cs-shadow);
    transition: transform .18s ease, border-color .18s ease;
}
.coldshot-admin .glass-card:hover { transform: translateY(-2px); border-color: var(--cs-line-strong); }
.coldshot-admin .glass-card .card-body { padding: 24px; }
.coldshot-admin .glass-card h5 { color: var(--cs-muted); font-size: .85rem; }
.coldshot-admin .glass-card h2 { color: var(--cs-frost-bright) !important; font-size: 1.7rem; font-weight: 750; }
.coldshot-admin .stat-icon { font-size: 1.7rem; }
.coldshot-admin .text-primary { color: var(--cs-ember) !important; }
.coldshot-admin .text-info { color: var(--cs-frost) !important; }
.coldshot-admin .text-success { color: #c1c1c1 !important; }
.coldshot-admin .form-control,
.coldshot-admin .form-select {
    min-height: 42px;
    border: 1px solid var(--cs-line);
    border-radius: 10px;
    background-color: rgba(8, 8, 8, .64);
    color: var(--cs-text);
}
.coldshot-admin .form-control:focus,
.coldshot-admin .form-select:focus {
    border-color: rgba(255, 255, 255, .58);
    background-color: rgba(8, 8, 8, .8);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .1);
}
.coldshot-admin .table {
    --bs-table-bg: transparent;
    --bs-table-color: #e5e5e5;
    --bs-table-border-color: var(--cs-line);
    --bs-table-hover-bg: rgba(255, 255, 255, .045);
    --bs-table-hover-color: #fff;
    margin-bottom: 0;
    font-size: .85rem;
}
.coldshot-admin .table thead th {
    color: #acacac;
    font-size: .72rem;
    font-weight: 650;
    letter-spacing: .055em;
    text-transform: uppercase;
    white-space: nowrap;
}
.coldshot-admin .table td { vertical-align: middle; }
.coldshot-admin .btn {
    border-radius: 9px;
    font-size: .78rem;
}
.coldshot-admin .btn-primary {
    border-color: transparent;
    background: linear-gradient(140deg, #f03644, #c8101f);
    color: #ffffff;
    font-weight: 700;
}
.coldshot-admin .alert {
    border-color: var(--cs-line);
    border-radius: 12px;
    background-color: rgba(255, 255, 255, .08);
    color: #f4f4f5;
}

@media (max-width: 767.98px) {
    .coldshot-admin > .d-flex { display: block !important; }
    .coldshot-admin .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        padding: 14px;
        border-right: 0;
        border-bottom: 1px solid var(--cs-line);
    }
    .coldshot-admin .admin-brand { margin: 0 6px 13px; }
    .coldshot-admin .sidebar .text-center { display: none; }
    .coldshot-admin .sidebar .nav { flex-direction: row !important; flex-wrap: wrap; gap: 5px; }
    .coldshot-admin .sidebar .nav-link { width: auto; margin: 0; padding: 9px 10px; font-size: .78rem; }
    .coldshot-admin .main-content { width: 100%; padding: 25px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}