/* ==========================================================================
   BongoEye Admin Homepage Stylesheet
   Modern, Sleek, Telegram-Inspired Dark Theme with Progressive Loading & Cache
   ========================================================================== */
:root {
    --bg-dark: #0e1621;
    --bg-surface: #17212b;
    --bg-elevated: #242f3d;
    --bg-hover: #1f2b38;
    --bg-input: #121c27;
    --color-primary: #2b5278;
    --color-primary-hover: #356291;
    --color-accent: #2aacc8;
    --color-accent-hover: #32c1e0;
    --color-accent-soft: rgba(42, 172, 200, 0.12);
    --color-danger: #e53935;
    --color-warning: #ffa726;
    --color-success: #4caf50;
    --color-text-main: #ffffff;
    --color-text-muted: #7f91a4;
    --color-border: #1a2533;
    --color-card-border: #223041;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    min-height: 100%;
    background-color: var(--bg-dark);
    color: var(--color-text-main);
    overflow-x: hidden;
}

.home-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-surface);
    position: relative;
}

/* ==========================================================================
   Homepage Top Navigation Bar
   ========================================================================== */
.home-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: linear-gradient(180deg, #1d2a37 0%, var(--bg-surface) 100%);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
}

.home-nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo-badge {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #0088cc 0%, #2aacc8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    font-size: 18px;
    box-shadow: 0 3px 12px rgba(42, 172, 200, 0.4);
    flex-shrink: 0;
}

.brand-text-block {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-live-pill {
    font-size: 10px;
    background: rgba(76, 175, 80, 0.15);
    color: #66bb6a;
    border: 1px solid rgba(76, 175, 80, 0.3);
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.brand-subtitle {
    font-size: 11px;
    color: var(--color-text-muted);
}

.home-nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    text-decoration: none;
}

.nav-icon-btn:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav-icon-btn:active {
    transform: scale(0.95);
}

.nav-plus-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0088cc 0%, #2aacc8 100%);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(42, 172, 200, 0.35);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-plus-btn:hover {
    transform: scale(1.08) rotate(90deg);
    box-shadow: 0 6px 20px rgba(42, 172, 200, 0.5);
}

.nav-plus-btn:active {
    transform: scale(0.95);
}

.badge-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 9px;
    height: 9px;
    background-color: #ef5350;
    border-radius: 50%;
    border: 2px solid var(--bg-surface);
    animation: pulseRed 2s infinite;
}

@keyframes pulseRed {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ==========================================================================
   Header Search Panel
   ========================================================================== */
.search-expand-bar {
    background: var(--bg-dark);
    padding: 12px 18px;
    border-bottom: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.search-expand-bar.hidden {
    display: none;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper i.search-icon {
    position: absolute;
    left: 14px;
    color: var(--color-text-muted);
    font-size: 15px;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 42px;
    background: var(--bg-input);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.search-input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(42, 172, 200, 0.2);
}

.search-clear-btn {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
}

.search-clear-btn:hover {
    color: #fff;
}

/* ==========================================================================
   Dashboard Metrics Overview Bar
   ========================================================================== */
.metrics-section {
    padding: 16px 18px 8px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 680px) {
    .metrics-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.metric-card {
    background: var(--bg-elevated);
    border: 1px solid var(--color-card-border);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.2s, border-color 0.2s;
}

.metric-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.metric-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.metric-icon-box.blue {
    background: rgba(33, 150, 243, 0.15);
    color: #42a5f5;
}

.metric-icon-box.cyan {
    background: rgba(42, 172, 200, 0.15);
    color: #2aacc8;
}

.metric-icon-box.green {
    background: rgba(76, 175, 80, 0.15);
    color: #66bb6a;
}

.metric-icon-box.purple {
    background: rgba(171, 71, 188, 0.15);
    color: #ba68c8;
}

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

.metric-val {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.metric-title {
    font-size: 11px;
    color: var(--color-text-muted);
    margin-top: 2px;
}

/* ==========================================================================
   Filter & Category Toolbar + Privacy Tabs + Cache Status
   ========================================================================== */
.filter-toolbar {
    padding: 10px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.privacy-tabs-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.privacy-tabs-row::-webkit-scrollbar {
    display: none;
}

.privacy-tab-btn {
    padding: 6px 14px;
    background: var(--bg-dark);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.privacy-tab-btn:hover {
    color: #fff;
    background: var(--bg-elevated);
}

.privacy-tab-btn.active {
    background: var(--color-primary);
    border-color: var(--color-accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(42, 172, 200, 0.25);
}

.category-tabs-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.category-tabs-scroll::-webkit-scrollbar {
    display: none;
}

.cat-tab-btn {
    padding: 6px 13px;
    background: var(--bg-dark);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
}

.cat-tab-btn:hover {
    color: #fff;
    background: var(--bg-elevated);
}

.cat-tab-btn.active {
    background: rgba(42, 172, 200, 0.18);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.filter-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--color-text-muted);
    padding: 2px 4px;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-meta-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cache-indicator-pill {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(42, 172, 200, 0.12);
    color: var(--color-accent);
    border: 1px solid rgba(42, 172, 200, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.cache-indicator-pill.cached {
    background: rgba(76, 175, 80, 0.12);
    color: #66bb6a;
    border-color: rgba(76, 175, 80, 0.3);
}

.btn-refresh-feed {
    background: var(--bg-elevated);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s;
}

.btn-refresh-feed:hover {
    color: #fff;
    border-color: var(--color-accent);
}

.sort-select {
    background: var(--bg-elevated);
    border: 1px solid var(--color-border);
    color: #fff;
    font-size: 12px;
    border-radius: 6px;
    padding: 4px 10px;
    outline: none;
    cursor: pointer;
}

/* ==========================================================================
   News List & Interactive Cards
   ========================================================================== */
.news-list-container {
    padding: 8px 18px 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.news-item-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--bg-elevated);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.news-card {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--color-card-border);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    gap: 14px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    user-select: none;
    z-index: 2;
    cursor: pointer;
}

.news-card:hover {
    background-color: var(--bg-hover);
    border-color: #2f4358;
}

/* Thumbnail Box with Lazy Loading & Skeleton */
.news-thumb-box {
    width: 96px;
    height: 96px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #111a24;
    position: relative;
    border: 1px solid var(--color-border);
}

.news-thumb-skeleton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #182430 0%, #223243 50%, #182430 100%);
    background-size: 200% 100%;
    animation: shimmer 1.6s infinite;
    z-index: 1;
    transition: opacity 0.25s ease;
}

.news-thumb-skeleton.hidden {
    opacity: 0;
    pointer-events: none;
}

.news-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s;
}

.news-thumb-img.loaded {
    opacity: 1;
}

.news-category-badge {
    position: absolute;
    bottom: 4px;
    left: 4px;
    background: rgba(14, 22, 33, 0.88);
    color: var(--color-accent);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 3;
    backdrop-filter: blur(2px);
}

.news-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.privacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.privacy-badge.public {
    background: rgba(76, 175, 80, 0.16);
    color: #66bb6a;
    border: 1px solid rgba(76, 175, 80, 0.35);
}

.privacy-badge.private {
    background: rgba(255, 167, 38, 0.16);
    color: #ffa726;
    border: 1px solid rgba(255, 167, 38, 0.35);
}

.privacy-badge.draft {
    background: rgba(127, 145, 164, 0.16);
    color: #b0bec5;
    border: 1px solid rgba(127, 145, 164, 0.35);
}

.author-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #b0bec5;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.author-pill .author-avatar-tiny {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
}

.author-pill .author-avatar-tiny img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.news-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-summary {
    font-size: 12px;
    color: var(--color-text-muted);
    line-height: 1.45;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

.news-stats-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.stat-chip.views {
    background: rgba(42, 172, 200, 0.12);
    color: #2aacc8;
    border: 1px solid rgba(42, 172, 200, 0.25);
}

.stat-chip.shares {
    background: rgba(142, 68, 173, 0.12);
    color: #bb86fc;
    border: 1px solid rgba(142, 68, 173, 0.25);
}

.stat-chip.date {
    color: var(--color-text-muted);
    font-size: 11px;
}

.news-actions-cluster {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-detail-news {
    background: rgba(42, 172, 200, 0.15);
    color: var(--color-accent);
    border: 1px solid rgba(42, 172, 200, 0.35);
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s;
}

.btn-detail-news:hover {
    background: var(--color-accent);
    color: #fff;
}

.btn-edit-news {
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s;
    text-decoration: none;
}

.btn-edit-news:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
}

.btn-edit-news.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #242f3d;
    color: #7f91a4;
}

.btn-icon-action {
    background: var(--bg-dark);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.15s;
}

.btn-icon-action:hover {
    color: #fff;
    background: var(--bg-elevated);
}

.btn-icon-action.delete:hover {
    color: #ef5350;
    background: rgba(229, 57, 53, 0.1);
}

/* ==========================================================================
   Skeleton Loading UI Components
   ========================================================================== */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, #182430 0%, #253547 50%, #182430 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 6px;
}

.skeleton-card {
    background: var(--bg-surface);
    border: 1px solid var(--color-card-border);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    gap: 14px;
}

.skeleton-thumb {
    width: 96px;
    height: 96px;
    border-radius: 8px;
    flex-shrink: 0;
}

.skeleton-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.skeleton-line {
    height: 14px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-line.short { width: 35%; height: 12px; }
.skeleton-line.title-1 { width: 85%; height: 16px; }
.skeleton-line.title-2 { width: 65%; height: 16px; }
.skeleton-line.sub { width: 95%; height: 11px; margin-top: 4px; }
.skeleton-line.chips { width: 50%; height: 20px; border-radius: 10px; margin-top: 8px; }

/* Scroll Sentinel & Loading Indicator */
.scroll-load-sentinel {
    padding: 16px 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.scroll-spinner-box {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-accent);
    font-size: 13px;
    font-weight: 600;
}

.scroll-all-loaded {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.empty-news-box {
    text-align: center;
    padding: 48px 20px;
    background: var(--bg-dark);
    border: 1px dashed var(--color-border);
    border-radius: 12px;
    color: var(--color-text-muted);
}

.empty-news-box i {
    font-size: 40px;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.error-news-box {
    text-align: center;
    padding: 36px 20px;
    background: rgba(229, 57, 53, 0.08);
    border: 1px solid rgba(229, 57, 53, 0.3);
    border-radius: 12px;
    color: #ef5350;
}

.error-news-box i {
    font-size: 36px;
    margin-bottom: 10px;
}

/* ==========================================================================
   Full News Detail Modal (On-Demand Loading)
   ========================================================================== */
.news-detail-header-image {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 16px;
    border: 1px solid var(--color-border);
}

.news-detail-body-content {
    font-size: 15px;
    line-height: 1.75;
    color: #e4ecf2;
    word-break: break-word;
}

.news-detail-body-content p {
    margin-bottom: 12px;
}

.news-detail-body-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 10px 0;
}

.news-detail-body-content blockquote {
    border-left: 3px solid var(--color-accent);
    padding-left: 12px;
    margin: 12px 0;
    color: #b0bec5;
    font-style: italic;
}

/* ==========================================================================
   Slide-in Menu Drawer
   ========================================================================== */
.menu-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 300;
    backdrop-filter: blur(4px);
    transition: opacity 0.25s ease;
}

.menu-drawer-backdrop.hidden {
    display: none;
}

.menu-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 330px;
    max-width: 85vw;
    height: 100%;
    background: var(--bg-surface);
    border-left: 1px solid var(--color-border);
    z-index: 310;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    padding: 20px;
    background: linear-gradient(180deg, #1d2a37 0%, var(--bg-surface) 100%);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.drawer-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.drawer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0088cc 0%, #2aacc8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 2px 8px rgba(42, 172, 200, 0.4);
    overflow: hidden;
    flex-shrink: 0;
}

.drawer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.drawer-user-text h4 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.drawer-user-text p {
    font-size: 11px;
    color: var(--color-text-muted);
}

.user-role-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    text-transform: uppercase;
}

.user-role-tag.super_admin {
    background: rgba(42, 172, 200, 0.2);
    color: #2aacc8;
    border: 1px solid rgba(42, 172, 200, 0.4);
}

.user-role-tag.admin {
    background: rgba(76, 175, 80, 0.2);
    color: #66bb6a;
    border: 1px solid rgba(76, 175, 80, 0.4);
}

.user-role-tag.moderator {
    background: rgba(171, 71, 188, 0.2);
    color: #ba68c8;
    border: 1px solid rgba(171, 71, 188, 0.4);
}

.drawer-close-btn {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 6px;
}

.drawer-close-btn:hover {
    color: #fff;
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drawer-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 8px;
    color: #e1e9f1;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.drawer-menu-item:hover {
    background: var(--bg-elevated);
    color: var(--color-accent);
}

.drawer-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.drawer-item-left i {
    font-size: 16px;
    width: 22px;
    text-align: center;
    color: var(--color-accent);
}

.drawer-divider {
    height: 1px;
    background: var(--color-border);
    margin: 10px 0;
}

.drawer-section-title {
    font-size: 11px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 14px;
}

.drawer-footer {
    padding: 16px;
    border-top: 1px solid var(--color-border);
    background: var(--bg-dark);
}

.btn-drawer-logout {
    width: 100%;
    padding: 11px;
    background: rgba(229, 57, 53, 0.12);
    border: 1px solid rgba(229, 57, 53, 0.3);
    color: #ef5350;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-drawer-logout:hover {
    background: #e53935;
    color: #fff;
}

/* ==========================================================================
   Modals (Profile Edit, Account Control & Detail View)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 400;
    backdrop-filter: blur(4px);
    padding: 16px;
}

.modal-overlay.hidden {
    display: none;
}

.modal-box {
    background: var(--bg-surface);
    border: 1px solid var(--color-card-border);
    border-radius: 14px;
    width: 100%;
    max-width: 540px;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    animation: modalIn 0.2s ease-out;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

@keyframes modalIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-box-header {
    padding: 16px 20px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.modal-box-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-box-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.modal-box-footer {
    padding: 14px 20px;
    background: var(--bg-dark);
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.btn-modal {
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-modal.primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-modal.primary:hover {
    background: var(--color-primary-hover);
}

.btn-modal.secondary {
    background: var(--bg-elevated);
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
}

.btn-modal.secondary:hover {
    color: #fff;
}

.form-group-modal {
    margin-bottom: 14px;
}

.form-group-modal label {
    display: block;
    font-size: 12px;
    color: var(--color-text-muted);
    font-weight: 600;
    margin-bottom: 6px;
}

.modal-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.modal-input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(42, 172, 200, 0.2);
}

.user-item-row {
    background: var(--bg-dark);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.user-item-row:last-child {
    margin-bottom: 0;
}

.btn-user-action {
    padding: 6px 10px;
    border-radius: 6px;
    border: none;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s;
}

.btn-user-action.approve-admin {
    background: #1976d2;
    color: #fff;
}

.btn-user-action.approve-admin:hover {
    background: #1e88e5;
}

.btn-user-action.approve-mod {
    background: #7b1fa2;
    color: #fff;
}

.btn-user-action.approve-mod:hover {
    background: #8e24aa;
}

.btn-user-action.suspend {
    background: #37474f;
    color: #ffa726;
}

.btn-user-action.suspend:hover {
    background: #455a64;
}

.btn-user-action.delete {
    background: transparent;
    color: #ef5350;
    border: 1px solid rgba(229, 57, 53, 0.25);
}

.btn-user-action.delete:hover {
    background: rgba(229, 57, 53, 0.1);
}

.role-select-mini {
    background: var(--bg-elevated);
    border: 1px solid var(--color-border);
    color: #fff;
    font-size: 11px;
    padding: 5px 8px;
    border-radius: 6px;
    outline: none;
    cursor: pointer;
}

.toast-bubble {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #1d2a37;
    border: 1px solid var(--color-accent);
    color: #fff;
    padding: 10px 22px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    z-index: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: none;
    transition: opacity 0.25s;
}

.hidden {
    display: none !important;
}

@media (max-width: 600px) {
    .home-navbar { padding: 10px 14px; }
    .brand-title { font-size: 16px; }
    .metrics-section { padding: 14px 14px 6px; }
    .filter-toolbar { padding: 8px 14px; }
    .news-list-container { padding: 6px 14px 30px; }
    .news-card { padding: 12px; gap: 10px; }
    .news-thumb-box { width: 80px; height: 80px; }
    .news-title { font-size: 14px; }
}

@media (min-width: 900px) {
    .home-navbar { padding: 14px 32px; }
    .metrics-section { padding: 20px 32px 10px; }
    .filter-toolbar { padding: 10px 32px; }
    .news-list-container { padding: 12px 32px 48px; width: 100%; max-width: 100%; }
}

@media (min-width: 1400px) {
    .home-navbar { padding: 16px 48px; }
    .metrics-section { padding: 24px 48px 12px; }
    .filter-toolbar { padding: 12px 48px; }
    .news-list-container { padding: 16px 48px 60px; }
}

/* ==========================================================================
   User Panel Polls, Tags & Location Badges
   ========================================================================== */
.news-location-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(229, 57, 53, 0.12);
    color: #ef5350;
    border: 1px solid rgba(229, 57, 53, 0.28);
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 12px;
    font-weight: 600;
}

.news-card-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.news-tag-chip {
    font-size: 11px;
    color: #2aacc8;
    background: rgba(42, 172, 200, 0.1);
    border: 1px solid rgba(42, 172, 200, 0.22);
    padding: 2px 7px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
}
.news-tag-chip:hover {
    background: #2aacc8;
    color: #fff;
}

/* Poll Feed Card */
.poll-feed-card {
    background: #17212b;
    border: 1px solid #242f3d;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: border-color 0.15s, transform 0.15s;
}
.poll-feed-card:hover {
    border-color: #2aacc8;
}

.poll-feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 10px;
}

.poll-status-chip {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.poll-status-chip.active {
    background: rgba(102, 187, 106, 0.18);
    color: #66bb6a;
    border: 1px solid rgba(102, 187, 106, 0.35);
}
.poll-status-chip.closed {
    background: rgba(239, 83, 80, 0.15);
    color: #ef5350;
    border: 1px solid rgba(239, 83, 80, 0.3);
}

.poll-vote-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 14px 0;
}

.poll-vote-label {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #0e1621;
    border: 1px solid #1a2533;
    padding: 10px 14px;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.15s;
}
.poll-vote-label:hover {
    background: #242f3d;
    border-color: #2aacc8;
}
.poll-vote-label input[type="radio"] {
    accent-color: #2aacc8;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.btn-submit-vote {
    background: linear-gradient(135deg, #0088cc, #2aacc8);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.15s;
}
.btn-submit-vote:hover {
    opacity: 0.92;
}

.poll-progress-track {
    background: #0e1621;
    border: 1px solid #1a2533;
    border-radius: 8px;
    padding: 10px 14px;
    position: relative;
    overflow: hidden;
    margin-bottom: 8px;
}

.poll-progress-fill {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(0, 136, 204, 0.25), rgba(42, 172, 200, 0.4));
    border-radius: 8px;
    transition: width 0.4s ease;
    z-index: 1;
}

.poll-progress-text {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #fff;
    font-weight: 500;
}

.voted-indicator-badge {
    font-size: 11px;
    color: #66bb6a;
    background: rgba(102, 187, 106, 0.12);
    border: 1px solid rgba(102, 187, 106, 0.3);
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

