:root {
    --admin-bg: #f5f7fb;
    --admin-surface: #ffffff;
    --admin-text: #17201d;
    --admin-muted: #69756f;
    --admin-line: #e5e9ef;
    --admin-accent: #12805f;
    --admin-accent-dark: #0d624a;
    --admin-sidebar: #121b18;
}

body.admin-page {
    min-height: 100vh;
    background: var(--admin-bg);
    color: var(--admin-text);
}

.admin-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background: var(--admin-sidebar);
    color: rgba(255, 255, 255, 0.82);
    padding: 24px 14px;
}

.sidebar-brand h5 {
    color: #fff;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.72);
    padding: 0 14px;
    text-decoration: none;
    font-weight: 700;
}

.sidebar-nav-link:hover,
.sidebar-nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.sidebar-nav small {
    color: rgba(255, 255, 255, 0.42) !important;
}

.admin-content {
    padding: 32px;
}

.stat-card,
.card {
    border: 1px solid var(--admin-line) !important;
    background: var(--admin-surface);
}

.stat-card {
    min-height: 178px;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 14px 34px rgba(18, 27, 24, 0.06);
}

.stat-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 14px;
    margin-bottom: 18px;
    font-size: 1.35rem;
}

.btn-premium {
    --bs-btn-bg: var(--admin-accent);
    --bs-btn-border-color: var(--admin-accent);
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: var(--admin-accent-dark);
    --bs-btn-hover-border-color: var(--admin-accent-dark);
}

.table {
    --bs-table-bg: transparent;
}

.form-control,
.form-select,
.btn,
.alert,
.modal-content {
    border-radius: 12px;
}

@media (max-width: 992px) {
    .admin-wrapper {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
    }

    .admin-content {
        padding: 20px;
    }
}
