@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-main: #0b0d13;
    --bg-card: rgba(20, 22, 32, 0.65);
    --bg-card-hover: rgba(28, 31, 45, 0.8);
    --bg-sidebar: #10121a;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(255, 255, 255, 0.18);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --accent-primary: #6366f1;
    --accent-primary-glow: rgba(99, 102, 241, 0.35);
    --accent-secondary: #a855f7;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --sidebar-width: 260px;
    --header-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Glassmorphism Utility */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-panel:hover {
    border-color: var(--border-color-hover);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* ── LOGIN PAGE ── */
.login-container {
    min-height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.15), transparent 50%),
                radial-gradient(circle at bottom left, rgba(168, 85, 247, 0.15), transparent 50%),
                var(--bg-main);
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 45px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

.login-header {
    margin-bottom: 35px;
}

.login-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 22px;
    text-align: left;
}

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

.form-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input-wrap i {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.form-input {
    width: 100%;
    padding: 15px 15px 15px 48px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px var(--accent-primary-glow);
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px var(--accent-primary-glow);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(168, 85, 247, 0.45);
}

.login-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 22px;
    display: none;
    align-items: center;
    gap: 10px;
    text-align: left;
    animation: fadeIn 0.3s ease;
}

/* ── MAIN DASHBOARD LAYOUT ── */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    transition: all 0.3s;
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 25px;
    border-bottom: 1px solid var(--border-color);
    gap: 12px;
}

.sidebar-header img {
    width: 32px;
    height: 32px;
    border-radius: 10px;
}

.sidebar-header h2 {
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-nav {
    padding: 25px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 14px;
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid transparent;
}

.nav-item i {
    font-size: 1.2rem;
    width: 24px;
    transition: all 0.3s;
}

.nav-item:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.nav-item.active {
    color: white;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 6px 15px var(--accent-primary-glow);
    border-color: transparent;
}

.nav-item.active i {
    transform: scale(1.1);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 14px;
}

.admin-profile img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.admin-info {
    flex: 1;
    min-width: 0;
}

.admin-info h4 {
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--success);
    display: inline-block;
}

.logout-btn {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: var(--danger);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.top-navbar {
    height: var(--header-height);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: rgba(11, 13, 19, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 90;
}

.page-title {
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}

.live-badge {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.content-body {
    padding: 40px;
    flex: 1;
}

.tab-view {
    display: none;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-view.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── OVERVIEW METRICS GRID ── */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.metric-card {
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-primary);
}

.metric-card:nth-child(2)::before { background: var(--success); }
.metric-card:nth-child(3)::before { background: var(--warning); }
.metric-card:nth-child(4)::before { background: var(--accent-secondary); }
.metric-card:nth-child(5)::before { background: var(--info); }

.metric-info h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.metric-info h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
}

.metric-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-primary);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.metric-card:nth-child(2) .metric-icon { color: var(--success); }
.metric-card:nth-child(3) .metric-icon { color: var(--warning); }
.metric-card:nth-child(4) .metric-icon { color: var(--accent-secondary); }
.metric-card:nth-child(5) .metric-icon { color: var(--info); }

/* ── SEARCH & FILTER BAR ── */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 480px;
}

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

.search-box input {
    width: 100%;
    padding: 16px 16px 16px 52px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px var(--accent-primary-glow);
}

.toolbar-actions {
    display: flex;
    gap: 12px;
}

.btn-secondary {
    padding: 14px 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ── DATA TABLES ── */
.table-container {
    overflow-x: auto;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 800px;
}

.data-table th {
    padding: 20px 24px;
    background: rgba(0, 0, 0, 0.4);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.data-table td {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
    color: var(--text-main);
    vertical-align: middle;
}

.data-table tbody tr {
    transition: all 0.2s;
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-cell img {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.user-cell-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2px;
}

.user-cell-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.badge-primary { background: rgba(99, 102, 241, 0.15); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.3); }
.badge-secondary { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.badge-success { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }

.btn-action {
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px var(--accent-primary-glow);
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(168, 85, 247, 0.4);
}

/* ── MODALS ── */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    animation: fadeInModal 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

@keyframes fadeInModal {
    from { opacity: 0; backdrop-filter: blur(0px); }
    to { opacity: 1; backdrop-filter: blur(8px); }
}

.modal-card {
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
}

.modal-header {
    padding: 25px 35px;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
}

.btn-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

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

/* ── MODAL INNER COMPONENTS ── */
.user-profile-hero {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    margin-bottom: 30px;
}

.user-profile-hero img {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.user-hero-info {
    flex: 1;
    min-width: 0;
}

.user-hero-info h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-hero-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.modal-tabs {
    display: flex;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
    padding-bottom: 15px;
    overflow-x: auto;
}

.modal-tab-btn {
    padding: 12px 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.modal-tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.modal-tab-btn.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border-color: transparent;
    box-shadow: 0 6px 15px var(--accent-primary-glow);
}

.modal-subview {
    display: none;
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-subview.active {
    display: block;
}

/* ── LIVE INBOX & FEED ITEMS ── */
.message-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.message-card {
    padding: 25px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    position: relative;
    transition: all 0.3s;
}

.message-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.02);
}

.message-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.sender-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
}

.sender-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: white;
}

.msg-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.message-content {
    font-size: 1.1rem;
    line-height: 1.6;
    color: white;
    margin-bottom: 20px;
    word-break: break-word;
}

.message-attachments {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.audio-player-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 14px;
}

.audio-player-wrap audio {
    flex: 1;
    height: 36px;
}

.image-attachments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 200px));
    gap: 12px;
}

.image-attachments-grid img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    transition: all 0.3s;
}

.image-attachments-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.message-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 10px;
}

.metadata-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.meta-pill {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1;
}

/* ── FIREHOSE FEED ── */
.firehose-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.firehose-item {
    padding: 20px 25px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    transition: all 0.3s;
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.firehose-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.02);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.firehose-main {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    min-width: 0;
}

.firehose-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
}

.firehose-info {
    flex: 1;
    min-width: 0;
}

.firehose-info h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.firehose-info p {
    font-size: 0.95rem;
    color: #cbd5e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.firehose-meta {
    text-align: right;
    flex-shrink: 0;
}

.firehose-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 4px;
}

/* ── EMPTY STATES ── */
.empty-state {
    padding: 80px 40px;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px dashed var(--border-color);
    border-radius: 20px;
    margin: 20px 0;
}

.empty-state i {
    font-size: 3.5rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Fullscreen Image Viewer Modal */
.image-viewer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.image-viewer-modal.active {
    display: flex;
}

.image-viewer-modal img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.image-viewer-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.image-viewer-close:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 80px;
    }
    .sidebar-header h2,
    .nav-item span,
    .admin-info {
        display: none;
    }
    .sidebar-header {
        justify-content: center;
        padding: 0;
    }
    .nav-item {
        justify-content: center;
        padding: 14px;
    }
    .nav-item i {
        margin: 0;
    }
    .admin-profile {
        justify-content: center;
        padding: 10px 5px;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 0px;
        --header-height: 60px;
    }
    .sidebar {
        top: auto;
        bottom: 0;
        left: 0;
        width: 100vw;
        height: 60px;
        flex-direction: row;
        border-right: none;
        border-top: 1px solid var(--border-color);
        background: rgba(16, 18, 26, 0.95);
        backdrop-filter: blur(10px);
        z-index: 1000;
    }
    .sidebar-header, .sidebar-footer {
        display: none;
    }
    .sidebar-nav {
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        padding: 0;
        width: 100%;
        height: 100%;
    }
    .nav-item {
        flex: 1;
        padding: 0;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 0;
        border: none;
        background: transparent !important;
        box-shadow: none !important;
    }
    .nav-item.active i {
        color: var(--accent-primary);
        filter: drop-shadow(0 0 5px var(--accent-primary-glow));
        transform: scale(1.2);
    }
    .nav-item i {
        font-size: 1.4rem;
    }
    .main-content {
        margin-left: 0;
        margin-bottom: 60px;
    }
    .top-navbar {
        padding: 0 15px;
        justify-content: space-between;
    }
    .page-title {
        font-size: 1.1rem;
    }
    .page-title span {
        display: none;
    }
    .live-badge span:last-child {
        display: none;
    }
    .content-body {
        padding: 15px;
    }
    .toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .search-box {
        max-width: 100%;
    }
    .toolbar-actions {
        justify-content: space-between;
    }
    .metrics-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .metric-card {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .metric-icon {
        position: absolute;
        right: 10px;
        bottom: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        opacity: 0.5;
    }
    .metric-info h2 {
        font-size: 1.6rem;
    }
    .metric-info h3 {
        font-size: 0.75rem;
    }
    .modal-card {
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
        border: none;
    }
    .user-profile-hero {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .user-hero-info h2 {
        justify-content: center;
        font-size: 1.4rem;
    }
    .metadata-pills {
        justify-content: center;
    }
    .modal-body {
        padding: 15px;
    }
    .modal-tabs {
        flex-direction: column;
        gap: 5px;
    }
    .modal-tab-btn {
        width: 100%;
        justify-content: center;
    }
}
