/* ============================================================
   DJOFANG & ASSOCIES — Admin Dashboard CSS
   Palette : Gold #d4af37 | Dark #1a1209 | Background #f5f4ef
   ============================================================ */

/* ---- Variables ---- */
:root {
    --gold:         #d4af37;
    --gold-dark:    #8B6914;
    --gold-light:   #f0d96a;
    --sidebar-bg:   #1a1209;
    --sidebar-hover:#2c1e08;
    --sidebar-active: rgba(212, 175, 55, 0.15);
    --text-dark:    #1e1e1e;
    --text-mid:     #555;
    --text-light:   #999;
    --bg-body:      #f5f4ef;
    --bg-card:      #ffffff;
    --border:       #e8e3d5;
    --success:      #2e7d32;
    --success-bg:   #e8f5e9;
    --warning:      #e65100;
    --warning-bg:   #fff3e0;
    --danger:       #c62828;
    --danger-bg:    #ffebee;
    --info:         #01579b;
    --info-bg:      #e3f2fd;
    --radius-sm:    6px;
    --radius-md:    12px;
    --radius-lg:    20px;
    --shadow-sm:    0 2px 8px rgba(0,0,0,0.07);
    --shadow-md:    0 4px 20px rgba(0,0,0,0.10);
    --shadow-lg:    0 8px 40px rgba(0,0,0,0.14);
    --sidebar-width: 260px;
    --header-height: 68px;
    --transition:   0.25s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: var(--bg-body);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    position: fixed;
    top: 0; left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform var(--transition), width var(--transition);
    overflow: hidden;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 16px 16px;
    border-bottom: 1px solid rgba(212,175,55,0.15);
    min-height: 76px;
    position: relative;
}

.brand-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid var(--gold);
    padding: 2px;
    background: rgba(212,175,55,0.1);
    flex-shrink: 0;
}

.brand-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.brand-name {
    font-family: 'Merriweather', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1px;
    white-space: nowrap;
}

.brand-sub {
    font-size: 0.68rem;
    color: rgba(212,175,55,0.55);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.sidebar-close-btn {
    display: none;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 6px;
}

/* Nav Sections */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(212,175,55,0.2) transparent;
}

.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(212,175,55,0.2); border-radius: 2px; }

.nav-section { margin-bottom: 8px; }

.nav-section-label {
    display: block;
    font-size: 0.62rem;
    font-weight: 600;
    color: rgba(212,175,55,0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 10px 20px 6px;
}

.nav-list { padding: 0 8px; }

.nav-item { margin-bottom: 2px; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.65);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition);
    white-space: nowrap;
    overflow: hidden;
}

.nav-link:hover {
    background: var(--sidebar-hover);
    color: var(--gold-light);
}

.nav-item.active .nav-link {
    background: var(--sidebar-active);
    color: var(--gold);
    border-left: 3px solid var(--gold);
    font-weight: 600;
}

.nav-icon {
    width: 18px;
    text-align: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.nav-logout .nav-icon { color: #ef9a9a; }
.nav-logout:hover { background: rgba(220,38,38,0.1) !important; color: #ef5350 !important; }

/* Sidebar Footer */
.sidebar-footer {
    padding: 14px 16px;
    border-top: 1px solid rgba(212,175,55,0.12);
}

.view-site-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #fff;
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    transition: opacity var(--transition);
}

.view-site-btn:hover { opacity: 0.85; }

.sidebar-version {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.25);
    text-align: center;
}

/* ============================================================
   MAIN WRAPPER
   ============================================================ */
.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--transition);
}

/* ============================================================
   TOP HEADER
   ============================================================ */
.top-header {
    position: sticky;
    top: 0;
    height: var(--header-height);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    z-index: 900;
    box-shadow: var(--shadow-sm);
}

.header-left { display: flex; align-items: center; gap: 16px; }

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-mid);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    display: none;
}

.sidebar-toggle:hover { background: var(--bg-body); color: var(--gold-dark); }

.page-title {
    font-family: 'Merriweather', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
}

.header-right { display: flex; align-items: center; gap: 20px; }

.header-time {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name { font-size: 0.85rem; font-weight: 600; color: var(--text-dark); }
.user-role { font-size: 0.7rem; color: var(--text-light); }

.btn-logout {
    width: 34px; height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--danger-bg);
    color: var(--danger);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: all var(--transition);
}

.btn-logout:hover { background: var(--danger); color: #fff; }

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash-message {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 28px 0;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    border-left: 4px solid;
    transition: all 0.4s ease;
    position: relative;
}

.flash-success { background: var(--success-bg); color: var(--success); border-color: var(--success); }
.flash-error   { background: var(--danger-bg);  color: var(--danger);  border-color: var(--danger); }
.flash-warning { background: var(--warning-bg); color: var(--warning); border-color: var(--warning); }
.flash-info    { background: var(--info-bg);    color: var(--info);    border-color: var(--info); }

.flash-icon { font-size: 1.1rem; flex-shrink: 0; }
.flash-close {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    padding: 4px;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.flash-close:hover { opacity: 1; }

/* ============================================================
   PAGE CONTENT
   ============================================================ */
.page-content { padding: 28px; flex: 1; }

/* ============================================================
   STAT CARDS
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 22px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 18px;
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
}

.stat-card.gold::before   { background: var(--gold); }
.stat-card.success::before { background: var(--success); }
.stat-card.warning::before { background: var(--warning); }
.stat-card.danger::before  { background: var(--danger); }
.stat-card.info::before    { background: var(--info); }

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.stat-card.gold .stat-icon   { background: rgba(212,175,55,0.12); color: var(--gold-dark); }
.stat-card.success .stat-icon { background: var(--success-bg); color: var(--success); }
.stat-card.warning .stat-icon { background: var(--warning-bg); color: var(--warning); }
.stat-card.danger .stat-icon  { background: var(--danger-bg);  color: var(--danger); }
.stat-card.info .stat-icon    { background: var(--info-bg);    color: var(--info); }

.stat-content { flex: 1; }
.stat-number { font-size: 1.9rem; font-weight: 700; color: var(--text-dark); line-height: 1; }
.stat-label  { font-size: 0.78rem; color: var(--text-light); margin-top: 5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-delta  { font-size: 0.72rem; font-weight: 600; margin-top: 4px; }
.stat-delta.up   { color: var(--success); }
.stat-delta.down { color: var(--danger); }

/* ============================================================
   CARDS & SECTIONS
   ============================================================ */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 24px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(to right, rgba(212,175,55,0.04), transparent);
}

.card-title {
    font-family: 'Merriweather', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title i { color: var(--gold-dark); }
.card-body { padding: 24px; }

/* 2-column grid */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap { overflow-x: auto; }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.admin-table th {
    background: linear-gradient(to right, rgba(212,175,55,0.08), rgba(212,175,55,0.04));
    color: var(--gold-dark);
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 13px 16px;
    text-align: left;
    white-space: nowrap;
    border-bottom: 2px solid var(--border);
}

.admin-table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-mid);
    vertical-align: middle;
}

.admin-table tbody tr { transition: background var(--transition); }
.admin-table tbody tr:hover { background: rgba(212,175,55,0.03); }
.admin-table tbody tr:last-child td { border-bottom: none; }

/* ============================================================
   BADGES & STATUS
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-success  { background: var(--success-bg); color: var(--success); }
.badge-warning  { background: var(--warning-bg); color: var(--warning); }
.badge-danger   { background: var(--danger-bg);  color: var(--danger); }
.badge-info     { background: var(--info-bg);    color: var(--info); }
.badge-gold     { background: rgba(212,175,55,0.12); color: var(--gold-dark); }
.badge-secondary { background: #f0f0f0; color: #666; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-gold {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #fff;
    box-shadow: 0 2px 12px rgba(139,105,20,0.25);
}
.btn-gold:hover { opacity: 0.88; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(139,105,20,0.35); }

.btn-outline {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold-dark);
}
.btn-outline:hover { background: var(--gold); color: #fff; }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { opacity: 0.88; }

.btn-danger  { background: var(--danger); color: #fff; }
.btn-danger:hover  { opacity: 0.88; }

.btn-warning { background: var(--warning); color: #fff; }
.btn-warning:hover { opacity: 0.88; }

.btn-secondary { background: #e0e0e0; color: #555; }
.btn-secondary:hover { background: #ccc; }

.btn-sm { padding: 6px 12px; font-size: 0.78rem; }
.btn-lg { padding: 12px 24px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-mid);
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text-dark);
    background: var(--bg-card);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    appearance: none;
}

.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}

.form-control[readonly] { background: var(--bg-body); color: var(--text-light); }

textarea.form-control {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

select.form-control { cursor: pointer; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }

.form-hint { font-size: 0.75rem; color: var(--text-light); margin-top: 5px; }

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

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 0 0;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    color: var(--text-mid);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition);
    background: var(--bg-card);
}

.page-link:hover, .page-link.active {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
    font-weight: 700;
}

/* ============================================================
   ACTION BUTTONS GROUP
   ============================================================ */
.actions { display: flex; align-items: center; gap: 6px; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state i { font-size: 3rem; margin-bottom: 16px; opacity: 0.4; }
.empty-state h3 { font-size: 1.1rem; font-weight: 600; color: var(--text-mid); margin-bottom: 8px; }
.empty-state p { font-size: 0.875rem; }

/* ============================================================
   CHART CONTAINER
   ============================================================ */
.chart-container { position: relative; height: 280px; }

/* ============================================================
   TESTIMONIAL REVIEW CARD
   ============================================================ */
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
    border-left: 4px solid var(--border);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.testimonial-card.pending  { border-left-color: var(--warning); }
.testimonial-card.approved { border-left-color: var(--success); }
.testimonial-card.rejected { border-left-color: var(--danger); }

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.author-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.author-name { font-weight: 600; font-size: 0.95rem; color: var(--text-dark); }
.author-profession { font-size: 0.78rem; color: var(--text-light); }

.testimonial-content {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.6;
    margin-bottom: 14px;
    font-style: italic;
}

.testimonial-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-light);
}

.testimonial-actions { display: flex; gap: 8px; }

/* Star rating */
.star-rating { color: var(--gold); font-size: 0.85rem; }

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-bar .form-control {
    width: auto;
    min-width: 150px;
}

.search-box {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 0.88rem;
}

.search-box .form-control { padding-left: 36px; }

/* ============================================================
   ANALYTICS SPECIFIC
   ============================================================ */
.analytics-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.progress-bar-wrap { margin-bottom: 14px; }
.progress-label { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-mid); margin-bottom: 6px; }
.progress-bar { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(to right, var(--gold-dark), var(--gold)); border-radius: 4px; }

/* ============================================================
   SIDEBAR OVERLAY (mobile)
   ============================================================ */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    backdrop-filter: blur(2px);
}

/* ============================================================
   MODAL CONFIRM
   ============================================================ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.open { display: flex; }

.modal-box {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 420px;
    width: calc(100% - 32px);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.modal-icon { font-size: 2.5rem; margin-bottom: 16px; }
.modal-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.modal-text  { font-size: 0.9rem; color: var(--text-light); margin-bottom: 24px; }
.modal-actions { display: flex; gap: 12px; justify-content: center; }

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--sidebar-bg) 0%, #2c1e08 50%, #1a1209 100%);
    padding: 20px;
}

.login-card {
    background: rgba(255,255,255,0.97);
    border-radius: var(--radius-lg);
    padding: 44px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.login-logo {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo img { width: 70px; height: 70px; object-fit: contain; }

.login-title {
    font-family: 'Merriweather', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 4px;
}

.login-subtitle {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 28px;
}

.login-divider {
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, var(--gold-dark), var(--gold));
    border-radius: 2px;
    margin: 0 auto 28px;
}

.input-icon-wrap {
    position: relative;
}

.input-icon-wrap i.icon-left {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 0.9rem;
}

.input-icon-wrap .form-control { padding-left: 40px; }

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    padding: 4px;
    font-size: 0.9rem;
}

.login-error {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(198,40,40,0.2);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 0.85rem;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.75rem;
    color: var(--text-light);
}

/* About Rich Content Preview */
.content-preview {
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    min-height: 100px;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-mid);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-close-btn { display: block; }
    .sidebar-overlay.open { display: block; }
    .sidebar-toggle { display: flex; }
    .main-wrapper { margin-left: 0; }

    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .analytics-row { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .page-content { padding: 16px; }
    .top-header { padding: 0 16px; }
    .stats-grid { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .user-info { display: none; }
    .header-time { display: none; }
    .card-body { padding: 16px; }
    .login-card { padding: 28px 20px; }
}
