:root {
    --ll-bg: #f6f7fb;
    --ll-sidebar: #15131a;
    --ll-card: #ffffff;
    --ll-text: #201822;
    --ll-muted: #7a7280;
    --ll-border: #ece7ef;
    --ll-primary: #ff4f8b;
    --ll-primary-dark: #e33b77;
    --ll-soft: #fff1f6;
    --ll-green-soft: #eaf8ef;
    --ll-green-text: #1f7a3f;
    --ll-gray-soft: #f1f3f5;
    --ll-gray-text: #5f6770;
    --ll-danger-soft: #fff1f1;
    --ll-danger-text: #b02a37;
    --ll-shadow: 0 18px 45px rgba(30, 24, 34, 0.06);
    --ll-radius-xl: 26px;
    --ll-radius-lg: 20px;
    --ll-radius-md: 16px;
}

body {
    margin: 0;
    color: var(--ll-text);
    background: var(--ll-bg);
    font-family: Inter, Arial, sans-serif;
}

.auth-page {
    background:
        radial-gradient(circle at top left, #fff0f6 0%, transparent 30%),
        radial-gradient(circle at top right, #ffe8f0 0%, transparent 28%),
        linear-gradient(180deg, #fff8fb 0%, #f7f8fc 100%);
}

.auth-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 28px;
    padding: 36px 30px;
    box-shadow: 0 22px 50px rgba(31, 23, 32, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.brand-pill {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--ll-soft);
    color: var(--ll-primary-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.admin-body {
    background: var(--ll-bg);
}

.topbar {
    height: 72px;
    background: #fff;
    border-bottom: 1px solid var(--ll-border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-user {
    color: var(--ll-muted);
    font-weight: 600;
}

.admin-shell {
    display: flex;
    min-height: calc(100vh - 72px);
}

.sidebar {
    width: 260px;
    background: var(--ll-sidebar);
    color: #fff;
    flex-shrink: 0;
    padding: 24px 18px;
}

.sidebar-inner {
    position: sticky;
    top: 96px;
}

.sidebar-label {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 16px;
    padding: 0 10px;
}

.sidebar-link {
    display: block;
    color: rgba(255,255,255,0.84);
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    transition: all 0.2s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.content-area {
    flex: 1;
    padding: 28px;
}

.page-title {
    font-size: 2rem;
    font-weight: 800;
}

.page-subtitle {
    color: var(--ll-muted);
    font-size: 1rem;
}

.panel-card {
    background: var(--ll-card);
    border-radius: var(--ll-radius-xl);
    box-shadow: var(--ll-shadow);
    border: 1px solid var(--ll-border);
    padding: 24px;
}

.form-card textarea.form-control {
    min-height: 180px;
}

.panel-card-header {
    margin-bottom: 18px;
}

.panel-title {
    font-size: 1.15rem;
    font-weight: 800;
}

.stat-card {
    background: linear-gradient(180deg, #ffffff 0%, #fff8fb 100%);
    border-radius: var(--ll-radius-lg);
    border: 1px solid var(--ll-border);
    box-shadow: var(--ll-shadow);
    padding: 22px;
    height: 100%;
}

.stat-label {
    color: var(--ll-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.table-modern thead th {
    background: #fcfbfd;
    border-bottom: 1px solid var(--ll-border);
    color: var(--ll-muted);
    font-size: 0.84rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.table-modern td,
.table-modern th {
    padding: 14px 16px;
    border-color: var(--ll-border);
    vertical-align: middle;
}

.message-row td {
    background: #fcfbfd;
}

.message-preview {
    color: var(--ll-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

.code-pill {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    background: #18151c;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.status-pill {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.status-active {
    background: var(--ll-green-soft);
    color: var(--ll-green-text);
}

.status-inactive {
    background: var(--ll-gray-soft);
    color: var(--ll-gray-text);
}

.form-control,
.form-select {
    border-radius: 16px;
    border-color: #ddd6e3;
    padding: 0.9rem 1rem;
    box-shadow: none !important;
}

.form-control:focus,
.form-select:focus {
    border-color: #f2a3bf;
}

.form-help {
    margin-top: 8px;
    color: var(--ll-muted);
    font-size: 0.88rem;
}

.alert {
    border: 0;
    box-shadow: var(--ll-shadow);
}

.btn {
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .admin-shell {
        display: block;
    }

    .sidebar {
        width: 100%;
        padding: 16px;
    }

    .sidebar-inner {
        position: static;
    }

    .content-area {
        padding: 18px;
    }
}


.pagination .page-link {
    border-radius: 999px;
    margin-right: 6px;
    border-color: var(--ll-border);
    color: var(--ll-text);
    padding: 0.55rem 0.9rem;
}

.pagination .page-item.active .page-link {
    background: #18151c;
    border-color: #18151c;
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    opacity: 0.6;
}