/* =============================================
   ALL BUSINESS AFRICA - Design System CSS
   Based on Figma UI Designs
   ============================================= */

/* === CSS Variables === */
:root {
    --sidebar-bg: #0F1B4C;
    --sidebar-hover: rgba(255,255,255,0.08);
    --sidebar-active: #2563EB;
    --sidebar-width: 250px;
    --sidebar-collapsed: 70px;
    --header-height: 64px;

    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --primary-light: #EFF6FF;
    --danger: #EF4444;
    --danger-light: #FEF2F2;
    --success: #22C55E;
    --warning: #F59E0B;
    --info: #3B82F6;

    --bg-main: #F8F9FB;
    --bg-white: #FFFFFF;
    --border: #E5E7EB;
    --border-light: #F3F4F6;

    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --text-white: #FFFFFF;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius: 8px;
    --radius-sm: 6px;
    --radius-lg: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body {
    font-family: var(--font-family);
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

/* === LAYOUT === */
.app-wrapper { display: flex; min-height: 100vh; }

/* --- Header --- */
.top-header {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--header-height);
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 100;
    transition: left 0.3s ease;
}
.header-search {
    position: relative;
    flex: 0 1 500px;
}
.header-search input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-main);
    outline: none;
    font-size: 13px;
    color: var(--text-primary);
}
.header-search input:focus { border-color: var(--primary); }
.header-search .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.header-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.2s;
}
.header-icon:hover { background: var(--bg-main); }
.header-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 16px;
    border-left: 1px solid var(--border);
    cursor: pointer;
}
.header-user-info { text-align: right; }
.header-user-info .name { font-weight: 600; font-size: 13px; color: var(--text-primary); }
.header-user-info .role { font-size: 11px; color: var(--text-secondary); }
.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    overflow: hidden;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* --- Sidebar --- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    z-index: 200;
    transition: width 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
}
.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-logo .logo-icon {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.sidebar-logo .logo-text {
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
}
.sidebar-nav { flex: 1; padding: 12px 0; }
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13.5px;
    white-space: nowrap;
    text-decoration: none;
    position: relative;
}
.nav-item:hover {
    background: var(--sidebar-hover);
    color: var(--text-white);
    text-decoration: none;
}
.nav-item.active {
    background: var(--sidebar-active);
    color: var(--text-white);
    border-radius: 8px;
    margin: 0 10px;
    padding: 10px 12px;
}
.nav-item .nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.nav-item .nav-chevron {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.2s;
}
.nav-item.expanded .nav-chevron { transform: rotate(180deg); }
.nav-submenu {
    display: none;
    padding: 4px 0;
}
.nav-submenu.open { display: block; }
.nav-submenu .nav-sub-item {
    display: block;
    padding: 8px 20px 8px 54px;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    transition: color 0.2s;
    text-decoration: none;
}
.nav-submenu .nav-sub-item:hover,
.nav-submenu .nav-sub-item.active {
    color: var(--text-white);
    text-decoration: none;
}
.sidebar-tips {
    margin: 12px;
    padding: 16px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius);
    font-size: 12px;
}
.sidebar-tips .tips-title { font-weight: 600; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.sidebar-tips p { color: rgba(255,255,255,0.6); margin: 4px 0 8px; line-height: 1.4; }
.sidebar-tips a { color: var(--primary-light); font-weight: 500; }

/* --- Main Content --- */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    padding: 28px;
    min-height: calc(100vh - var(--header-height));
    transition: margin-left 0.3s ease;
}

/* === PAGE HEADER === */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}
.page-header h1 { font-size: 26px; font-weight: 700; color: var(--text-primary); }
.page-header .subtitle { color: var(--text-secondary); font-size: 14px; margin-top: 4px; }

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); color: white; }
.btn-danger { background: white; color: var(--danger); border: 1px solid var(--danger); }
.btn-danger:hover { background: var(--danger-light); }
.btn-outline { background: white; color: var(--text-primary); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--bg-main); }
.btn-success { background: var(--success); color: white; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 12px 28px; font-size: 15px; }

/* === CARDS === */
.card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.card-header h3 { font-size: 16px; font-weight: 700; }

/* === STAT CARDS === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}
.stat-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
}
.stat-card .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 12px;
}
.stat-card .stat-icon.blue { background: #EFF6FF; color: var(--primary); }
.stat-card .stat-icon.green { background: #F0FDF4; color: var(--success); }
.stat-card .stat-icon.amber { background: #FFFBEB; color: var(--warning); }
.stat-card .stat-icon.purple { background: #F5F3FF; color: #7C3AED; }
.stat-card .stat-label { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }
.stat-card .stat-value { font-size: 28px; font-weight: 700; }
.stat-card .stat-sub { font-size: 12px; color: var(--text-muted); margin-left: 8px; }
.stat-card .stat-change {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--success);
}

/* === TABLES === */
.table-wrapper {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    flex-wrap: wrap;
    gap: 12px;
}
.table-search {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 280px;
    outline: none;
    font-size: 13px;
}
.table-search:focus { border-color: var(--primary); }
.table-filters {
    display: flex;
    gap: 8px;
    align-items: center;
}
.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn .dot { width: 8px; height: 8px; border-radius: 50%; }
.filter-btn .dot.green { background: var(--success); }
.filter-btn .dot.yellow { background: var(--warning); }

table {
    width: 100%;
    border-collapse: collapse;
}
table thead th {
    text-align: left;
    padding: 12px 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
table tbody td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-light);
    font-size: 13px;
    vertical-align: middle;
}
table tbody tr:hover { background: #FAFBFC; }
table tbody tr:last-child td { border-bottom: none; }

.table-image {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    overflow: hidden;
}

/* === STATUS BADGES === */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}
.badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.badge-published { background: #F0FDF4; color: #16A34A; }
.badge-published::before { background: #16A34A; }
.badge-draft { background: #FFFBEB; color: #D97706; }
.badge-draft::before { background: #D97706; }
.badge-active { color: #16A34A; }
.badge-active::before { background: #16A34A; }
.badge-inactive { color: var(--text-muted); }
.badge-inactive::before { background: var(--text-muted); }

.role-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}
.role-badge.admin { background: #EFF6FF; color: var(--primary); }
.role-badge.editor { background: #F0FDF4; color: #16A34A; }
.role-badge.super_admin { background: #FEF3C7; color: #92400E; }
.role-badge.viewer { background: #F3F4F6; color: #6B7280; }

/* === AUTHOR BADGE === */
.author-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
}

/* === PAGINATION === */
.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-secondary);
}
.pagination {
    display: flex;
    gap: 4px;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* === ACTION ICONS === */
.actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
.action-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
}
.action-btn:hover { background: var(--bg-main); color: var(--text-primary); }
.action-btn.delete:hover { background: var(--danger-light); color: var(--danger); }

/* === FORMS === */
.form-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}
.form-main { display: flex; flex-direction: column; gap: 24px; }
.form-sidebar { display: flex; flex-direction: column; gap: 20px; }

.form-section {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}
.form-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
}
.form-group { margin-bottom: 16px; }
.form-group:last-child { margin-bottom: 0; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { cursor: pointer; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-slug {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.form-slug .slug-prefix {
    padding: 10px 12px;
    background: var(--bg-main);
    color: var(--text-muted);
    font-size: 13px;
    border-right: 1px solid var(--border);
    white-space: nowrap;
}
.form-slug input {
    border: none;
    padding: 10px 14px;
    flex: 1;
    outline: none;
    font-size: 13px;
}

/* Toggle Switch */
.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}
.toggle-row .toggle-label { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.toggle-row .toggle-label .dot { width: 8px; height: 8px; border-radius: 50%; }
.toggle {
    width: 44px;
    height: 24px;
    background: var(--border);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
}
.toggle.active { background: var(--primary); }
.toggle::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle.active::after { transform: translateX(20px); }

/* Tags Input */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}
.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}
.tag-pill .tag-remove {
    cursor: pointer;
    font-size: 14px;
    margin-left: 2px;
}

/* Status sidebar card */
.status-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}
.status-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
}
.status-row .label { color: var(--text-secondary); }
.status-row .value { font-weight: 500; }
.status-row .value.active { color: var(--success); }
.status-row .value.draft { color: var(--warning); }

/* Upload area */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
}
.upload-area:hover { border-color: var(--primary); }
.upload-area .upload-icon { font-size: 32px; color: var(--text-muted); margin-bottom: 8px; }
.upload-area .upload-text { color: var(--primary); font-weight: 500; font-size: 13px; }
.upload-hint { font-size: 11px; color: var(--text-muted); margin-top: 8px; }

/* === BREADCRUMBS === */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span { color: var(--text-muted); }
.breadcrumbs .current { color: var(--text-primary); font-weight: 500; }

/* === ACTION BAR (for forms) === */
.action-bar {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* === MODAL === */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 480px;
    max-width: 90vw;
    position: relative;
    box-shadow: var(--shadow-lg);
}
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
}
.modal h2 { font-size: 20px; margin-bottom: 4px; }
.modal .modal-desc { color: var(--text-secondary); font-size: 13px; margin-bottom: 24px; }
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

/* === MEDIA LIBRARY GRID === */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    padding: 20px;
}
.media-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}
.media-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.media-card.selected { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(37,99,235,0.3); }
.media-card .media-thumb {
    width: 100%;
    height: 130px;
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.media-card .media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-card .media-info { padding: 10px; }
.media-card .media-info .file-name {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.media-card .media-info .file-meta { font-size: 11px; color: var(--text-muted); }

.media-detail-panel {
    position: fixed;
    top: var(--header-height);
    right: 0;
    width: 320px;
    height: calc(100vh - var(--header-height));
    background: white;
    border-left: 1px solid var(--border);
    padding: 24px;
    overflow-y: auto;
    z-index: 50;
}
.media-detail-panel .detail-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
}

/* === TAXONOMY LAYOUT === */
.taxonomy-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

/* === DASHBOARD GRID === */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Progress bars */
.progress-bar-wrap { margin-bottom: 14px; }
.progress-bar-wrap .progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 6px;
}
.progress-bar {
    height: 8px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
}
.progress-bar .progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}
.progress-fill.blue { background: var(--primary); }
.progress-fill.green { background: var(--success); }
.progress-fill.amber { background: var(--warning); }

/* Quick shortcuts */
.shortcuts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.shortcut-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-primary);
    text-decoration: none;
}
.shortcut-btn:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }

/* === SUPPORT PAGE === */
.support-search {
    text-align: center;
    padding: 40px 0 30px;
}
.support-search h1 { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.support-search p { color: var(--text-secondary); margin-bottom: 20px; }
.support-search input {
    width: 100%;
    max-width: 600px;
    padding: 14px 20px 14px 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 14px;
    outline: none;
    background: var(--bg-main);
}
.support-tags { margin-top: 12px; font-size: 13px; color: var(--text-muted); }
.support-tags a { margin: 0 4px; }

.support-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
}
.support-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    transition: all 0.2s;
}
.support-card:hover { box-shadow: var(--shadow-md); }
.support-card .support-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.support-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.support-card p { font-size: 12px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 12px; }
.support-card .article-count { font-size: 12px; color: var(--primary); font-weight: 600; text-transform: uppercase; }

.faq-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 30px 0;
}
.faq-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}
.faq-item h4 { font-size: 14px; font-weight: 600; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.faq-item p { font-size: 13px; color: var(--text-secondary); }

/* === RICH TEXT EDITOR (simplified toolbar) === */
.editor-toolbar {
    display: flex;
    gap: 2px;
    padding: 8px;
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: var(--radius) var(--radius) 0 0;
    background: var(--bg-main);
}
.editor-toolbar button {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-secondary);
}
.editor-toolbar button:hover { background: white; color: var(--text-primary); }
.editor-content {
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    min-height: 250px;
    padding: 16px;
    outline: none;
    font-size: 14px;
    line-height: 1.7;
}

/* === LOGIN PAGE === */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a2c5b 0%, #2c3e80 50%, #4a6fa5 100%);
    position: relative;
}
.login-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 1080"><rect fill="%23000" opacity="0.3" width="1920" height="1080"/></svg>');
    opacity: 0.3;
}
.login-card {
    background: white;
    border-radius: 16px;
    padding: 48px 40px;
    width: 460px;
    max-width: 90vw;
    text-align: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}
.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}
.login-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}
.login-logo .logo-text { font-size: 22px; font-weight: 700; color: var(--text-primary); }
.login-card h2 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.login-card .login-subtitle { color: var(--text-secondary); font-size: 14px; margin-bottom: 28px; }
.login-form { text-align: left; }
.login-form .form-group { margin-bottom: 18px; }
.login-form .form-group label { font-size: 13px; font-weight: 500; margin-bottom: 6px; display: block; }
.login-form .password-header { display: flex; justify-content: space-between; align-items: center; }
.login-form .password-header a { font-size: 13px; color: var(--primary); }
.login-form .password-wrapper { position: relative; }
.login-form .password-wrapper .toggle-pass {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}
.login-form .remember-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 18px 0;
    font-size: 13px;
}
.login-form .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 15px;
}
.login-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 13px;
}
.login-divider::before, .login-divider::after {
    content: '';
    flex: 1;
    border-top: 1px solid var(--border);
}
.login-divider span { padding: 0 16px; }
.social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    background: white;
    transition: background 0.2s;
}
.social-btn:hover { background: var(--bg-main); }
.login-footer-text { font-size: 13px; color: var(--text-secondary); }
.login-footer-text a { font-weight: 500; }

/* === SETTINGS TABS === */
.settings-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.settings-tab {
    padding: 10px 20px;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
.settings-tab:hover { color: var(--text-primary); text-decoration: none; }
.settings-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 500; }

/* === USER MANAGEMENT TABS === */
.user-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 0;
}
.user-tab {
    padding: 10px 20px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
    border-bottom: 2px solid transparent;
}
.user-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 500; }

/* === FOOTER === */
.app-footer {
    padding: 20px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    margin-top: 40px;
}
.app-footer a { color: var(--text-muted); margin-left: 20px; }
.app-footer a:hover { color: var(--primary); }

/* === ALERTS === */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 13px;
}
.alert-success { background: #F0FDF4; color: #16A34A; border: 1px solid #BBF7D0; }
.alert-error { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; }
.alert-info { background: #EFF6FF; color: #2563EB; border: 1px solid #BFDBFE; }

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .form-layout { grid-template-columns: 1fr; }
    .taxonomy-layout { grid-template-columns: 1fr; }
    .support-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .top-header { left: 0; }
    .main-content { margin-left: 0; }
    .stats-grid { grid-template-columns: 1fr; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .faq-section { grid-template-columns: 1fr; }
}
