/* ADMIN PANEL DESIGN SYSTEM — aligned with mrborriello.it */
:root {
    --bg: #121212;
    --surface: #1C1C1C;
    --surface-2: #242424;
    --surface-3: #2E2E2E;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #F3F4F6;
    --text-muted: #A3A3A3;
    --text-dim: #7A7A7A;
    --accent: #E8350A;
    --accent-hover: #FF4317;
    --success: #22C55E;
    --color-accent: var(--accent);
    --color-success: var(--success);
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #38BDF8;
    --radius: 12px;
    --radius-sm: 8px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ACCESS DENIED & VERIFY BOX */
#admin-access-denied {
    text-align: center;
    padding: 5rem 1.5rem;
    display: none;
    max-width: 560px;
    margin: 0 auto;
}

/* SHELL LAYOUT */
.admin-shell {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* SIDEBAR */
.admin-sidebar {
    width: 256px;
    flex-shrink: 0;
    background: #161616;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 50;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid var(--border);
}

.sidebar-brand img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    color: #fff;
    text-transform: uppercase;
}

.brand-sub {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent);
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.nav-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-group-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 0 0.65rem 0.35rem;
}

.nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    position: relative;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.nav-item.active {
    background: rgba(232, 53, 10, 0.12);
    color: #fff;
    border-color: rgba(232, 53, 10, 0.32);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 3px;
    background: var(--accent);
    border-radius: 0 3px 3px 0;
}

.nav-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.85;
}

.nav-item.active svg {
    color: var(--accent);
    opacity: 1;
}

.nav-badge {
    margin-left: auto;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    min-width: 20px;
    text-align: center;
    line-height: 1.2;
}

.sidebar-footer {
    padding: 1rem 1.15rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.sidebar-user-email {
    font-size: 0.76rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-footer-actions {
    display: flex;
    gap: 0.5rem;
}

.sidebar-footer-actions .btn {
    flex: 1;
    text-align: center;
    justify-content: center;
}

/* WORKSPACE & TOPBAR */
.admin-workspace {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    background: rgba(18, 18, 18, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1.1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

#current-section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    margin: 0;
    letter-spacing: -0.01em;
    color: #fff;
}

#current-section-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0.15rem 0 0;
}

.admin-main {
    padding: 1.75rem 2rem 3rem;
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* CARDS */
.admin-card {
    background-color: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.admin-card--accent {
    border-left: 4px solid var(--accent);
}

.admin-card--success {
    border-left: 4px solid var(--success);
}

.admin-card--dashed {
    background: rgba(34, 197, 94, 0.04);
    border: 1px dashed rgba(34, 197, 94, 0.45);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.9rem;
}

.card-header h2 {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text);
}

.card-header-actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
}

.card-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: -0.25rem 0 1.2rem;
    line-height: 1.5;
}

/* COLLAPSIBLE CARDS */
.admin-card.collapsible .card-header {
    cursor: pointer;
    user-select: none;
}

.admin-card-content {
    transition: max-height 0.35s ease, opacity 0.25s ease;
    overflow: hidden;
    max-height: 4000px;
    opacity: 1;
}

.admin-card.collapsed .admin-card-content {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
}

.admin-card.collapsed .card-header {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.toggle-arrow {
    font-size: 0.78rem;
    margin-left: 8px;
    color: var(--accent);
}

/* KPI & GRIDS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--surface);
    padding: 1.35rem 1.4rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.stat-card .label {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
}

.stat-card .value {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.15;
}

.stat-card .stat-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

.overview-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* ALERTS & QUICK ACTIONS (OVERVIEW) */
.alert-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.alert-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.alert-row:hover {
    background: var(--surface-3);
    border-color: var(--border-strong);
}

.alert-count {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.78rem;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    flex-shrink: 0;
}

.alert-count.has-items {
    background: rgba(232, 53, 10, 0.18);
    color: #FF7A59;
    border: 1px solid rgba(232, 53, 10, 0.4);
}

.alert-count.is-warning {
    background: rgba(245, 158, 11, 0.16);
    color: #FCD34D;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* FORMS & TOOLBARS */
.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 190px;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

input, select, textarea {
    background: #121212;
    border: 1px solid #3A3A3A;
    color: var(--text);
    padding: 10px 12px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.92rem;
    transition: border-color 0.15s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-row input[type="checkbox"] {
    width: 17px;
    height: 17px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-row label {
    margin: 0;
    cursor: pointer;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 500;
}

.toolbar {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.toolbar .search-input {
    flex: 1;
    min-width: 220px;
}

.filter-header {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    background: var(--surface);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.preview-box {
    margin-top: 1rem;
    background: #141414;
    border: 1px dashed #3F3F46;
    border-radius: var(--radius-sm);
    padding: 0.95rem 1.1rem;
    font-size: 0.88rem;
    color: var(--text);
}

.preview-box-title {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

/* BUTTONS */
.btn {
    background-color: var(--accent);
    color: #fff;
    border: 1px solid transparent;
    padding: 10px 18px;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn:hover:not(:disabled) {
    background-color: var(--accent-hover);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-small, .btn-sm {
    padding: 6px 12px;
    font-size: 0.73rem;
}

.btn-primary {
    background-color: var(--accent);
    color: #fff;
}

.btn-success {
    background-color: var(--success);
    color: #052E16;
}

.btn-success:hover:not(:disabled) {
    background-color: #34D399;
}

.btn-secondary {
    background-color: var(--surface-3);
    color: var(--text);
    border-color: var(--border-strong);
}

.btn-secondary:hover:not(:disabled) {
    background-color: #3B3B3B;
}

.btn-ghost {
    background-color: transparent;
    color: var(--text-muted);
    border-color: var(--border-strong);
}

.btn-ghost:hover:not(:disabled) {
    background-color: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.btn-danger {
    background-color: #DC2626;
    color: #fff;
}

.btn-danger:hover:not(:disabled) {
    background-color: var(--danger);
}

.btn-danger-outline {
    background-color: transparent;
    color: #FCA5A5;
    border-color: rgba(239, 68, 68, 0.45);
}

.btn-danger-outline:hover:not(:disabled) {
    background-color: rgba(239, 68, 68, 0.16);
    color: #fff;
}

/* PILLS / BADGES */
.pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.pill-accent { background: rgba(232, 53, 10, 0.16); color: #FF7A59; }
.pill-success { background: rgba(34, 197, 94, 0.14); color: #4ADE80; }
.pill-warning { background: rgba(245, 158, 11, 0.16); color: #FCD34D; }
.pill-danger { background: rgba(239, 68, 68, 0.16); color: #FCA5A5; }
.pill-muted { background: rgba(255, 255, 255, 0.08); color: var(--text-muted); }

/* MODULES & LESSONS */
.module-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    margin-bottom: 1.15rem;
    padding: 1.25rem 1.4rem;
}

.module-item h3 {
    margin: 0;
    font-size: 1.02rem;
    color: var(--text);
}

.lessons-list {
    margin-top: 1.1rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    transition: max-height 0.3s ease, opacity 0.25s ease;
    overflow: hidden;
    max-height: 5000px;
    opacity: 1;
}

.module-item.collapsed .lessons-list {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    pointer-events: none;
}

.module-item .toggle-module {
    cursor: pointer;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.lesson-row {
    display: flex;
    align-items: center;
    background: #141414;
    border: 1px solid var(--border);
    padding: 0.7rem 0.9rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    gap: 0.85rem;
    font-size: 0.9rem;
}

.lesson-row .l-title { flex: 1; font-weight: 600; color: var(--text); }
.lesson-row .l-meta { color: var(--text-muted); font-size: 0.8rem; }
.lesson-row .badge { background: var(--accent); color: #fff; padding: 2px 7px; border-radius: 4px; font-size: 0.65rem; font-weight: 800; }

.module-header-actions, .lesson-actions {
    display: flex;
    gap: 0.45rem;
    align-items: center;
}

.reorder-btn {
    background: var(--surface-3);
    border: 1px solid var(--border-strong);
    color: var(--text);
    width: 26px;
    height: 26px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.reorder-btn:hover:not(:disabled) {
    background: var(--accent);
    border-color: var(--accent);
}

.reorder-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.edit-input-group {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    flex-wrap: wrap;
}

.edit-input-group input, .edit-input-group select {
    padding: 7px 10px;
    font-size: 0.85rem;
}

/* CHART */
.chart-container {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.8rem;
    height: 185px;
    padding-top: 28px;
    margin-top: 0.75rem;
}

.bar-group {
    height: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    justify-content: flex-end;
    min-width: 0;
}

.bar {
    width: 100%;
    background: linear-gradient(180deg, #FF552E 0%, var(--accent) 100%);
    border-radius: 5px 5px 0 0;
    min-height: 2px;
    transition: height 0.35s ease;
    position: relative;
}

.bar.bar-empty {
    background: #2D2D2D;
    min-height: 3px;
}

.bar-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
}

.bar-value {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text);
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    opacity: 1;
}

/* TABLES */
.data-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
    font-size: 0.88rem;
}

th {
    text-align: left;
    background: #141414;
    padding: 0.85rem 0.9rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border-strong);
    white-space: nowrap;
}

td {
    padding: 0.85rem 0.9rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.progress-track {
    width: 96px;
    height: 8px;
    background: #2E2E2E;
    border-radius: 999px;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
}

.progress-fill--success {
    background: var(--success);
}

/* COACHING STATUS SELECT */
.status-select {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 8px;
    border-radius: 6px;
    background: #141414;
}

.status-select.status-new { border-color: rgba(232, 53, 10, 0.55); color: #FF8E72; }
.status-select.status-contacted { border-color: rgba(56, 189, 248, 0.5); color: #7DD3FC; }
.status-select.status-call_scheduled { border-color: rgba(34, 197, 94, 0.5); color: #4ADE80; }
.status-select.status-archived { border-color: #444; color: var(--text-muted); }

/* REVIEWS, SUPPORT, FEEDBACK */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.review-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.review-card--public {
    border-top: 3px solid var(--accent);
}

.threads-list, .feedback-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.feedback-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 0.95rem 1.1rem;
}

.thread-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem 1.35rem;
    margin-bottom: 0;
}

.thread-card--unread {
    border-left: 4px solid var(--accent);
}

.thread-message {
    position: relative;
    padding-left: 14px;
    border-left: 2px solid #444;
}

.thread-message--unread {
    border-left-color: var(--accent);
}

.thread-reply {
    margin-top: 8px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #D1FAE5;
}

/* IMAGES MANAGER */
.images-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.image-slot-card {
    background: #141414;
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    display: flex;
    gap: 1.15rem;
    align-items: center;
}

.image-preview-box {
    width: 140px;
    height: 96px;
    background: #222;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.image-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* EMPTY STATE & NOTICE */
.empty-state {
    text-align: center;
    padding: 1.75rem 1rem;
    color: var(--text-muted);
    background: #141414;
    border: 1px dashed #3A3A3A;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.privacy-banner {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #FDE68A;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* CUSTOM MODAL SYSTEM */
.ui-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.ui-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.ui-modal-card {
    background: #1A1A1A;
    border: 1px solid #333;
    border-top: 4px solid var(--accent);
    padding: 2.25rem;
    border-radius: 16px;
    width: 90%;
    max-width: 460px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    text-align: center;
    position: relative;
}

.ui-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.ui-modal-close:hover {
    color: var(--accent);
}

.ui-modal-overlay.active .ui-modal-card {
    transform: translateY(0);
}

.ui-modal-content p {
    font-family: 'Inter', sans-serif;
    color: #E5E7EB;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.ui-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.ui-btn {
    padding: 11px 22px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.82rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.ui-btn-primary {
    background: var(--accent);
    color: #fff;
}

.ui-btn-primary:hover {
    background: var(--accent-hover);
}

.ui-btn-secondary {
    background: #2A2A2A;
    color: #D4D4D8;
    border: 1px solid #444;
}

.ui-btn-secondary:hover {
    background: #333;
    color: #fff;
}

/* MOBILE & TABLET RESPONSIVE */
@media (max-width: 900px) {
    .admin-shell {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .sidebar-brand {
        padding: 0.85rem 1rem;
    }

    .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.45rem;
        padding: 0.7rem 0.9rem;
        overflow: visible;
    }

    .nav-group {
        display: contents;
    }

    .nav-group-label {
        display: none;
    }

    .nav-item {
        width: auto;
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        background: var(--surface);
        border-color: var(--border);
    }

    .nav-item.active::before {
        display: none;
    }

    .sidebar-footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        padding: 0.7rem 1rem;
    }

    .admin-topbar {
        position: static;
        padding: 0.95rem 1rem;
    }

    #current-section-title {
        font-size: 1.15rem;
    }

    .admin-main {
        padding: 1rem 0.95rem 2.5rem;
    }

    .admin-card {
        padding: 1.1rem;
    }

    .overview-grid, .two-col-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.8rem;
    }

    .form-group {
        min-width: 100%;
    }

    input, select, textarea, .btn {
        max-width: 100%;
    }

    .module-item {
        padding: 1rem;
    }

    .module-item .toggle-module {
        flex: 1 1 100%;
    }

    .module-header-actions {
        width: 100%;
        margin-top: 0.6rem;
        flex-wrap: wrap;
    }

    .lesson-row {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .lesson-row .l-title {
        min-width: 150px;
    }

    .image-slot-card {
        flex-direction: column;
        align-items: stretch;
    }

    .image-preview-box {
        width: 100%;
        height: 150px;
    }

    .bar-chart {
        gap: 4px;
    }

    .bar-value {
        font-size: 0.6rem;
        top: -19px;
    }

    .bar-label {
        font-size: 0.62rem;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .ui-modal-card {
        padding: 1.65rem 1.2rem;
    }
}
