/* Admin panel — extends style.css tokens */
body.admin-body { background: #F4F1EC; }

.admin-shell { display: flex; min-height: 100vh; }

.admin-sidebar {
    width: 260px; background: var(--ink); color: #C9BCAC; flex-shrink: 0;
    position: fixed; top: 0; bottom: 0; left: 0; overflow-y: auto; z-index: 50;
    transition: transform .3s ease;
}
.admin-sidebar .brand { padding: 26px 24px; color: #fff; font-size: 19px; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-nav { padding: 18px 12px; }
.admin-nav a {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; font-weight: 600;
    font-size: 14.5px; margin-bottom: 4px; color: #C9BCAC; transition: all .2s ease;
}
.admin-nav a i { width: 18px; text-align: center; }
.admin-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-nav a.active { background: var(--primary); color: #fff; }
.admin-nav .nav-section { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #7A6E60; margin: 18px 14px 8px; }

.admin-main { flex: 1; margin-left: 260px; min-width: 0; }
.admin-topbar {
    background: #fff; padding: 16px 30px; display: flex; justify-content: space-between; align-items: center;
    box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 40;
}
.admin-topbar h1 { font-size: 20px; margin: 0; }
.admin-topbar .who { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.admin-toggle { display: none; background: none; border: none; font-size: 20px; }
.admin-content { padding: 30px; }

.admin-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.admin-card { background: #fff; border-radius: var(--radius-sm); padding: 22px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.admin-card .top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.admin-card .ico { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.admin-card .num { font-family: var(--font-head); font-size: 28px; }
.admin-card .lbl { color: var(--ink-soft); font-size: 13px; font-weight: 600; }
@media (max-width: 1100px) { .admin-cards { grid-template-columns: repeat(2, 1fr); } }

.panel { background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); border: 1px solid var(--border); margin-bottom: 24px; }
.panel .panel-head { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.panel .panel-head h3 { margin: 0; font-size: 16.5px; }
.panel .panel-body { padding: 24px; }

table.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data-table th { text-align: left; padding: 12px 16px; background: var(--cream-dark); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
table.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data-table tr:last-child td { border-bottom: none; }
table.data-table tr:hover td { background: #FBF8F4; }
.table-wrap { overflow-x: auto; }

.tag-filters { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.tag-filters a { padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--cream-dark); color: var(--ink-soft); }
.tag-filters a.active { background: var(--ink); color: #fff; }

.thumb-sm { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.icon-btn { width: 34px; height: 34px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); background: #fff; color: var(--ink-soft); }
.icon-btn:hover { background: var(--cream-dark); }
.icon-btn.danger:hover { background: #FDEBEC; color: var(--danger); border-color: #F6C3C6; }

.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: radial-gradient(1200px 600px at 80% -10%, #3a2c1f 0%, var(--ink) 60%); padding: 20px; }
.login-card { background: #fff; border-radius: 22px; padding: 44px; width: 100%; max-width: 400px; box-shadow: var(--shadow-lg); }
.login-card .brand { justify-content: center; margin-bottom: 6px; }
.login-card p.sub { text-align: center; color: var(--ink-soft); margin-bottom: 30px; font-size: 14px; }

@media (max-width: 980px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .admin-toggle { display: block; }
    .admin-cards { grid-template-columns: 1fr; }
}
