/* ========================================
   CREDIBLE — Design System (inspiré BIONICONNECT)
   Navbar horizontale, Bootstrap 5, Inter font
   ======================================== */

:root {
    --navbar-height: 60px;
    --topbar-height: 32px;
    --bg-body: #f0f2f5;
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --primary-light: #818cf8;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(102,126,234,0.08) 0%, rgba(118,75,162,0.05) 100%);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --surface-white: #ffffff;
    --surface-50: #f8fafc;
    --surface-100: #f1f5f9;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-body);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* ========== NAVBAR ========== */
.main-navbar {
    position: fixed;
    top: var(--topbar-height); left: 0; right: 0;
    height: var(--navbar-height);
    background: rgba(255,255,255,0.92);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226,232,240,0.8);
    z-index: 1050;
    transition: box-shadow 0.3s ease;
}
.main-navbar.scrolled { box-shadow: var(--shadow-md); }

.navbar-inner {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 1.25rem;
    gap: 0.5rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-primary);
    flex-shrink: 0;
    margin-right: 1rem;
}
.brand-logo-img {
    height: 44px;
    width: auto;
    border-radius: 8px;
    display: block;
}
.brand-icon {
    width: 36px; height: 36px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: #fff; flex-shrink: 0;
}
.brand-text {
    font-size: 1rem; font-weight: 700; letter-spacing: 1px;
    color: var(--text-primary);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
}

.nav-direct-link {
    display: flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border-radius: 0.5rem;
    font-size: 0.82rem; font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.nav-direct-link:hover { color: var(--primary); background: rgba(102,126,234,0.06); }
.nav-direct-link.active { color: var(--primary); background: rgba(102,126,234,0.1); font-weight: 600; }
.nav-direct-link > i { font-size: 1rem; }

.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
    display: flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border: none; background: transparent;
    color: var(--text-secondary);
    font-size: 0.82rem; font-weight: 500;
    font-family: inherit; cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease; white-space: nowrap;
}
.nav-dropdown-toggle:hover { color: var(--primary); background: rgba(102,126,234,0.06); }
.nav-dropdown-toggle.active { color: var(--primary); background: rgba(102,126,234,0.1); font-weight: 600; }
.nav-dropdown-toggle .dropdown-arrow { font-size: 0.6rem; transition: transform 0.2s ease; opacity: 0.5; }
.nav-dropdown.open .nav-dropdown-toggle .dropdown-arrow { transform: rotate(180deg); }
.nav-dropdown-toggle > i:first-child { font-size: 1rem; }

.nav-dropdown-menu {
    position: absolute; top: calc(100% + 4px); left: 0;
    min-width: 200px;
    background: var(--surface-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.4rem;
    opacity: 0; visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1100;
}
.nav-dropdown.open .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.nav-link-item {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.55rem 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.82rem; font-weight: 450;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}
.nav-link-item:hover { color: var(--primary); background: rgba(102,126,234,0.06); }
.nav-link-item.active { color: var(--primary); background: rgba(102,126,234,0.1); font-weight: 600; }
.nav-link-item i { font-size: 1rem; width: 20px; text-align: center; opacity: 0.7; }
.nav-link-item.active i, .nav-link-item:hover i { opacity: 1; }

.navbar-user {
    display: flex; align-items: center; gap: 0.5rem;
    margin-left: auto; flex-shrink: 0;
}
.user-badge {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    background: var(--surface-50);
    border-radius: 50px;
    border: 1px solid var(--border-color);
}
.user-badge > i { font-size: 1.3rem; color: var(--primary); }
.user-details { display: flex; flex-direction: column; line-height: 1.2; }
.user-name { font-size: 0.78rem; font-weight: 600; color: var(--text-primary); }
.user-role-tag { font-size: 0.65rem; color: var(--primary); font-weight: 500; }

.navbar-icon-btn {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 1rem;
}
.navbar-icon-btn:hover { color: var(--primary); background: rgba(102,126,234,0.08); }
.navbar-icon-btn.logout-btn:hover { color: #ef4444; background: rgba(239,68,68,0.08); }

.mobile-toggle {
    display: none; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border: none; background: transparent;
    color: var(--text-primary); font-size: 1.5rem;
    cursor: pointer; border-radius: var(--radius-sm);
    margin-left: auto; transition: background 0.2s;
}
.mobile-toggle:hover { background: var(--surface-100); }

.mobile-menu {
    display: none;
    position: absolute; top: var(--navbar-height); left: 0; right: 0;
    background: var(--surface-white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--navbar-height));
    overflow-y: auto; padding: 0.5rem;
}
.mobile-menu.open { display: block; }

.mobile-section { margin-bottom: 0.25rem; }
.mobile-section-toggle {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 0.7rem 1rem;
    border: none; background: transparent;
    color: var(--text-primary); font-size: 0.85rem; font-weight: 600;
    font-family: inherit; cursor: pointer;
    border-radius: var(--radius-sm); transition: background 0.2s;
}
.mobile-section-toggle:hover { background: var(--surface-100); }
.mobile-section-items { display: none; padding: 0.25rem 0.5rem; }
.mobile-section-items.open { display: block; }
.mobile-section-items a {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary); text-decoration: none;
    font-size: 0.82rem; border-radius: var(--radius-sm);
    transition: all 0.15s;
}
.mobile-section-items a:hover, .mobile-section-items a.active {
    color: var(--primary); background: rgba(102,126,234,0.08);
}
.mobile-direct-link {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.65rem 1rem;
    color: var(--text-secondary); text-decoration: none;
    font-size: 0.85rem; font-weight: 500;
    border-radius: 0.5rem; transition: all 0.2s ease;
}
.mobile-direct-link:hover { background: rgba(102,126,234,0.06); color: var(--primary); }
.mobile-direct-link.active { color: var(--primary); font-weight: 600; background: rgba(102,126,234,0.08); }

.mobile-user-actions {
    padding: 0.75rem 0.5rem;
    border-top: 1px solid var(--border-color);
    display: flex; gap: 0.5rem;
}
.mobile-user-actions a {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.4rem;
    padding: 0.6rem; border-radius: var(--radius-sm);
    text-decoration: none; font-size: 0.82rem; font-weight: 500;
    color: var(--text-secondary); background: var(--surface-100);
    transition: all 0.2s;
}
.mobile-user-actions a:hover { background: rgba(102,126,234,0.1); color: var(--primary); }
.mobile-user-actions a.logout { color: #ef4444; }
.mobile-user-actions a.logout:hover { background: rgba(239,68,68,0.08); }

/* ========== MAIN CONTENT ========== */
.main-content { padding-top: calc(var(--navbar-height) + var(--topbar-height)); min-height: 100vh; display: flex; flex-direction: column; }

.page-header {
    background: var(--surface-white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
.page-header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.75rem 1.5rem;
    max-width: 1600px; margin: 0 auto;
}
.page-title { font-size: 1.05rem; font-weight: 650; color: var(--text-primary); margin: 0; }
.page-date { font-size: 0.78rem; color: var(--text-muted); }

.content-wrapper { padding: 1.5rem; max-width: 1600px; margin: 0 auto; width: 100%; flex: 1; }

/* ========== CARDS ========== */
.card {
    background: var(--surface-white) !important;
    border: 1px solid rgba(226,232,240,0.6) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-sm) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md) !important; }
.card-body { padding: 1.25rem !important; }
.card-header {
    background: var(--surface-white) !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 1rem 1.25rem !important;
    border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
}
.card-header h5, .card-header h6 { margin: 0; font-weight: 600; color: var(--text-primary); font-size: 0.9rem; }

.stat-card { display: flex; align-items: center; gap: 1rem; }
.stat-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; flex-shrink: 0;
}
.stat-icon.primary { background: rgba(102,126,234,0.12); color: var(--primary); }
.stat-icon.success { background: rgba(16,185,129,0.12); color: var(--success); }
.stat-icon.warning { background: rgba(245,158,11,0.12); color: var(--warning); }
.stat-icon.danger  { background: rgba(239,68,68,0.12);  color: var(--danger); }
.stat-icon.purple  { background: rgba(139,92,246,0.12); color: #8b5cf6; }
.stat-icon.teal    { background: rgba(20,184,166,0.12); color: #14b8a6; }

.stat-value { font-size: 1.75rem; font-weight: 700; color: var(--text-primary); line-height: 1; }
.stat-label { font-size: 0.72rem; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 0.2rem; }

/* ========== BUTTONS ========== */
.btn { border-radius: var(--radius-sm) !important; font-weight: 500 !important; font-size: 0.85rem !important; transition: all 0.2s ease !important; font-family: inherit !important; }
.btn-primary { background: var(--primary) !important; border-color: var(--primary) !important; color: #fff !important; }
.btn-primary:hover { background: var(--primary-dark) !important; border-color: var(--primary-dark) !important; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(102,126,234,0.3) !important; }
.btn-primary:focus { box-shadow: 0 0 0 3px rgba(102,126,234,0.2) !important; }
.btn-outline-primary { color: var(--primary) !important; border-color: var(--primary) !important; }
.btn-outline-primary:hover { background: var(--primary) !important; color: #fff !important; }
.btn-gradient { background: var(--gradient) !important; border: none !important; color: #fff !important; }
.btn-gradient:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 15px rgba(102,126,234,0.4) !important; color: #fff !important; }
.btn-sm { font-size: 0.78rem !important; padding: 0.25rem 0.6rem !important; }

/* ========== BADGES ========== */
.badge { border-radius: 50px !important; font-size: 0.72rem !important; font-weight: 500 !important; padding: 0.3em 0.7em !important; }
.badge-fiable    { background: rgba(16,185,129,0.12); color: #065f46; border: 1px solid rgba(16,185,129,0.2); }
.badge-douteux   { background: rgba(245,158,11,0.12); color: #92400e; border: 1px solid rgba(245,158,11,0.2); }
.badge-fake      { background: rgba(239,68,68,0.12);  color: #991b1b; border: 1px solid rgba(239,68,68,0.2); }
.badge-en-cours  { background: rgba(102,126,234,0.12);color: #3730a3; border: 1px solid rgba(102,126,234,0.2); }
.badge-premium   { background: rgba(139,92,246,0.12); color: #5b21b6; border: 1px solid rgba(139,92,246,0.2); }

/* ========== TABLES ========== */
.table { font-size: 0.83rem; color: var(--text-primary); }
.table thead th { background: var(--surface-100) !important; color: var(--text-secondary); font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid var(--border-color) !important; padding: 0.6rem 0.75rem; }
.table tbody td { padding: 0.55rem 0.75rem; vertical-align: middle; }
.table tbody tr:hover { background: var(--surface-50); }

/* ========== FORMS ========== */
.form-control, .form-select { border-radius: var(--radius-sm) !important; border-color: var(--border-color) !important; font-size: 0.85rem !important; color: var(--text-primary) !important; font-family: inherit !important; }
.form-control:focus, .form-select:focus { border-color: var(--primary) !important; box-shadow: 0 0 0 3px rgba(102,126,234,0.12) !important; }
.form-label { font-size: 0.82rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 0.35rem; }
.input-group-text { background: var(--surface-100) !important; border-color: var(--border-color) !important; color: var(--text-muted) !important; border-radius: var(--radius-sm) !important; font-size: 0.85rem !important; }

/* ========== PROGRESS BAR ========== */
.progress { height: 6px !important; border-radius: 3px !important; background: var(--surface-100) !important; }
.progress-bar { border-radius: 3px !important; }
.progress-bar-primary { background: var(--primary) !important; }

/* ========== FLASH ALERTS ========== */
.alert { border-radius: var(--radius-sm) !important; font-size: 0.85rem !important; }
.alert-success { background: rgba(16,185,129,0.1) !important; color: #065f46 !important; border-color: rgba(16,185,129,0.3) !important; }
.alert-danger  { background: rgba(239,68,68,0.1)  !important; color: #991b1b !important; border-color: rgba(239,68,68,0.3)  !important; }
.alert-warning { background: rgba(245,158,11,0.1) !important; color: #92400e !important; border-color: rgba(245,158,11,0.3) !important; }
.alert-info    { background: rgba(102,126,234,0.1)!important; color: #3730a3 !important; border-color: rgba(102,126,234,0.3)!important; }

/* ========== SCORE VISUALS ========== */
.score-bar-wrap { background: var(--surface-100); border-radius: 4px; height: 8px; overflow: hidden; }
.score-bar { height: 100%; border-radius: 4px; transition: width 1s ease; }
.score-high   { background: linear-gradient(90deg, #10b981, #059669); }
.score-medium { background: linear-gradient(90deg, #f59e0b, #d97706); }
.score-low    { background: linear-gradient(90deg, #ef4444, #dc2626); }

.score-circle {
    width: 52px; height: 52px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem; font-weight: 700; flex-shrink: 0;
}
.score-circle.high   { background: rgba(16,185,129,0.12); color: #059669; border: 2px solid rgba(16,185,129,0.25); }
.score-circle.medium { background: rgba(245,158,11,0.12); color: #d97706; border: 2px solid rgba(245,158,11,0.25); }
.score-circle.low    { background: rgba(239,68,68,0.12);  color: #dc2626; border: 2px solid rgba(239,68,68,0.25); }

/* ========== NEWS TOPBAR ========== */
.news-topbar {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--topbar-height); z-index: 1100;
    background: #1e293b;
    display: flex; align-items: center;
}
.news-topbar-inner {
    width: 100%; max-width: 1600px; margin: 0 auto;
    padding: 0 1.25rem;
    display: flex; align-items: center; justify-content: space-between;
}
.topbar-link {
    color: #94a3b8; font-size: 0.71rem; text-decoration: none; font-weight: 500;
    transition: color 0.2s; white-space: nowrap;
}
.topbar-link:hover { color: #e2e8f0; }
.topbar-sep { width: 1px; height: 12px; background: #334155; flex-shrink: 0; }

/* ========== NEWS HERO SECTION ========== */
.hero-news-section {
    background: var(--surface-white);
    border-bottom: 2px solid var(--border-color);
    margin: -1.5rem -1.5rem 1.5rem;
}
.hero-news-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    grid-template-rows: minmax(400px, auto);
}
.hero-main {
    position: relative; overflow: hidden;
    text-decoration: none !important; display: block;
    min-height: 400px;
    border-right: 1px solid var(--border-color);
}
.hero-main-image { position: absolute; inset: 0; }
.hero-main-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.hero-main:hover .hero-main-image img { transform: scale(1.04); }
.hero-main-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    display: flex; align-items: center; justify-content: center;
    color: #475569; font-size: 4rem;
}
.hero-main-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.45) 55%, transparent 100%);
    padding: 2.5rem 1.75rem 1.5rem; color: #fff;
}
.hero-main-meta { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; }
.badge-category {
    background: var(--primary); color: #fff;
    font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
    border-radius: 4px; padding: 0.25em 0.65em;
}
.badge-score {
    background: rgba(255,255,255,0.9); color: var(--text-primary);
    font-size: 0.7rem; font-weight: 700; border-radius: 20px; padding: 0.2em 0.7em;
}
.hero-main-title {
    font-size: clamp(1.1rem, 2.2vw, 1.55rem); font-weight: 800;
    color: #fff; line-height: 1.25; margin: 0 0 0.5rem;
}
.hero-main-source { font-size: 0.76rem; color: rgba(255,255,255,0.65); margin: 0; }
.hero-ribbon {
    position: absolute; top: 1rem; left: 1rem;
    font-size: 0.68rem; font-weight: 600;
    padding: 0.3em 0.8em; border-radius: 20px;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.hero-ribbon-fiable { background: rgba(16,185,129,0.88); color: #fff; }
.hero-ribbon-fake   { background: rgba(239,68,68,0.88);  color: #fff; }
.hero-ribbon-douteux{ background: rgba(245,158,11,0.88); color: #fff; }

/* Side column */
.hero-side { display: flex; flex-direction: column; background: var(--surface-white); }
.hero-side-card {
    display: flex; flex: 1; min-height: 0;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none !important; overflow: hidden;
    transition: background 0.15s;
}
.hero-side-card:hover { background: var(--surface-50); }
.hero-side-image { width: 100px; flex-shrink: 0; overflow: hidden; }
.hero-side-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.hero-side-card:hover .hero-side-image img { transform: scale(1.06); }
.hero-side-placeholder {
    width: 100%; height: 100%; min-height: 80px;
    background: var(--surface-100);
    display: flex; align-items: center; justify-content: center;
    color: var(--border-color); font-size: 1.4rem;
}
.hero-side-body { flex: 1; padding: 0.8rem 1rem; display: flex; flex-direction: column; justify-content: center; }
.hero-cat { font-size: 0.63rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px; }
.hero-side-title {
    font-size: 0.83rem; font-weight: 600; color: var(--text-primary);
    line-height: 1.35; margin: 0.25rem 0 0.35rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-side-meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.7rem; color: var(--text-muted); }

/* Search box in side column */
.hero-search-box {
    padding: 0.85rem; border-top: 1px solid var(--border-color);
    background: var(--surface-50);
}
.hero-search-box .form-control { border-radius: 20px !important; font-size: 0.8rem !important; }
.hero-search-box .btn { border-radius: 20px !important; }

/* Stats ticker below hero grid */
.hero-stats-bar {
    background: #1e293b; padding: 0.55rem 1.5rem;
    display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
}
.hero-stat { display: flex; align-items: center; gap: 0.5rem; }
.hero-stat-val { font-size: 1rem; font-weight: 700; color: #fff; }
.hero-stat-label { font-size: 0.68rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; }

/* ========== HERO (legacy fallback) ========== */
.hero-section {
    background: var(--gradient); padding: 5rem 1.5rem;
    text-align: center; color: #fff;
}
.hero-section h1 { font-size: 2.5rem; font-weight: 800; }
.hero-section p  { font-size: 1.05rem; opacity: 0.9; }
.hero-search .form-control { border-radius: var(--radius-lg) !important; border: none !important; font-size: 1rem !important; padding: 0.85rem 1.5rem !important; }
.hero-search .btn { border-radius: var(--radius-lg) !important; padding: 0.85rem 1.75rem !important; }

/* ========== ADMIN SIDEBAR ========== */
.admin-body { display: flex; min-height: calc(100vh - var(--navbar-height)); }
.admin-sidebar {
    width: 240px; flex-shrink: 0;
    background: var(--surface-white);
    border-right: 1px solid var(--border-color);
    padding: 1rem 0.75rem;
}
.sidebar-title { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); padding: 0.5rem 0.75rem; margin-bottom: 0.25rem; }
.admin-sidebar a {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.55rem 0.75rem;
    color: var(--text-secondary); text-decoration: none;
    font-size: 0.83rem; border-radius: var(--radius-sm);
    transition: all 0.15s; margin-bottom: 0.1rem;
}
.admin-sidebar a:hover { color: var(--primary); background: rgba(102,126,234,0.06); }
.admin-sidebar a.active { color: var(--primary); background: rgba(102,126,234,0.1); font-weight: 600; }
.admin-sidebar a i { font-size: 1rem; width: 20px; text-align: center; }
.admin-main { flex: 1; overflow: hidden; }

/* ========== PAGINATION ========== */
.page-link { color: var(--primary) !important; border-color: var(--border-color) !important; border-radius: var(--radius-sm) !important; font-size: 0.82rem !important; }
.page-item.active .page-link { background: var(--primary) !important; border-color: var(--primary) !important; color: #fff !important; }

/* ========== MODAL ========== */
.modal-content { border-radius: var(--radius-lg) !important; border: none !important; box-shadow: var(--shadow-xl) !important; }
.modal-header { border-bottom: 1px solid var(--border-color) !important; padding: 1.25rem 1.5rem !important; }
.modal-body { padding: 1.5rem !important; }
.modal-footer { border-top: 1px solid var(--border-color) !important; padding: 1rem 1.5rem !important; }

/* ========== FOOTER ========== */
.main-footer {
    background: var(--surface-white);
    border-top: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
}
.main-footer p { margin: 0; font-size: 0.8rem; color: var(--text-muted); }
.main-footer a { color: var(--text-secondary); text-decoration: none; font-size: 0.8rem; }
.main-footer a:hover { color: var(--primary); }

/* ========== AUTH ========== */
.auth-wrapper {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: var(--gradient-subtle); padding: 2rem 1rem;
}
.auth-card {
    width: 100%; max-width: 420px;
    background: var(--surface-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl); padding: 2.5rem;
}
.auth-logo {
    width: 52px; height: 52px;
    background: var(--gradient);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #fff; margin: 0 auto 1rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
    .navbar-menu { display: none; }
    .navbar-user .user-badge,
    .navbar-user .navbar-icon-btn { display: none; }
    .navbar-user .btn { font-size: 0.72rem !important; padding: 0.2rem 0.5rem !important; }
    .mobile-toggle { display: flex; }
    .content-wrapper { padding: 1rem; }
    .stat-value { font-size: 1.4rem; }
    .admin-sidebar { display: none; }
    .hero-section h1 { font-size: 1.75rem; }
    .hero-news-section { margin: 0 -1rem 1.5rem; }
    .hero-news-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .hero-main { min-height: 260px; border-right: none; border-bottom: 1px solid var(--border-color); }
    .hero-side-card { max-height: 110px; flex: none; }
}
@media (max-width: 767px) {
    .news-topbar { display: none; }
    .main-navbar { top: 0 !important; }
    .main-content { padding-top: var(--navbar-height) !important; }
    .hero-news-section { margin: 0 -1rem 1.5rem; }
}

/* ========== UTILITIES ========== */
.text-primary-c { color: var(--primary) !important; }
.bg-gradient-c  { background: var(--gradient) !important; }
.line-clamp-1 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.line-clamp-2 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.line-clamp-3 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--surface-100); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Article image placeholder */
.article-img-placeholder {
    height: 160px;
    background: linear-gradient(135deg, var(--surface-200) 0%, var(--surface-100) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border-color);
    font-size: 2.5rem;
}
