/* 
  Lumi-Logs Dashboard Styles
  Author: Staubi - Flo
  Design: Modern Premium Dark Mode, Glassmorphism, Smooth Animations
*/

:root {
    /* Color Palette */
    --bg-dark: #0f111a;
    --bg-darker: #090a0f;
    --bg-glass: rgba(22, 25, 37, 0.7);
    --bg-glass-hover: rgba(30, 34, 50, 0.85);

    --accent-primary: #6366f1;
    /* Deep Indigo */
    --accent-secondary: #8b5cf6;
    /* Vibrant Purple */
    --accent-glow: rgba(99, 102, 241, 0.4);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #cbd5e1;

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(99, 102, 241, 0.5);

    /* Variables */
    --sidebar-width: 280px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;

    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 15px var(--accent-glow);

    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode Overrides */
body.light-mode {
    --bg-dark: #f1f5f9;
    --bg-darker: #f8fafc;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-glass-hover: rgba(255, 255, 255, 0.85);

    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-dark: #334155;

    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-focus: rgba(99, 102, 241, 0.4);

    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-darker);
    color: var(--text-main);
    overflow-x: hidden;
    overflow-y: auto; /* Allow scrolling on the body or ensure containers are correct */
    /* App-like feel */
    -webkit-font-smoothing: antialiased;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
}

/* --- Layout --- */
.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* --- Sidebar --- */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-dark);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    z-index: 10;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
}

.logo-container {
    padding: 30px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-glow);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-text .highlight {
    color: var(--accent-primary);
}

.nav-section {
    padding: 24px 16px;
    flex-grow: 1;
    overflow-y: auto;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-left: 12px;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-item {
    padding: 0;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-dark);
    font-weight: 500;
    cursor: default;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.channel-link {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-grow: 1;
    cursor: pointer;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.channel-link:hover {
    color: var(--text-main);
    transform: translateX(6px);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.delete-channel-btn {
    opacity: 0;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-table .delete-channel-btn {
    opacity: 1;
    padding: 8px;
}

.nav-item:hover .delete-channel-btn {
    opacity: 1;
}

.delete-channel-btn:hover {
    color: #ef4444;
    transform: scale(1.1);
}

.nav-item.active {
    background: linear-gradient(90deg, var(--accent-primary), rgba(99, 102, 241, 0.2));
    color: white;
    font-weight: 600;
}

.sidebar-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* --- Main Content --- */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-y: auto; /* Enable scrolling */
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.08), transparent 40%),
        radial-gradient(circle at bottom left, rgba(139, 92, 246, 0.05), transparent 40%);
}

.topbar {
    height: 80px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 5;
    background: rgba(15, 17, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 40px;
    background: rgba(15, 17, 26, 0.4);
    border-bottom: 1px solid var(--border-subtle);
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.filter-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: white;
    padding: 6px 10px;
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition-fast);
}

.filter-group input:focus {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.08);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-dark);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Search Bar */
.search-container {
    position: relative;
    width: 400px;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 1rem;
}

.search-input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    background: rgba(20, 24, 36, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    color: var(--text-main);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition-normal);
    outline: none;
}

.search-input:focus {
    background: rgba(30, 35, 50, 0.8);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.clear-btn {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    display: none;
    transition: var(--transition-fast);
}

.clear-btn:hover {
    color: white;
}

/* Buttons */
.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-dark);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: rotate(15deg) scale(1.05);
}

.primary-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    filter: brightness(1.1);
}

.primary-btn:active {
    transform: translateY(0);
}

/* --- Feed Area --- */
.feed-container {
    padding: 30px 40px;
    flex-grow: 1;
    overflow-y: visible; /* Let the parent .main-content handle scrolling or adjust as needed */
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feed-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feed-title {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.badge {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-primary);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* --- Log Cards --- */
.logs-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 40px;
}

.log-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

.log-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-focus);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.log-card:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-focus);
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.log-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.log-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #334155, #1e293b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.log-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.log-channel {
    font-size: 0.75rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.log-timestamp {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.log-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
    word-break: break-word;
}

/* Embeds (Discord Style translated to clean UI) */
.embed-container {
    margin-top: 16px;
    border-left: 4px solid var(--accent-primary);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 16px;
}

.embed-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
}

.embed-description {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.5;
}

.embed-fields {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.embed-field-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.embed-field-value {
    font-size: 0.9rem;
    color: white;
}

/* Log Images */
.log-images {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.log-image-wrapper {
    max-width: 100%;
    min-width: 200px;
    flex: 1 1 300px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: rgba(0, 0, 0, 0.2);
    transition: var(--transition-normal);
    cursor: pointer;
}

.log-image-wrapper:hover {
    border-color: var(--accent-primary);
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

.log-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}


/* Cinematic Auth Loader */
.cinematic-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #090a0f;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

.cinematic-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

.cinematic-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    animation: zoomInFade 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.cinematic-logo {
    width: 80px;
    height: 80px;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.6);
    animation: pulseGlow 2s infinite ease-in-out;
}

.cinematic-text {
    font-size: 2rem;
    letter-spacing: 2px;
}

.cinematic-progress {
    width: 250px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    margin-top: 10px;
}

.cinematic-bar {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent-primary), var(--accent-secondary), transparent);
    animation: loadingBar 1.5s infinite linear;
}

.cinematic-status {
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: pulseOpacity 1.5s infinite ease-in-out;
}

@keyframes zoomInFade {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.4); transform: scale(1); }
    50% { box-shadow: 0 0 40px rgba(99, 102, 241, 0.8); transform: scale(1.05); }
}

@keyframes loadingBar {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes pulseOpacity {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.glow-pulse {
    animation: glowPulseRing 2s infinite ease-in-out;
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 15px var(--accent-glow);
}

@keyframes glowPulseRing {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

/* Utilities */
.hidden {
    display: none !important;
}

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 40px;
    color: var(--text-muted);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent-primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.load-more-container {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.ml-2 {
    margin-left: 8px;
}

/* User Management & Admin Table */
.view-container {
    transition: opacity 0.4s ease-out;
}

.view-container:not(.hidden) {
    animation: fadeIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    margin-top: 10px;
}

.admin-table th {
    text-align: left;
    padding: 12px 16px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-table tr td {
    background: rgba(255, 255, 255, 0.02);
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.05);
}

.admin-table tr td:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.admin-table tr td:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.04);
}

.badge-role {
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-admin {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-moderator {
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Login Screen */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.1), transparent),
        radial-gradient(circle at bottom right, rgba(99, 102, 241, 0.1), transparent),
        #0a0b10;
    z-index: 9999;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 60px 40px;
    text-align: center;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: fadeInScale 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.login-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    position: relative;
}

.login-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-lg);
    filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.4));
}

.login-subtitle {
    display: block;
    margin: 12px 0 40px;
    color: var(--text-muted);
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.login-btn-large {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.login-btn-large:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
}

.login-btn-large i {
    font-size: 1.2rem;
}

/* --- Premium Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page Transitions */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-30px);
    }
}

.view-enter {
    animation: slideInRight 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards !important;
}

.view-exit {
    animation: slideOutLeft 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) forwards !important;
}

/* --- Responsive & Mobile Layout --- */

/* Only show mobile menu button on small screens */
.mobile-menu-btn {
    display: none !important;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border-radius: var(--radius-sm);
    background: var(--border-subtle);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.theme-toggle-btn:hover {
    background: var(--bg-glass-hover);
    border-color: var(--accent-primary);
}

/* Pagination Limit Selector */
.pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 15px;
    padding-left: 15px;
    border-left: 1px solid var(--border-subtle);
}

.limit-select {
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.limit-select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px var(--border-focus);
}

.limit-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Pager Controls */
.pager-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 30px 20px;
    margin-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.pager-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
}

.pager-btn:hover:not(:disabled) {
    background: var(--bg-glass-hover);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.pager-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-info {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    background: var(--accent-primary);
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: var(--shadow-glow);
}


@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex !important;
    }

    /* Sidebar - Off Canvas */
    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        bottom: 0;
        width: 85%;
        max-width: 320px;
        z-index: 1000;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: none;
    }

    .sidebar.open {
        left: 0;
        box-shadow: 10px 0 30px rgba(0,0,0,0.5);
    }

    /* Topbar adjustments */
    .topbar {
        padding: 12px;
        gap: 12px;
        flex-wrap: nowrap;
    }

    .search-container {
        max-width: none;
        flex-grow: 1;
    }

    .actions-container {
        gap: 8px;
    }

    #userName {
        display: none; /* Hide username text to save space on mobile */
    }

    #userProfile {
        padding: 6px !important;
    }

    /* Main Container adjustments */
    .feed-container {
        padding: 16px;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group input, .filter-group select {
        width: 100%;
    }

    /* Tables (Horizontal Scroll) */
    .admin-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Settings/User Management filters wrap */
    #users-view .glass-panel > div {
        flex-direction: column;
        align-items: stretch !important;
    }
    
    #users-view .filter-group {
        max-width: 100%;
    }
}