* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #131824;
    --bg-card: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #0cebeb 0%, #20e3b2 100%);
    --gradient-danger: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

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

/* ========================================
   Login Screen
======================================== */
.login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #0a0e1a;
    position: relative;
    overflow: hidden;
}

.login-screen::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    animation: gradientShift 15s ease infinite;
}

.login-screen::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
                linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    opacity: 0.5;
}

@keyframes gradientShift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(5%, -5%) scale(1.1); }
    66% { transform: translate(-5%, 5%) scale(0.9); }
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.login-container {
    background: rgba(13, 18, 36, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 100px rgba(99, 102, 241, 0.1);
    position: relative;
    z-index: 1;
    animation: containerFloat 6s ease-in-out infinite;
}

@keyframes containerFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.login-container::before {
    content: '';
    position: absolute;
    inset: -2px;
    padding: 2px;
    background: linear-gradient(45deg, 
        #6366f1, 
        #8b5cf6, 
        #ec4899, 
        #f59e0b,
        #10b981,
        #6366f1
    );
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.5s ease;
    background-size: 300% 300%;
    animation: gradientRotate 8s ease infinite;
    
    /* Create hollow border effect */
    -webkit-mask: 
       linear-gradient(#fff 0 0) content-box, 
       linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: 
       linear-gradient(#fff 0 0) content-box, 
       linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

@keyframes gradientRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.login-container:hover::before {
    opacity: 0.8;
}

.login-logo {
    width: 80px;
    height: auto;
    margin: 0 auto 1.5rem;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.3));
    transition: transform 0.3s ease;
}

.login-logo:hover {
    transform: scale(1.05);
}

.login-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
    background: linear-gradient(135deg, #ffffff, #a0aec0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-header p {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-weight: 500;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.input-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 10px;
    padding: 0.875rem 1rem;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.8);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3),
                0 0 10px rgba(99, 102, 241, 0.2) inset;
    transform: translateY(-2px);
}

.btn-login {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.5);
    color: #fff;
    border-radius: 12px;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.1);
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.btn-login:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.6),
                0 0 60px rgba(99, 102, 241, 0.4),
                inset 0 0 20px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px) scale(1.02);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login span {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-login span::after {
    content: '\f061'; /* FontAwesome arrow-right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.9em;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.btn-login:hover span::after {
    opacity: 1;
    transform: translateX(0);
}

.error-message {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    color: #fca5a5;
    font-size: 0.875rem;
    text-align: center;
}

/* ========================================
   Dashboard Layout
======================================== */
.admin-dashboard {
    display: grid;
    grid-template-areas:
        "header header"
        "sidebar content";
    grid-template-columns: 250px 1fr;
    grid-template-rows: auto 1fr;
    min-height: 100vh;
    background: var(--bg-primary);
    position: relative;
    transition: grid-template-columns 0.3s ease;
}

.admin-dashboard.sidebar-collapsed {
    grid-template-columns: 70px 1fr;
}

.admin-dashboard::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.top-bar {
    grid-area: header;
    background: linear-gradient(135deg, rgba(19, 24, 36, 0.95) 0%, rgba(13, 18, 36, 0.95) 100%);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
    font-family: 'Orbitron', sans-serif;
}

.navbar-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.top-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-left: auto;
}

.sidebar-toggle {
    display: none; /* Hidden on desktop by default */
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-right: 1rem;
    transition: color 0.3s ease;
}

.sidebar-toggle:hover {
    color: var(--accent-primary);
}

/* Show toggle on tablet and mobile */
@media (max-width: 768px) {
    .sidebar-toggle {
        display: flex;
    }
}

/* Sidebar */
.sidebar {
    grid-area: sidebar;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem 0;
    overflow-y: auto;
    transition: all 0.3s ease;
    height: calc(100vh - 73px); /* Adjust based on header height */
    position: sticky;
    top: 73px;
}

.sidebar-collapsed .sidebar {
    padding: 1.5rem 0.5rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nav-section {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    padding: 0.5rem 1.5rem 0.5rem 1.5rem;
    margin-bottom: 0.25rem;
}

.sidebar-collapsed .nav-section-title {
    opacity: 0;
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    border-left-color: var(--accent-primary);
}

.nav-item i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.nav-item span {
    white-space: nowrap;
    transition: opacity 0.3s ease, width 0.3s ease;
    overflow: hidden;
    opacity: 1;
    width: auto;
}

.sidebar-collapsed .nav-item {
    padding: 1rem 0.75rem;
    justify-content: center;
}

.sidebar-collapsed .nav-item span {
    opacity: 0;
    width: 0;
}

.header-content h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #ffffff, #a0aec0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Main Content Area */
.main-content {
    grid-area: content;
    padding: 2rem;
    overflow-y: auto;
    background: var(--bg-primary);
    position: relative;
    z-index: 1;
    min-width: 0; /* Prevents grid item from expanding beyond viewport */
}

.content-header {
    margin-bottom: 2rem;
}

.content-header h1 {
    font-size: 2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.content-header h1 i {
    color: var(--accent-primary);
}

.content-description {
    color: var(--text-secondary);
    font-size: 1rem;
}

.section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Settings Page */
.settings-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
}

@media (max-width: 968px) {
    .settings-container {
        grid-template-columns: 1fr;
    }
}

.settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.maintenance-card {
    grid-column: 1 / -1;
}

.maintenance-toggle-section {
    margin-bottom: 2rem;
}

.maintenance-config-section {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.maintenance-config-section .maintenance-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .maintenance-config-section .maintenance-form {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .maintenance-config-section .form-actions {
        grid-column: 1 / -1;
    }
}

.config-subtitle {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.config-subtitle i {
    color: var(--accent-primary);
    font-size: 0.9rem;
}

.form-help {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.375rem;
    font-style: italic;
}

.settings-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.preference-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    gap: 2rem;
}

.preference-item:last-child {
    border-bottom: none;
}


.pref-info {
    flex: 1;
}

.pref-info h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.pref-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.header-actions {
    display: none; /* Deprecated */
}

/* Button styles are defined later in the file */

/* Form Elements */
select {
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a0aec0' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

select:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.btn-secondary,
.btn-primary {
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

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

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.dashboard-content {
    grid-area: content;
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(100vh - 73px);
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.page-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.section-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    max-width: 100%;
}

@media (max-width: 768px) {
    .section-card {
        padding: 1rem;
    }
}

.section-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}


/* ========================================
   Metrics Grid
======================================== */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.metric-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.metric-card:hover::before {
    opacity: 1;
}

.metric-card:nth-child(1) .metric-icon {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.metric-card:nth-child(2) .metric-icon {
    background: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.metric-card:nth-child(3) .metric-icon {
    background: linear-gradient(135deg, #10b981 0%, #0cebeb 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.metric-card:nth-child(4) .metric-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.metric-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    position: relative;
    z-index: 1;
}

.metric-icon i {
    font-size: 1.75rem;
}

.section-title i {
    margin-right: 0.5rem;
}

.header-content h1 i {
    margin-right: 0.5rem;
}

.login-header h1 i {
    margin-right: 0.5rem;
}

.metric-content {
    flex: 1;
}

.metric-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
}

/* ========================================
   Time Range Selector
======================================== */
.time-range-selector {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-card);
    padding: 0.25rem;
    border-radius: 10px;
}

.range-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.range-btn.active {
    background: var(--accent-primary);
    color: white;
}

.range-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* ========================================
   Charts
======================================== */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

/* Single full-width chart */
.charts-grid:has(.chart-card.full-width:only-child) {
    grid-template-columns: 1fr;
}

.chart-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.chart-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.chart-card h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.chart-card canvas {
    max-height: 300px;
    width: 100% !important;
    height: auto !important;
}

/* Metric Selector */
.metric-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.metric-selector label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.metric-selector select {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.metric-selector select:hover {
    border-color: var(--accent-primary);
}

.metric-selector select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

/* Full-width chart card */
.chart-card.full-width {
    grid-column: 1 / -1;
    min-height: 400px;
}

.chart-card.full-width canvas {
    width: 100% !important;
    height: 400px !important;
    max-height: none;
}


/* ========================================
   Games Grid
======================================== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.game-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.game-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
}

.game-card:hover::before {
    opacity: 1;
}

.game-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.game-icon-large {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 12px;
}

.game-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.game-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.game-status.enabled {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.game-status.disabled {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.game-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.game-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-weight: 700;
    font-size: 1.125rem;
}

.game-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.btn-toggle,
.btn-edit,
.btn-analytics {
    flex: 1;
    padding: 0.625rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.btn-toggle.enabled {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10b981;
}

.btn-toggle.disabled {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.btn-edit {
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #6366f1;
}

.btn-analytics {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #8b5cf6;
}

.btn-toggle:hover,
.btn-edit:hover,
.btn-analytics:hover {
    transform: translateY(-2px);
}

/* ========================================
   Modal
======================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.modal-content .form-actions {
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin-top: 0;
}

.edit-form {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* ========================================
   Responsive Design
======================================== */
@media (min-width: 769px) and (max-width: 1024px) {
    .admin-dashboard {
        grid-template-columns: 70px 1fr;
    }
    
    .nav-item span {
        opacity: 0;
        width: 0;
    }
    
    .sidebar {
        padding: 1.5rem 0.5rem;
    }
    
    .nav-item {
        padding: 1rem 0.75rem;
        justify-content: center;
    }
    
    /* Hide section titles on medium screens */
    .nav-section-title {
        display: none;
    }
    
    /* Ensure toggle is hidden on medium screens */
    .sidebar-toggle {
        display: none;
    }
}

@media (max-width: 768px) {
    .admin-dashboard {
        grid-template-areas:
            "header header"
            "content content";
        grid-template-columns: 1fr;
    }
    
    .sidebar-toggle {
        display: flex !important;
    }
    
    .sidebar {
        position: fixed;
        left: -250px;
        top: 73px;
        height: calc(100vh - 73px);
        width: 250px;
        z-index: 999;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
        padding: 1.5rem 0;
    }
    
    .sidebar.mobile-open {
        left: 0;
    }
    
    .nav-item {
        padding: 1rem 1.5rem;
        justify-content: flex-start;
    }
    
    .nav-item span {
        opacity: 1;
        width: auto;
    }

    .dashboard-header {
        padding: 1rem;
    }

    .header-content h1 {
        font-size: 1.25rem;
    }

    .dashboard-content {
        padding: 1rem;
    }

    .top-bar {
        padding: 1rem;
    }

    .main-content {
        padding: 1rem;
    }

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

    .charts-grid {
        grid-template-columns: 1fr;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .login-container {
        padding: 2rem;
    }
}

/* ========================================
   Animations
======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.metric-card,
.chart-card,
.game-card {
    animation: fadeIn 0.5s ease forwards;
}





/* ========================================
   Users Section
======================================== */

.table-container {
    overflow-x: auto;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    backdrop-filter: blur(12px);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.data-table th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
}

.role-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: capitalize;
}

.role-badge.superuser {
    background: rgba(236, 72, 153, 0.2);
    color: #f472b6;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.role-badge.admin {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.role-badge.user {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-me {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.1rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    margin-left: 0.5rem;
}



/* ========================================
   Mature User Management Styles
======================================== */

/* Header Profile */
.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-right: 1.5rem;
    padding-right: 1.5rem;
    border-right: 1px solid var(--glass-border);
}

.user-avatar-small {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: capitalize;
}

/* Table Controls */
.table-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.search-box {
    position: relative;
    width: 300px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.search-box input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    outline: none;
}

/* Pagination */
.pagination-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.page-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-size-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-size-selector label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    white-space: nowrap;
}

.page-size-selector .filter-select {
    min-width: 80px;
}

/* Responsive Pagination */
@media (max-width: 768px) {
    .pagination-controls {
        flex-direction: column;
        gap: 0.75rem;
        justify-content: center;
    }
    
    .page-info {
        order: -1;
        text-align: center;
        font-size: 0.85rem;
    }
    
    .pagination-buttons {
        order: 1;
        justify-content: center;
    }
    
    .page-size-selector {
        order: 2;
        justify-content: center;
    }
    
    .page-size-selector label {
        font-size: 0.85rem;
    }
}

@media (max-width: 390px) {
    .pagination-controls {
        gap: 0.5rem;
    }
    
    .page-info {
        font-size: 0.8rem;
    }
    
    /* Hide page numbers on very small screens, keep only prev/next */
    .pagination-buttons span {
        display: none;
    }
    
    .btn-sm {
        padding: 0.35rem 0.7rem;
        font-size: 0.8rem;
    }
    
    .page-size-selector .filter-select {
        min-width: 70px;
        font-size: 0.85rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.btn-icon.danger,
.btn-icon.btn-delete {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.btn-icon.danger:hover,
.btn-icon.btn-delete:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: #ef4444;
}

.btn-icon.btn-success {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.btn-icon.btn-success:hover {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border-color: #22c55e;
}

/* ========================================
   Profile Page Styles
======================================== */

.profile-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
}

.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

/* Profile Header Banner */
.profile-header-banner {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
}

.profile-header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.profile-header-info h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.profile-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

.profile-card.full-width {
    grid-column: 1 / -1;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.profile-header-info h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.profile-role-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
}

.profile-role-badge.superuser {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: white;
}

.profile-role-badge.admin {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
}

.profile-role-badge.user {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.card-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-header i {
    color: var(--accent-primary);
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.info-value {
    color: var(--text-primary);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .profile-container {
        grid-template-columns: 1fr;
    }
    
    .profile-header-banner {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .profile-header-content {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }
    
    .profile-stats {
        width: 100%;
        justify-content: center;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-avatar-large {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
    }
    
    .profile-card {
        padding: 1.5rem;
    }
}

/* ========================================
   User Management Redesign Styles
======================================== */

/* Statistics Cards Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

.stat-icon.admin {
    background: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.stat-icon.superuser {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.stat-icon.user {
    background: linear-gradient(135deg, #10b981 0%, #0cebeb 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.stat-content {
    flex: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.375rem;
    font-weight: 500;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    color: var(--text-primary);
}

/* Filter Controls */
.filter-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
    flex: 1;
    min-width: 300px;
}

.filter-controls .search-box {
    flex: 1;
    min-width: 250px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label i {
    font-size: 0.75rem;
}

.filter-group select {
    padding: 0.75rem 2.5rem 0.75rem 1rem;
}

/* Users Grid */
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.user-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.user-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.user-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.user-card:hover::before {
    opacity: 1;
}

.user-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.user-card-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    flex-shrink: 0;
}

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

.user-card-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.user-card-name .badge-me {
    background: linear-gradient(135deg, #10b981 0%, #0cebeb 100%);
    color: white;
    font-size: 0.625rem;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-card-role {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.user-card-role.superuser {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.user-card-role.admin {
    background: rgba(236, 72, 153, 0.15);
    color: #f472b6;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.user-card-role.user {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.user-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.user-card-meta i {
    font-size: 0.75rem;
}

/* User Status Badges */
.user-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-status-badge i {
    font-size: 0.5rem;
}

.user-status-badge.status-active {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.user-status-badge.status-inactive {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.user-status-badge.status-archived {
    background: rgba(107, 114, 128, 0.15);
    color: #9ca3af;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.user-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

.user-card .btn-icon {
    flex: 1;
    padding: 0.625rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.user-card .btn-icon:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
}

.user-card .btn-icon.danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.user-card .btn-icon.danger:hover {
    background: var(--accent-danger);
    border-color: var(--accent-danger);
    color: white;
}

.user-card .btn-icon.btn-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.user-card .btn-icon.btn-success:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #10b981;
    transform: translateY(-2px);
}

.user-card .btn-icon.btn-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.user-card .btn-icon.btn-warning:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
    color: #f59e0b;
    transform: translateY(-2px);
}

.switch-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    cursor: pointer;
}

.switch-label span {
    font-weight: 500;
    color: var(--text-primary);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.empty-state p {
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .users-grid {
        grid-template-columns: 1fr;
    }
    
    
    .filter-controls .search-box,
    .filter-group {
        width: 100%;
        min-width: unset;
    }
}

@media (max-width: 390px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-value {
        font-size: 1.75rem;
    }
}

/* ========================================
   Game Management Redesign Styles
======================================== */

/* Games Grid - Override existing and enhance */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.game-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

.game-card:hover::before {
    opacity: 1;
}

.game-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
}

.game-icon-display {
    width: 72px;
    height: 72px;
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
    border-radius: 16px;
    border: 2px solid rgba(99, 102, 241, 0.3);
    flex-shrink: 0;
}

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

.game-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.game-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.625rem;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-badge.featured {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.game-badge.status-active {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.game-badge.status-inactive {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.game-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.game-category-badge.strategy {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.game-category-badge.arcade {
    background: rgba(236, 72, 153, 0.15);
    color: #f472b6;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.game-category-badge.puzzle {
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.game-category-badge.status-inactive {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-maintenance {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.game-category-badge.board {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.game-card-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.game-card-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.game-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.game-meta-item i {
    color: var(--accent-primary);
}

.game-card-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.game-card-actions button {
    flex: 1;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.game-card .btn-toggle {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.game-card .btn-toggle:hover {
    background: rgba(16, 185, 129, 0.2);
}

.game-card .btn-toggle.active {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.game-card .btn-toggle.active:hover {
    background: rgba(239, 68, 68, 0.2);
}

.game-card .btn-edit {
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.game-card .btn-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .game-card-meta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 390px) {
    .game-icon-display {
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
    }
    
    .game-card-title {
        font-size: 1.125rem;
    }
}

/* ========================================
   Room Management Styles
======================================== */

/* Game Filter Tabs */
.room-filters {
    margin: 2rem 0 1.5rem;
}

.game-filter-tabs {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.filter-tab i {
    font-size: 1.1rem;
}

.filter-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(96, 165, 250, 0.3);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.filter-tab.active {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.15), rgba(168, 85, 247, 0.15));
    border-color: rgba(96, 165, 250, 0.4);
    color: var(--accent-primary);
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 20px;
    padding: 0 6px;
    background: rgba(96, 165, 250, 0.2);
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.filter-tab.active .filter-badge {
    background: rgba(96, 165, 250, 0.3);
}

/* Search and Filters Toolbar */
.rooms-toolbar,
.games-toolbar,
.users-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

/* Mobile/Tablet Toolbar Layout */
@media (max-width: 992px) {
    .rooms-toolbar,
    .games-toolbar,
    .users-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem; /* Reduced gap for tighter layout */
    }

    .search-container {
        width: 100%;
    }
    
    .filter-controls {
        width: 100%;
    }
    
    .filter-select {
        flex: 1;
    }
}

.search-container {
    flex: 1;
    min-width: 250px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-container i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 1;
}

.filter-controls {
    display: flex;
    gap: 0.75rem;
}

.search-input,
.filter-select {
    box-sizing: border-box;
    margin: 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-size: 0.95rem; /* Slightly larger font */
    line-height: 1.5;
    display: block;
    transition: all 0.3s ease;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem; /* Comfortable padding */
}

.filter-select {
    padding: 0.75rem 2.5rem 0.75rem 1rem; /* Comfortable padding */
    min-width: 100px; /* Reduced from 140px to allow shrinking on small screens */
    flex: 1; /* Always share available width equally */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23a5b4fc%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 0.65em auto;
    cursor: pointer;
}

.search-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.filter-select:hover {
    border-color: rgba(96, 165, 250, 0.3);
    background-color: rgba(255, 255, 255, 0.05);
}

.filter-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Rooms Table Container */
.rooms-table-container {
    position: relative;
    min-height: 400px;
    max-width: 100%; /* Ensure container doesn't overflow parent */
}

.table-responsive {
    width: 100%;
    max-width: 100%; /* Force scroll container to respect parent width */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    display: block; /* Ensure block behavior */
}

/* Ensure table maintains minimum width on small screens */
@media (max-width: 768px) {
    .rooms-table {
        min-width: 800px;
    }
}

.rooms-table {
    width: 100%;
}

.rooms-table thead {
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
    z-index: 10;
}

.rooms-table thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
}

.rooms-table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}

.rooms-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.01);
}

.rooms-table tbody tr:hover {
    background: rgba(96, 165, 250, 0.05);
    transform: scale(1.002);
}

.rooms-table tbody td {
    padding: 1rem;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.rooms-table .badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-chess {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.badge-bagh-chal {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.badge-ludo {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-public {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.badge-private {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

/* Room Status Badges */
.badge-status-active {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.badge-status-inactive {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.badge-status-archived {
    background: rgba(107, 114, 128, 0.15);
    color: #9ca3af;
}

/* Loading State */
.table-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
}

.table-loading i {
    font-size: 2rem;
    color: var(--accent-primary);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.empty-state small {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .game-filter-tabs {
        gap: 0.5rem;
    }
    
    .filter-tab {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .rooms-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-container {
        min-width: 100%;
    }
    
    .filter-controls {
        width: 100%;
    }
    
    .filter-select {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .game-filter-tabs {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 columns */
    }
    
    .filter-tab {
        justify-content: space-between;
        width: 100%;
    }
    
    .rooms-table {
        font-size: 0.85rem;
    }
    
    .rooms-table thead th,
    .rooms-table tbody td {
        padding: 0.75rem 0.5rem;
    }
    
    /* Very small screens - single column for filter tabs */
    @media (max-width: 390px) {
        .game-filter-tabs {
            grid-template-columns: 1fr; /* 1 column on very small screens */
        }
    }    
    .rooms-table thead th:first-child,
    .rooms-table tbody td:first-child {
        display: none; /* Hide ID column on mobile */
    }
}

/* ========================================
   Testimonials Management Styles
   ======================================== */

/* Rank Badges */
.badge-rank {
    padding: 0.35rem 0.85rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.badge-rank.rank-player {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-rank.rank-pro {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-rank.rank-master {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-rank.rank-grandmaster {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(234, 88, 12, 0.2));
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.1);
}

/* Rating Stars */
.rating-stars {
    display: flex;
    gap: 0.2rem;
}

.rating-stars i {
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.rating-stars i.text-warning {
    color: #fbbf24;
    text-shadow: 0 0 5px rgba(251, 191, 36, 0.4);
}

.rating-stars i.text-muted {
    color: rgba(255, 255, 255, 0.1);
}

.rating-stars:hover i {
    transform: scale(1.1);
}

/* User Info Cell */
.user-info-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info-cell .user-avatar-small {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.user-info-cell .user-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

/* Message Cell */
.message-cell {
    max-width: 300px;
    color: var(--text-secondary);
    line-height: 1.5;
    position: relative;
    cursor: default;
}

/* Table Enhancements */
.testimonials-table td {
    vertical-align: middle;
    padding: 1.25rem 1.5rem;
}

.testimonials-table tr {
    transition: background 0.3s ease;
}

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