/* =========================================================================
   Boys in the Hood — Admin / staff dashboard styles
   ========================================================================= */
:root {
    --black: #0e0e0f;
    --ink: #1f2430;
    --bg: #f3f4f7;
    --paper: #ffffff;
    --muted: #7a8092;
    --line: #e4e7ee;
    --accent: #e8442b;
    --blue: #2d63e9;
    --green: #1c9b53;
    --radius: 12px;
    --shadow: 0 6px 24px rgba(20,25,45,.07);
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---- Login screen ---- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px;
    background: radial-gradient(1200px 600px at 50% -10%, #20232e, #0e0e0f); }
.login-card { background: var(--paper); width: 100%; max-width: 400px; border-radius: 18px; padding: 38px 32px; box-shadow: 0 30px 70px rgba(0,0,0,.4); }
.login-logo { text-align: center; margin-bottom: 8px; }
.login-logo .mark { font-family: 'Anton', sans-serif; background: var(--black); color: #fff; padding: 6px 12px; border-radius: 8px; font-size: 28px; letter-spacing: 1px; }
.login-card h1 { text-align: center; font-size: 20px; margin: 18px 0 4px; }
.login-card p.sub { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 24px; }

/* ---- Layout ---- */
.admin { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { background: var(--black); color: #c7cad6; padding: 22px 16px; position: sticky; top: 0; height: 100vh; }
.sidebar__brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 22px; }
.sidebar__brand .mark { font-family: 'Anton', sans-serif; background: #fff; color: var(--black); padding: 3px 9px; border-radius: 6px; font-size: 20px; }
.sidebar__brand b { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.sidebar nav a { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 9px; font-weight: 600; font-size: 14.5px; color: #c7cad6; margin-bottom: 3px; transition: .15s; }
.sidebar nav a:hover { background: #1d1e22; color: #fff; }
.sidebar nav a.active { background: var(--accent); color: #fff; }
.sidebar nav a .ic { width: 20px; text-align: center; font-size: 16px; }
.sidebar__foot { position: absolute; bottom: 18px; left: 16px; right: 16px; }
.sidebar__foot a { display: block; padding: 10px 13px; border-radius: 9px; font-size: 13.5px; color: #9a9eae; }
.sidebar__foot a:hover { background: #1d1e22; color: #fff; }

.main { padding: 28px 34px 60px; max-width: 1100px; }
.topbar-admin { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; flex-wrap: wrap; gap: 12px; }
.topbar-admin h1 { font-size: 23px; }
.topbar-admin .who { color: var(--muted); font-size: 13.5px; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; padding: 10px 18px; border-radius: 9px; border: 1.5px solid transparent; cursor: pointer; transition: .15s; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #cf3a23; }
.btn--dark { background: var(--black); color: #fff; }
.btn--ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: #c3c8d4; }
.btn--danger { background: #fff; border-color: #f0c4bd; color: #c5341e; }
.btn--danger:hover { background: #fce9e7; }
.btn--sm { padding: 7px 13px; font-size: 13px; }
.btn--block { width: 100%; justify-content: center; }

/* ---- Cards / panels ---- */
.panel { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 22px; }
.panel h2 { font-size: 16px; margin-bottom: 16px; }

/* ---- Stat cards ---- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 26px; }
.stat { background: var(--paper); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.stat .num { font-size: 30px; font-weight: 800; }
.stat .lbl { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }
.quick { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Forms ---- */
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; }
.form-row .hint { color: var(--muted); font-size: 12.5px; font-weight: 400; margin-top: 4px; }
.input, .textarea, select.input { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 9px; font-size: 14.5px; font-family: inherit; background: #fff; outline: none; transition: border .15s; }
.input:focus, .textarea:focus, select.input:focus { border-color: var(--accent); }
.textarea { min-height: 110px; resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkbox { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14px; cursor: pointer; }
.checkbox input { width: 18px; height: 18px; }
.form-actions { display: flex; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---- Image upload preview ---- */
.uploader { border: 2px dashed var(--line); border-radius: 12px; padding: 18px; text-align: center; background: #fafbfc; }
.uploader input[type=file] { margin-top: 8px; }
.previews { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.previews .thumb { position: relative; width: 84px; height: 104px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.previews .thumb img { width: 100%; height: 100%; object-fit: cover; }
.previews .thumb .rm { position: absolute; top: 3px; right: 3px; background: rgba(0,0,0,.65); color: #fff; border: none; width: 20px; height: 20px; border-radius: 999px; cursor: pointer; font-size: 12px; line-height: 1; }
.current-images { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 4px; }
.current-images label { position: relative; width: 84px; }
.current-images img { width: 84px; height: 104px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.current-images .del-check { position: absolute; top: 4px; left: 4px; background: #fff; padding: 2px 5px; border-radius: 6px; font-size: 11px; display: flex; align-items: center; gap: 3px; box-shadow: 0 1px 4px rgba(0,0,0,.2); cursor: pointer; }

/* ---- Tables ---- */
.table-wrap { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
table.data { width: 100%; border-collapse: collapse; }
table.data th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--line); background: #fafbfc; }
table.data td { padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
table.data tr:last-child td { border-bottom: none; }
table.data .pimg { width: 52px; height: 64px; object-fit: cover; border-radius: 7px; background: var(--bg); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill--live { background: #e6f6ec; color: #1c7a43; }
.pill--out { background: #fce9e7; color: #c5341e; }
.pill--feat { background: #fff2dd; color: #b5780c; }
.row-actions { display: flex; gap: 8px; }

/* ---- Flash ---- */
.flash { margin-bottom: 18px; padding: 12px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.flash--success { background: #e6f6ec; color: #1c7a43; border: 1px solid #bfe6cd; }
.flash--error { background: #fce9e7; color: #b02a16; border: 1px solid #f3c3bc; }

.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-state h3 { color: var(--ink); margin-bottom: 8px; }

.mobile-bar { display: none; }

@media (max-width: 820px) {
    .admin { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .sidebar.open { display: block; position: fixed; z-index: 100; width: 248px; }
    .mobile-bar { display: flex; align-items: center; justify-content: space-between; background: var(--black); color: #fff; padding: 14px 18px; position: sticky; top: 0; z-index: 40; }
    .mobile-bar .mark { font-family: 'Anton', sans-serif; background: #fff; color: #000; padding: 2px 8px; border-radius: 5px; }
    .mobile-bar button { background: none; border: none; color: #fff; font-size: 26px; cursor: pointer; }
    .stats { grid-template-columns: 1fr 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .main { padding: 18px; }
}
