/* ===== ROOT VARIABLES ===== */
:root {
    --primary: #0BB873;
    --primary-dark: #099A60;
    --primary-rgb: 11, 184, 115;
    --primary-glow: rgba(11, 184, 115, 0.25);
    --bg-dark: #1E2329;
    --bg-darker: #181A20;
    --bg-card: #2B3139;
    --bg-hover: #3B4149;
    --text-primary: #EAECEF;
    --text-secondary: #B7BDC6;
    --text-muted: #848E9C;
    --border-color: #2B3139;
    --success: #0ECB81;
    --danger: #F6465D;
    --warning: #F0B90B;
    --info: #1E80FF;
    --shadow: 0 4px 20px rgba(0,0,0,0.3);
    --radius: 8px;
    --sidebar-width: 240px;
    --topbar-height: 60px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    z-index: 1000;
    transition: var(--transition);
    overflow: hidden;
}

.sidebar-inner {
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.sidebar-brand .logo {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(11, 184, 115, 0.35);
}

.sidebar-brand h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.sidebar-brand small {
    font-size: 10px;
    color: var(--text-muted);
    display: block;
}

.sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 0;
}

.sidebar-scroll::-webkit-scrollbar {
    width: 4px;
}
.sidebar-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-scroll::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 999;
}

.sidebar-overlay.active {
    display: block;
}

/* ===== SIDEBAR MENU ===== */
.sidebar-menu {
    list-style: none;
    padding: 0 10px;
}

.sidebar-menu .menu-header {
    padding: 12px 14px 6px;
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    font-weight: 600;
}

.sidebar-menu li {
    margin: 1px 0;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 13px;
    font-weight: 500;
}

.sidebar-menu li a:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.sidebar-menu li.active a {
    background: #0BB873 !important;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(11, 184, 115, 0.35);
}

.sidebar-menu li.active a i {
    color: #ffffff !important;
}

.sidebar-menu li a i {
    width: 20px;
    text-align: center;
    font-size: 15px;
    flex-shrink: 0;
}

.sidebar-menu li a .badge {
    margin-left: auto;
    background: var(--danger);
    color: #fff;
    padding: 1px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
}

/* ===== MAIN WRAPPER ===== */
.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-dark);
}

/* ===== TOPBAR ===== */
.topbar {
    position: sticky;
    top: 0;
    height: var(--topbar-height);
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
    flex-shrink: 0;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.sidebar-toggle:hover {
    background: var(--bg-hover);
}

.sidebar-toggle i {
    pointer-events: none;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
}

.breadcrumb i {
    font-size: 14px;
}

.breadcrumb span {
    color: var(--text-primary);
    font-weight: 600;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: var(--transition);
}

.notification-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.notification-btn .badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--danger);
    color: #fff;
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 50%;
    min-width: 16px;
    text-align: center;
}

.user-dropdown {
    position: relative;
}

.user-dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 4px 8px 4px 4px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.user-dropdown .dropdown-toggle:hover {
    background: var(--bg-hover);
}

.user-dropdown .dropdown-toggle img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.user-dropdown .dropdown-toggle .name {
    font-weight: 500;
    font-size: 13px;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    min-width: 200px;
    display: none;
    padding: 6px 0;
    box-shadow: var(--shadow);
    z-index: 1001;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 13px;
}

.dropdown-menu a:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.dropdown-menu hr {
    margin: 6px 14px;
    border: none;
    border-top: 1px solid var(--border-color);
}

/* ===== PAGE CONTENT ===== */
.page-content {
    flex: 1;
    padding: 20px 24px 30px;
    background: var(--bg-dark);
    min-height: calc(100vh - var(--topbar-height));
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-wrapper {
        margin-left: 0;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .page-content {
        padding: 14px 14px 20px;
    }
    
    .topbar {
        padding: 0 14px;
    }
}

@media (max-width: 480px) {
    .page-content {
        padding: 10px 10px 16px;
    }
    
    .topbar {
        padding: 0 10px;
    }
    
    .user-dropdown .dropdown-toggle .name {
        display: none;
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-darker);
    border-right: 1px solid var(--border-color);
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    transform: translateX(0);
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* ===== SIDEBAR CLOSE BUTTON ===== */
.sidebar-close {
    display: none;
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 22px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    z-index: 10;
}

.sidebar-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* ===== SIDEBAR OVERLAY ===== */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        height: 100vh !important;
        height: 100dvh !important;
        width: 280px !important;
        max-width: 85vw !important;
        z-index: 99999 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        border-right: none !important;
        box-shadow: none !important;
        background: var(--bg-darker) !important;
    }
    
    .sidebar.open {
        transform: translateX(0) !important;
        box-shadow: 4px 0 35px rgba(0, 0, 0, 0.65) !important;
    }
    
    .sidebar-close {
        display: flex !important;
        align-items: center;
        justify-content: center;
        z-index: 100;
    }
    
    .sidebar-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(0, 0, 0, 0.6) !important;
        z-index: 99998 !important;
    }
    
    .sidebar-overlay.active {
        display: block !important;
        opacity: 1 !important;
    }
    
    .sidebar-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }
    
    .main-wrapper {
        margin-left: 0 !important;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 260px !important;
        max-width: 85vw !important;
    }
}

/* ==========================================================================
   GLOBAL ADMIN COMPONENT SYSTEM (DASHBOARD, USERS, SECTIONS, CATEGORIES, POSTS, ADVICES)
   Prevents FOUC (Flash of Unstyled Content) and guarantees instant CSS application
   ========================================================================== */

/* Page Containers */
.page-content {
    flex: 1;
    padding: 24px 20px;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-wrapper,
.dashboard {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* Page Headers */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.page-header .header-left h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-header .header-left h2 i {
    color: var(--primary);
}

.page-header .header-left .text-muted {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0;
}

.page-header .header-right {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

/* ===== STATS OVERVIEW & KPI GRIDS ===== */
.stats-overview,
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-box,
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stat-box:hover,
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    border-color: rgba(11, 184, 115, 0.35);
}

.stat-box-icon,
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.stat-icon.users { background: rgba(30, 128, 255, 0.15); color: #1E80FF; }
.stat-icon.posts { background: rgba(11, 184, 115, 0.15); color: #0BB873; }
.stat-icon.pending { background: rgba(246, 70, 93, 0.15); color: #F6465D; }
.stat-icon.categories { background: rgba(14, 203, 129, 0.15); color: #0ECB81; }

.stat-box-info,
.stat-info {
    flex: 1;
    min-width: 0;
}

.stat-box-info .stat-box-number,
.stat-info .stat-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-box-info .stat-box-label,
.stat-info .stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.stat-trend {
    font-size: 11px;
    margin-top: 4px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.stat-trend.up { color: var(--success); }
.stat-trend.down { color: var(--danger); }

/* ===== DASHBOARD CHARTS & ACTIVITIES ===== */
.chart-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.chart-card {
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.chart-container {
    position: relative;
    height: 260px;
    width: 100%;
}

.activity-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.activity-card {
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.activity-list {
    display: flex;
    flex-direction: column;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item:hover {
    background: var(--bg-hover);
}

.activity-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.activity-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.activity-icon.published, .activity-icon.active { background: rgba(14, 203, 129, 0.15); color: var(--success); }
.activity-icon.pending { background: rgba(240, 185, 11, 0.15); color: var(--warning); }
.activity-icon.inactive { background: rgba(246, 70, 93, 0.15); color: var(--danger); }

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 13px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
}

.online-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
}

.online-status.online { background: var(--success); }
.online-status.offline { background: var(--text-muted); }

/* ===== CARDS & TABLES (USERS, SECTIONS, CATEGORIES, POSTS, ADVICES) ===== */
.card,
.table-card,
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    margin-bottom: 24px;
}

.card-header {
    background: var(--bg-darker);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
}

.card-header .header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-body {
    padding: 20px;
}

.card-body.p-0 {
    padding: 0 !important;
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-primary);
}

.table th {
    background: var(--bg-darker);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.table td {
    padding: 12px 16px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

.table-hover tbody tr:hover {
    background: var(--bg-hover);
}

.total-badge {
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

/* ===== SEARCH & FILTER ===== */
.search-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.search-wrapper .search-icon {
    position: absolute;
    left: 10px;
    color: var(--text-muted);
    font-size: 12px;
    pointer-events: none;
}

.table-search {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 7px 28px 7px 30px;
    border-radius: var(--radius);
    font-size: 12px;
    width: 200px;
    transition: var(--transition);
}

.table-search:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(11, 184, 115, 0.2);
}

.clear-search {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 11px;
}

.filter-wrapper {
    display: flex;
    gap: 8px;
}

.filter-status,
.filter-role {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 7px 10px;
    border-radius: var(--radius);
    font-size: 12px;
    cursor: pointer;
}

.filter-status:focus,
.filter-role:focus {
    border-color: var(--primary);
    outline: none;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(11, 184, 115, 0.25);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(11, 184, 115, 0.35);
}

.btn-secondary {
    background: var(--bg-dark);
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    color: #fff !important;
}

.btn-success { background: var(--success); color: #fff !important; }
.btn-danger { background: var(--danger); color: #fff !important; }
.btn-info { background: var(--info); color: #fff !important; }
.btn-warning { background: var(--warning); color: #181A20 !important; }

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

.btn-lg {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-outline:hover,
.btn-outline.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.btn-ghost {
    background: transparent;
    border: none;
    color: var(--text-muted);
}

.btn-ghost:hover {
    color: var(--primary);
    background: rgba(11, 184, 115, 0.12);
}

.action-buttons {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: var(--transition);
    text-decoration: none;
    border: 1px solid transparent;
}

.edit-btn {
    background: rgba(14, 203, 129, 0.1);
    color: var(--success);
    border-color: rgba(14, 203, 129, 0.2);
}

.edit-btn:hover {
    background: var(--success);
    color: #fff;
    transform: translateY(-1px);
}

.delete-btn {
    background: rgba(246, 70, 93, 0.1);
    color: var(--danger);
    border-color: rgba(246, 70, 93, 0.2);
}

.delete-btn:hover {
    background: var(--danger);
    color: #fff;
    transform: translateY(-1px);
}

/* ===== BADGES & STATUS ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
}

.badge-status.active { background: rgba(14, 203, 129, 0.15); color: var(--success); }
.badge-status.inactive, .badge-status.banned { background: rgba(246, 70, 93, 0.15); color: var(--danger); }
.badge-status.pending { background: rgba(240, 185, 11, 0.15); color: var(--warning); }
.badge-status.admin, .badge-status.super_admin { background: rgba(30, 128, 255, 0.15); color: var(--info); }
.badge-status.user { background: rgba(132, 142, 156, 0.15); color: var(--text-secondary); }

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.active { background: var(--success); }
.status-dot.inactive { background: var(--danger); }
.status-dot.pending { background: var(--warning); }

/* ===== SPECIFIC ROW CELLS ===== */
.user-cell, .slide-cell, .post-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background: var(--bg-darker);
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 13px;
}

.user-phone, .user-email {
    font-size: 11px;
    color: var(--text-muted);
}

.email-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 13px;
}

.slide-thumb, .post-thumb {
    width: 70px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.slide-thumb img, .post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-thumb.no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 13px;
}

.thumb-label {
    font-size: 9px;
    margin-top: 2px;
}

.slide-title, .post-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.slide-desc, .post-desc {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.order-badge, .slide-id, .user-id {
    font-family: monospace;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.date-text, .date-cell {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===== FORMS & INPUTS ===== */
.form-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section h4 i {
    color: var(--primary);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.required {
    color: var(--danger);
}

.form-control {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 9px 12px;
    border-radius: var(--radius);
    font-size: 13px;
    transition: var(--transition);
    box-sizing: border-box;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(11, 184, 115, 0.2);
}

.form-group .text-muted {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

.upload-area {
    border: 2px dashed var(--border-color);
    background: var(--bg-dark);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.upload-area:hover {
    border-color: var(--primary);
}

.file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-icon {
    font-size: 32px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.upload-text {
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.upload-text strong {
    color: var(--primary);
}

.upload-hint {
    font-size: 11px;
    color: var(--text-muted);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
}

/* ===== PAGINATION & ALERTS ===== */
.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 20px;
    border-top: 1px solid var(--border-color);
}

.pagination-info {
    font-size: 12px;
    color: var(--text-muted);
}

.pagination-buttons {
    display: flex;
    gap: 4px;
    align-items: center;
}

.active-page {
    background: var(--primary) !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(11, 184, 115, 0.3);
}

.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 13px;
}

.alert-success {
    background: rgba(14, 203, 129, 0.15);
    border: 1px solid rgba(14, 203, 129, 0.3);
    color: var(--success);
}

.alert-danger {
    background: rgba(246, 70, 93, 0.15);
    border: 1px solid rgba(246, 70, 93, 0.3);
    color: var(--danger);
}

.empty-state {
    text-align: center;
    padding: 44px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 40px;
    margin-bottom: 10px;
    opacity: 0.4;
}

.empty-state p {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* Responsive Overrides */
@media (max-width: 1200px) {
    .stats-overview,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-content {
        padding: 16px 12px;
    }
    .stats-overview,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .activity-row {
        grid-template-columns: 1fr;
    }
    .table-card .card-header {
        flex-direction: column;
        align-items: stretch;
    }
    .header-right {
        flex-direction: column;
    }
    .table-search {
        width: 100%;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Form Management Module Import Fallback */
@import url('forms-management.css');