/* ==========================================================================
   Lume Admin Panel — Design System
   ========================================================================== */

:root {
    --sidebar-width: 260px;
    --sidebar-bg: #12141c;
    --sidebar-hover: #1c1f2b;
    --sidebar-active: rgba(212, 175, 55, 0.12);
    --main-bg: #0a0b0f;
    --card-bg: #14161f;
    --card-bg-hover: #1a1d28;
    --text-primary: #f0f1f4;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --border-color: #252836;
    --border-light: #2f3344;
    --primary-color: #d4af37;
    --primary-hover: #e8c547;
    --primary-glow: rgba(212, 175, 55, 0.25);
    --accent-indigo: #6366f1;
    --accent-rose: #f43f5e;
    --accent-emerald: #10b981;
    --accent-sky: #0ea5e9;
    --accent-violet: #8b5cf6;
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--main-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Background mesh gradient */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% -10%, rgba(212, 175, 55, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    padding: 0;
    z-index: 1000;
    transition: transform var(--transition);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.sidebar-brand-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary-color), #b8942e);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #0a0b0f;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.sidebar-brand-text h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
}

.sidebar-brand-text span {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sidebar-menu {
    list-style: none;
    padding: 16px 12px;
    flex: 1;
}

.sidebar-menu li {
    margin: 2px 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover {
    background: var(--sidebar-hover);
    color: var(--text-primary);
}

.sidebar-menu a.active {
    background: var(--sidebar-active);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.sidebar-menu a i {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-submenu {
    list-style: none;
    padding: 4px 0 4px 12px;
    margin: 0;
    display: none;
}

.sidebar-submenu.show {
    display: block;
}

.sidebar-submenu a {
    padding: 9px 14px 9px 38px;
    font-size: 0.85rem;
    border-left: none;
}

.sidebar-menu .submenu-toggle {
    justify-content: space-between;
    cursor: pointer;
}

.sidebar-menu .submenu-toggle .chevron {
    font-size: 0.7rem;
    transition: transform var(--transition);
    margin-left: auto;
}

.sidebar-menu .submenu-toggle.open .chevron {
    transform: rotate(180deg);
}

.sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid var(--border-color);
}

.sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: all var(--transition);
}

.sidebar-footer a:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* ==========================================================================
   Main Content
   ========================================================================== */

.main-content {
    position: relative;
    z-index: 1;
    margin-left: var(--sidebar-width);
    padding: 28px 32px;
    min-height: 100vh;
}

.admin-mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    margin: -28px -32px 24px -32px;
    background: var(--sidebar-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-mobile-header .btn-menu {
    color: var(--text-primary);
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--sidebar-hover);
    cursor: pointer;
    transition: all var(--transition);
}

.admin-mobile-header .btn-menu:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
}

.sidebar-backdrop.show {
    display: block;
}

/* ==========================================================================
   Page Header
   ========================================================================== */

.page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.page-header-content h1 {
    font-size: 1.65rem;
    font-weight: 700;
    margin: 0 0 6px;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-header-content h1 i {
    color: var(--primary-color);
    font-size: 1.4rem;
}

.page-header-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.page-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.card-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.card-body {
    padding: 24px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #b8942e);
    border: none;
    color: #0a0b0f;
    font-weight: 600;
    box-shadow: 0 2px 8px var(--primary-glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
    color: #0a0b0f;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-outline-secondary {
    border-color: var(--border-light);
    color: var(--text-secondary);
    background: transparent;
}

.btn-outline-secondary:hover {
    background: var(--sidebar-hover);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.btn-danger {
    background: var(--danger);
    border-color: var(--danger);
}

.btn-sm {
    padding: 6px 10px;
    font-size: 0.8rem;
}

/* Action button group for listings */
.action-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.action-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    background: var(--sidebar-hover);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    font-size: 0.9rem;
}

.action-btn:hover {
    transform: translateY(-1px);
}

.action-btn--edit {
    color: var(--accent-sky);
    border-color: rgba(14, 165, 233, 0.3);
}

.action-btn--edit:hover {
    background: rgba(14, 165, 233, 0.15);
    color: var(--accent-sky);
}

.action-btn--view {
    color: var(--primary-color);
    border-color: rgba(212, 175, 55, 0.3);
}

.action-btn--view:hover {
    background: var(--sidebar-active);
    color: var(--primary-color);
}

.action-btn--delete {
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.3);
}

.action-btn--delete:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.action-btn--view-text {
    width: auto;
    padding: 0 12px;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-control,
.form-select {
    background-color: var(--main-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    transition: all var(--transition);
}

.form-control:focus,
.form-select:focus {
    background-color: var(--main-bg);
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-label {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.875rem;
}

.form-check-input {
    background-color: var(--main-bg);
    border-color: var(--border-color);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    color: var(--text-secondary);
}

/* ==========================================================================
   Tables — Desktop + Mobile Card View
   ========================================================================== */

.admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-table {
    width: 100%;
    color: var(--text-primary);
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table thead th {
    padding: 12px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.2);
}

.admin-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition);
}

.admin-table tbody tr:hover {
    background: var(--card-bg-hover);
}

.admin-table tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    font-size: 0.875rem;
}

.admin-table .sortable-item {
    cursor: default;
}

.admin-table .drag-handle {
    cursor: grab;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-right: 6px;
    transition: color var(--transition);
}

.admin-table .drag-handle:hover {
    color: var(--primary-color);
}

.admin-table .drag-handle:active {
    cursor: grabbing;
}

.order-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 6px;
    background: var(--sidebar-hover);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.thumb-preview {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.thumb-placeholder {
    width: 64px;
    height: 48px;
    background: var(--sidebar-hover);
    border: 1px dashed var(--border-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

/* Mobile card layout for tables */
@media (max-width: 768px) {
    .admin-table thead {
        display: none;
    }

    .admin-table tbody tr {
        display: block;
        background: var(--card-bg-hover);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        margin-bottom: 12px;
        padding: 4px 0;
    }

    .admin-table tbody tr:hover {
        border-color: var(--border-light);
    }

    .admin-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 16px;
        border: none;
        gap: 12px;
    }

    .admin-table tbody td::before {
        content: attr(data-label);
        font-size: 0.72rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--text-muted);
        flex-shrink: 0;
    }

    .admin-table tbody td[data-label=""]::before,
    .admin-table tbody td:not([data-label])::before {
        display: none;
    }

    .admin-table .td-actions {
        justify-content: flex-end;
        border-top: 1px solid var(--border-color);
        padding-top: 12px;
        margin-top: 4px;
    }

    .admin-table .td-actions::before {
        display: none;
    }
}

/* ==========================================================================
   Badges
   ========================================================================== */

.badge {
    font-weight: 500;
    font-size: 0.72rem;
    padding: 4px 8px;
    border-radius: 6px;
}

/* ==========================================================================
   Alerts
   ========================================================================== */

.alert {
    border: none;
    border-radius: var(--radius-md);
    padding: 14px 18px;
    font-size: 0.875rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    border-left: 4px solid var(--success);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-left: 4px solid var(--danger);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border-left: 4px solid var(--warning);
}

.info-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.info-banner i {
    color: var(--accent-indigo);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.info-banner code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* ==========================================================================
   Empty State
   ========================================================================== */

.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.empty-state-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: var(--sidebar-hover);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--text-muted);
}

.empty-state h6 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 20px;
}

/* ==========================================================================
   Dashboard — Stats & Feature Grid
   ========================================================================== */

.dashboard-welcome {
    margin-bottom: 32px;
}

.dashboard-welcome h1 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}

.dashboard-welcome p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 36px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--stat-accent, var(--primary-color));
    opacity: 0.8;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-light);
    box-shadow: var(--shadow-md);
}

.stat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 14px;
    background: var(--stat-bg, var(--sidebar-active));
    color: var(--stat-accent, var(--primary-color));
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: -0.03em;
}

.stat-card-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

/* Feature grid — animated cards like services section */
.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--primary-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.feature-card {
    display: block;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
    opacity: 0;
    transform: translateY(20px);
    animation: featureFadeIn 0.5s ease forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.05s; }
.feature-card:nth-child(2) { animation-delay: 0.1s; }
.feature-card:nth-child(3) { animation-delay: 0.15s; }
.feature-card:nth-child(4) { animation-delay: 0.2s; }
.feature-card:nth-child(5) { animation-delay: 0.25s; }
.feature-card:nth-child(6) { animation-delay: 0.3s; }
.feature-card:nth-child(7) { animation-delay: 0.35s; }
.feature-card:nth-child(8) { animation-delay: 0.4s; }

@keyframes featureFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--feature-glow, var(--primary-glow)) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--feature-accent, var(--primary-color));
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.feature-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    background: var(--feature-bg, var(--sidebar-active));
    color: var(--feature-accent, var(--primary-color));
    transition: transform var(--transition);
}

.feature-card:hover .feature-card-icon {
    transform: scale(1.08);
}

.feature-card-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.feature-card-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: var(--text-muted);
    font-size: 1rem;
    transition: all var(--transition);
}

.feature-card:hover .feature-card-arrow {
    color: var(--feature-accent, var(--primary-color));
    transform: translateX(4px);
}

/* ==========================================================================
   Login Page
   ========================================================================== */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 30% 20%, rgba(212, 175, 55, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 70% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
    animation: loginBgPulse 8s ease-in-out infinite alternate;
}

@keyframes loginBgPulse {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

.login-container {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.login-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px 36px;
    box-shadow: var(--shadow-lg);
    animation: loginSlideUp 0.6s ease;
}

@keyframes loginSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-brand {
    text-align: center;
    margin-bottom: 32px;
}

.login-brand-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--primary-color), #b8942e);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #0a0b0f;
    box-shadow: 0 8px 24px var(--primary-glow);
}

.login-brand h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.login-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.login-card .input-group-text {
    background: var(--main-bg);
    border: 1px solid var(--border-color);
    border-right: none;
    color: var(--text-muted);
}

.login-card .input-group .form-control {
    border-left: none;
}

.login-card .input-group:focus-within .input-group-text {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.login-card .btn-primary {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    font-size: 0.95rem;
}

/* ==========================================================================
   Detail View (Enquiry show)
   ========================================================================== */

.detail-grid dt {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-top: 4px;
}

.detail-grid dd {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
    gap: 4px;
}

.page-link {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-secondary);
    border-radius: var(--radius-sm) !important;
}

.page-link:hover {
    background: var(--sidebar-hover);
    border-color: var(--border-light);
    color: var(--text-primary);
}

.page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #0a0b0f;
}

/* ==========================================================================
   Image Preview (forms)
   ========================================================================== */

.image-preview {
    max-width: 200px;
    max-height: 200px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    margin-top: 10px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 992px) {
    .main-content {
        padding: 24px 20px;
    }

    .feature-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .admin-mobile-header {
        display: flex;
        margin: -24px -20px 20px -20px;
    }

    .sidebar {
        transform: translateX(-100%);
        box-shadow: var(--shadow-lg);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 20px 16px;
    }

    .page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .page-header-actions {
        width: 100%;
    }

    .page-header-actions .btn {
        flex: 1;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 16px 18px;
    }

    .stat-card-value {
        font-size: 1.5rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .card-body {
        padding: 16px;
    }

    .card-header {
        padding: 14px 16px;
    }

    .login-card {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
