/* =========================================================
   Sheiba Arcade - Admin Panel
   A completely separate look from the storefront:
   dark sidebar + light workspace, emerald accent.
   (Storefront css/style.css is intentionally NOT loaded here.)
   ========================================================= */

.adm {
    --adm-side: #0b1220;
    --adm-side-2: #131c31;
    --adm-accent: #10b981;
    --adm-accent-dark: #059669;
    --adm-bg: #eef2f7;
    --adm-text: #0f172a;
    --adm-muted: #64748b;
    --adm-border: #e2e8f0;
    --bs-primary: #10b981;
    --bs-primary-rgb: 16, 185, 129;
    --bs-link-color: #059669;
    --bs-link-hover-color: #047857;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--adm-bg);
    color: var(--adm-text);
    min-height: 100vh;
}

/* ---------- Sidebar ---------- */
.adm-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 250px;
    background: linear-gradient(180deg, var(--adm-side) 0%, var(--adm-side-2) 100%);
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    z-index: 1040;
    transition: transform .25s ease;
}

.adm-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 22px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    color: #fff;
    text-decoration: none;
}
.adm-brand img { width: 38px; height: 38px; border-radius: 10px; background: #fff; padding: 3px; object-fit: contain; }
.adm-brand strong { display: block; font-size: 15px; letter-spacing: .3px; }
.adm-brand small { display: block; font-size: 11px; color: var(--adm-accent); text-transform: uppercase; letter-spacing: 1.4px; }

.adm-nav { padding: 18px 14px; flex: 1; overflow-y: auto; }
.adm-nav-label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: #64748b;
    padding: 0 12px;
    margin: 6px 0 8px;
}
.adm-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    margin-bottom: 4px;
    border-radius: 10px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background .15s, color .15s;
}
.adm-link i { font-size: 17px; }
.adm-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.adm-link.active {
    background: rgba(16, 185, 129, .15);
    color: #34d399;
    box-shadow: inset 3px 0 0 var(--adm-accent);
}

.adm-side-foot { padding: 14px; border-top: 1px solid rgba(255, 255, 255, .07); }
.adm-logout {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .15);
    background: transparent;
    color: #fca5a5;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
}
.adm-logout:hover { background: rgba(239, 68, 68, .15); color: #fecaca; }

/* ---------- Main area ---------- */
.adm-main { margin-left: 250px; min-height: 100vh; display: flex; flex-direction: column; }

.adm-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 28px;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--adm-border);
}
.adm-toggle { display: none; border: 0; background: transparent; font-size: 26px; line-height: 1; color: var(--adm-text); }
.adm-topbar h1 { font-size: 17px; font-weight: 700; margin: 0; }
.adm-topbar .adm-spacer { flex: 1; }
.adm-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 14px 5px 5px;
    background: #f1f5f9;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}
.adm-chip .adm-avatar {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--adm-accent); color: #fff;
    display: grid; place-items: center; font-size: 13px; text-transform: uppercase;
}

.adm-page { padding: 28px; max-width: 1280px; width: 100%; }
.adm-page > .d-flex:first-child h3 { font-size: 22px; letter-spacing: -.2px; }

/* ---------- Components inside the panel ---------- */
.adm .form-section,
.adm .card {
    background: #fff;
    border: 1px solid var(--adm-border);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .04);
}
.adm .form-section { padding: 24px; }

.adm .form-control,
.adm .form-select { border-radius: 10px; border-color: #cbd5e1; }
.adm .form-control:focus,
.adm .form-select:focus { border-color: var(--adm-accent); box-shadow: 0 0 0 .2rem rgba(16, 185, 129, .18); }
.adm .form-label { font-size: 13px; font-weight: 600; color: #334155; }

.adm .btn { border-radius: 10px; font-weight: 500; }
.adm .btn-primary { background: var(--adm-accent); border-color: var(--adm-accent); }
.adm .btn-primary:hover,
.adm .btn-primary:focus { background: var(--adm-accent-dark); border-color: var(--adm-accent-dark); }
.adm .btn-outline-dark { border-color: #cbd5e1; color: #334155; }
.adm .btn-outline-dark:hover { background: var(--adm-side); border-color: var(--adm-side); color: #fff; }

.adm .table-responsive {
    background: #fff;
    border: 1px solid var(--adm-border);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .04);
    overflow: hidden;
}
.adm .table { margin: 0; }
.adm .table thead th {
    background: #f8fafc;
    color: var(--adm-muted);
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .8px;
    border-bottom: 1px solid var(--adm-border);
    white-space: nowrap;
}
.adm .table-bordered > :not(caption) > * > * { border-width: 0 0 1px 0; border-color: var(--adm-border); }
.adm .table-striped > tbody > tr:nth-of-type(odd) > * { --bs-table-accent-bg: transparent; }
.adm .table-hover > tbody > tr:hover > * { --bs-table-hover-bg: #f0fdf4; }

.adm .pagination .page-link { color: var(--adm-text); border-radius: 8px; margin: 0 2px; border-color: var(--adm-border); }
.adm .pagination .active .page-link { background: var(--adm-accent); border-color: var(--adm-accent); color: #fff; }

/* ---------- Mobile ---------- */
.adm-backdrop { display: none; }

@media (max-width: 991.98px) {
    .adm-sidebar { transform: translateX(-100%); }
    .adm-sidebar.open { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .4); }
    .adm-main { margin-left: 0; }
    .adm-toggle { display: block; }
    .adm-topbar { padding: 12px 16px; }
    .adm-page { padding: 18px 14px; }
    .adm-backdrop.open { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .5); z-index: 1035; }
}
