/* ─── Admin Dashboard ─────────────────────────────────────── */
.admin-main { padding-bottom: 56px; }
.admin-header { margin-bottom: 14px; }

/* Sidebar nav */
.admin-sidenav { display: flex; flex-direction: column; gap: 4px; padding: 8px 6px; flex: 1; }
.admin-sidenav-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: #4a6080; text-decoration: none; font-size: 13px; font-weight: 500; transition: background .15s, color .15s; }
.admin-sidenav-item:hover { background: #eef4ff; color: #005EB8; }
.admin-sidenav-item.is-active { background: #005EB8; color: #fff; }
.admin-sidenav-icon { font-size: 16px; width: 20px; text-align: center; }

/* KPI */
.admin-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
.admin-kpi-card { background: #fff; border-radius: 12px; padding: 16px; box-shadow: 0 4px 16px rgba(0,0,0,.06); border: 1px solid #edf0f5; position: relative; overflow: hidden; }
.admin-kpi-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; }
.admin-kpi-card.tone-blue::before { background: #005EB8; }
.admin-kpi-card.tone-green::before { background: #107C10; }
.admin-kpi-card.tone-purple::before { background: #5C2D91; }
.admin-kpi-card.tone-orange::before { background: #CA5010; }
.admin-kpi-icon { font-size: 20px; margin-bottom: 6px; }
.admin-kpi-value { font-size: 28px; font-weight: 700; color: #23344d; line-height: 1; }
.admin-kpi-label { margin-top: 4px; color: #607086; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.admin-kpi-sub { margin-top: 4px; color: #8fa0b0; font-size: 11px; }

/* Overview grid */
.admin-overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-info-list { display: flex; flex-direction: column; gap: 0; }
.admin-info-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid #f0f4fa; font-size: 13px; color: #2b3c55; }
.admin-info-row:last-child { border-bottom: none; }

/* Badges */
.admin-badge { padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.badge-green { background: #e6f4ea; color: #107C10; }
.badge-blue { background: #e6f0ff; color: #005EB8; }
.badge-orange { background: #fff0e6; color: #CA5010; }
.badge-gray { background: #f0f0f0; color: #666; }

/* Search */
.admin-search { max-width: 200px; height: 32px; font-size: 13px; }

/* Tables */
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { border-bottom: 1px solid #edf1f7; padding: 10px 12px; text-align: left; color: #2b3c55; }
.admin-table th { font-weight: 700; background: #f7f9fc; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #607086; }
.admin-table tr.is-active td { background: #eef5ff; }
.admin-table tr:hover td { background: #f7faff; }
.admin-table td .admin-actions-cell { display: flex; gap: 6px; flex-wrap: wrap; }

.subscribers-table-wrap { overflow-x: auto; }
.subscribers-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.subscribers-table th, .subscribers-table td { border-bottom: 1px solid #edf1f7; padding: 9px 10px; text-align: left; color: #2b3c55; }
.subscribers-table th { font-weight: 700; background: #f7f9fc; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #607086; }
.subscribers-table tr:hover td { background: #f7faff; }
.subscriber-muted { color: #8fa0b0; font-size: 12px; }

/* Module grid */
.admin-modules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; padding: 8px; }
.admin-module-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px solid #e7ecf4; border-radius: 8px; background: #fff; font-size: 13px; font-weight: 500; color: #2b3c55; transition: border-color .15s, box-shadow .15s; }
.admin-module-item:hover { border-color: #005EB8; box-shadow: 0 0 0 2px rgba(0,94,184,.08); }
.admin-module-item input[type=checkbox] { width: 16px; height: 16px; accent-color: #005EB8; cursor: pointer; }

/* Status badge in table */
.admin-status-badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 700; }
.admin-status-badge.active { background: #e6f4ea; color: #107C10; }
.admin-status-badge.inactive { background: #fce8e6; color: #c00; }

/* Role badge */
.admin-role-badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 700; background: #e6f0ff; color: #005EB8; }
.admin-role-badge.role-admin { background: #f3e6ff; color: #5C2D91; }
.admin-role-badge.role-owner { background: #fff0e6; color: #CA5010; }

/* Status bar */
.admin-statusbar { position: fixed; left: 0; right: 0; bottom: 0; height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 14px; background: rgba(18,35,58,.9); color: #d6e5ff; font-size: 11px; z-index: 100; backdrop-filter: blur(4px); }

/* Tab panels */
.admin-tab-panel { animation: fadeIn .18s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
    .admin-overview-grid { grid-template-columns: 1fr; }
    .admin-search { max-width: 140px; }
}

/* ===== Quick Actions tiles (added 2026-12-02) ===== */
.admin-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    padding: 14px 0 4px;
}
.admin-quick-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 14px;
    border-radius: 10px;
    border: 1px solid var(--apf-border, #d8e0ec);
    background: var(--apf-card-bg, #fff);
    color: var(--apf-text, #1b2330);
    text-decoration: none;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
    overflow: hidden;
}
.admin-quick-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.10);
    border-color: #005EB8;
}
.aqt-icon { font-size: 26px; line-height: 1; margin-bottom: 4px; }
.aqt-title { font-family: Arial, sans-serif; font-size: 14px; font-weight: 700; color: var(--apf-text, #1f2a3a); }
.aqt-desc { font-size: 11.5px; color: var(--apf-muted, #637083); line-height: 1.4; }
.aqt-badge {
    position: absolute; top: 8px; right: 8px;
    background: #d83b3b; color: #fff; font-size: 9.5px; font-weight: 700;
    padding: 2px 7px; border-radius: 999px; letter-spacing: .5px;
}
.admin-quick-tile.tone-blue   { border-left: 4px solid #005EB8; }
.admin-quick-tile.tone-green  { border-left: 4px solid #1f9d55; }
.admin-quick-tile.tone-red    { border-left: 4px solid #d83b3b; }
.admin-quick-tile.tone-purple { border-left: 4px solid #6f4cdb; }
.admin-quick-tile.tone-orange { border-left: 4px solid #e98300; }
.admin-quick-tile.tone-teal   { border-left: 4px solid #0a8d8d; }
.admin-quick-tile.tone-slate  { border-left: 4px solid #5c6778; }

.admin-sidenav-group-label {
    color: #94a3b8;
}

