/* ============================================
   NEUROFORGE ADMIN PANEL - CYBERPUNK THEME
   ============================================ */

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

:root {
    --bg-primary: #000814;
    --bg-secondary: #001a1f;
    --bg-card: rgba(0, 31, 36, 0.8);
    --border-color: rgba(0, 255, 195, 0.2);
    --teal: #00ffc3;
    --teal-dark: #00d4a3;
    --cyan: #00e1ff;
    --text-primary: #eafffb;
    --text-secondary: #9df7ea;
    --text-muted: #5a8f87;
    --danger: #ff4d6d;
    --warning: #ffba08;
    --success: #06ffa5;
}

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

.screen {
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

/* ============================================
   ANIMATED BACKGROUND
   ============================================ */
.ai-bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at top, #0a1f2e 0%, #000814 50%, #000000 100%);
}

#neural-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

.ai-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ai-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--teal);
    border-radius: 50%;
    animation: float-particle linear infinite;
}

@keyframes float-particle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(var(--tx));
        opacity: 0;
    }
}

.ai-grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 255, 195, 0.02) 0px,
            transparent 1px,
            transparent 50px,
            rgba(0, 255, 195, 0.02) 51px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(0, 255, 195, 0.02) 0px,
            transparent 1px,
            transparent 50px,
            rgba(0, 255, 195, 0.02) 51px
        );
    animation: grid-scan 20s linear infinite;
}

@keyframes grid-scan {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(50px);
    }
}

.data-stream {
    position: absolute;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: rgba(0, 255, 195, 0.25);
    white-space: nowrap;
    animation: stream-flow 12s linear infinite;
    letter-spacing: 1px;
}

@keyframes stream-flow {
    0% {
        transform: translateX(100vw);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateX(-100%);
        opacity: 0;
    }
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: float-orb 25s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float-orb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(25vw, -15vh) scale(1.1);
    }
    66% {
        transform: translate(-15vw, 25vh) scale(0.9);
    }
}

/* ============================================
   LOGIN SCREEN
   ============================================ */
#loginScreen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.login-wrapper {
    width: 100%;
    max-width: 480px;
}

.login-container {
    background: rgba(0, 26, 31, 0.7);
    backdrop-filter: blur(20px);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 
        0 0 60px rgba(0, 255, 195, 0.1),
        inset 0 0 40px rgba(0, 255, 195, 0.02);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--teal), transparent);
    animation: border-flow 3s linear infinite;
}

@keyframes border-flow {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.login-visual {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.neural-icon {
    width: 100px;
    height: 100px;
    animation: rotate-pulse 8s linear infinite;
}

@keyframes rotate-pulse {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
}

.logo {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
}

.logo-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

.bracket {
    color: var(--teal);
    font-weight: 700;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    z-index: 2;
}

.input-group input {
    width: 100%;
    padding: 1.2rem 1.2rem 1.2rem 3.5rem;
    background: rgba(0, 12, 15, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Space Mono', monospace;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 20px rgba(0, 255, 195, 0.2);
    background: rgba(0, 12, 15, 0.8);
}

.input-group input::placeholder {
    color: var(--text-muted);
    letter-spacing: 2px;
}

.login-btn {
    width: 100%;
    padding: 1.3rem;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    border: none;
    border-radius: 12px;
    color: #000;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 195, 0.3);
}

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

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

.login-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--success);
    animation: pulse-indicator 2s ease-in-out infinite;
}

@keyframes pulse-indicator {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

.error {
    background: rgba(255, 77, 109, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
}

/* ============================================
   ADMIN DASHBOARD LAYOUT
   ============================================ */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    width: 280px;
    background: rgba(0, 12, 15, 0.85);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

.sidebar::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--teal), transparent);
    animation: border-glow 3s ease-in-out infinite;
}

@keyframes border-glow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

.sidebar-header {
    padding: 0 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

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

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 255, 195, 0.3);
}

.logo-icon svg {
    width: 32px;
    height: 32px;
    stroke: #000;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.logo-text h2 {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.version {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(6, 255, 165, 0.1);
    border: 1px solid var(--success);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-indicator 2s ease-in-out infinite;
}

.sidebar-nav {
    flex: 1;
    padding: 2rem 0;
}

.nav-section {
    margin-bottom: 2rem;
}

.nav-label {
    padding: 0 1.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.sidebar-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--teal);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.sidebar-link:hover {
    background: rgba(0, 255, 195, 0.05);
    color: var(--teal);
}

.sidebar-link:hover::before {
    transform: scaleY(1);
}

.sidebar-link.active {
    background: rgba(0, 255, 195, 0.1);
    color: var(--teal);
}

.sidebar-link.active::before {
    transform: scaleY(1);
}

.sidebar-link.danger:hover {
    background: rgba(255, 77, 109, 0.1);
    color: var(--danger);
}

.sidebar-link.danger:hover::before {
    background: var(--danger);
}

.link-icon {
    font-size: 1.2rem;
}

.link-indicator {
    margin-left: auto;
    width: 6px;
    height: 6px;
    background: var(--teal);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-link:hover .link-indicator,
.sidebar-link.active .link-indicator {
    opacity: 1;
}

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

.stats-quick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-mini {
    background: rgba(0, 255, 195, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.8rem;
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--teal);
}

.logout-btn {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 77, 109, 0.1);
    border: 1px solid var(--danger);
    border-radius: 10px;
    color: var(--danger);
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 77, 109, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 77, 109, 0.2);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    flex: 1;
    padding: 2rem 3rem;
    overflow-y: auto;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.breadcrumb-home {
    font-size: 1.2rem;
}

.breadcrumb-sep {
    color: var(--text-muted);
}

.breadcrumb-current {
    color: var(--teal);
    font-weight: 600;
    letter-spacing: 1px;
}

.time-display {
    font-family: 'Space Mono', monospace;
    font-size: 1.2rem;
    color: var(--teal);
    padding: 0.5rem 1.5rem;
    background: rgba(0, 255, 195, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    letter-spacing: 2px;
}

.section-title {
    margin-bottom: 2rem;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ============================================
   GENERATE TOKEN SECTION
   ============================================ */
.form-container {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.token-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
}

.label-icon {
    font-size: 1.1rem;
}

.form-group input {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(0, 12, 15, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Space Mono', monospace;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--teal);
    background: rgba(0, 12, 15, 0.8);
    box-shadow: 0 0 15px rgba(0, 255, 195, 0.15);
}

.input-underline {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--teal), transparent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.form-group input:focus + .input-underline {
    transform: scaleX(1);
}

.btn-generate {
    width: 100%;
    padding: 1.3rem;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    border: none;
    border-radius: 12px;
    color: #000;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 195, 0.3);
}

.btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.6s ease;
}

.btn-generate:hover .btn-glow {
    transform: scale(1);
}

/* Token Result */
.token-result {
    background: rgba(6, 255, 165, 0.05);
    border: 1px solid var(--success);
    border-radius: 20px;
    padding: 2rem;
    animation: slideIn 0.5s ease;
}

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

.token-result-header h3 {
    color: var(--success);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.token-display {
    margin-bottom: 1.5rem;
}

.token-box {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.token-box code {
    flex: 1;
    background: rgba(0, 12, 15, 0.8);
    padding: 1.2rem;
    border-radius: 10px;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: var(--teal);
    border: 1px solid var(--border-color);
    word-break: break-all;
    line-height: 1.6;
}

.copy-btn {
    width: 50px;
    background: var(--success);
    border: none;
    border-radius: 10px;
    color: #000;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(6, 255, 165, 0.4);
}

.token-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.detail-item {
    background: rgba(0, 255, 195, 0.05);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.detail-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.detail-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--success);
    font-family: 'Space Mono', monospace;
}

/* ============================================
   USERS MANAGEMENT SECTION
   ============================================ */
.users-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
}

.btn-refresh {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 17px 1rem;
    background: rgba(0, 255, 195, 0.1);
    border: 1px solid var(--teal);
    border-radius: 10px;
    color: var(--teal);
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-refresh:hover {
    background: rgba(0, 255, 195, 0.2);
    transform: translateY(-2px);
}

.users-count {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.count-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.count-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--teal);
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
}

/* Loading State */
.loading-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    gap: 1.5rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 255, 195, 0.1);
    border-top-color: var(--teal);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-state p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    letter-spacing: 2px;
}

/* User Cards */
.user-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.8rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.user-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--cyan));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.user-card:hover::before {
    transform: scaleX(1);
}

.user-card:hover {
    border-color: var(--teal);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 255, 195, 0.15);
}

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

.user-id {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Space Mono', monospace;
}

.status-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.status-badge.active {
    background: rgba(6, 255, 165, 0.15);
    color: var(--success);
    border: 1px solid var(--success);
}

.status-badge.depleted {
    background: rgba(255, 77, 109, 0.15);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.status-badge.warning {
    background: rgba(255, 186, 8, 0.15);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.user-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--teal);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(0, 255, 195, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success), var(--teal));
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(6, 255, 165, 0.5);
}

.progress-fill.warning {
    background: linear-gradient(90deg, var(--warning), #ff9500);
    box-shadow: 0 0 10px rgba(255, 186, 8, 0.5);
}

.progress-fill.danger {
    background: linear-gradient(90deg, var(--danger), #ff1744);
    box-shadow: 0 0 10px rgba(255, 77, 109, 0.5);
}

.user-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.user-actions button {
    flex: 1;
    min-width: 100px;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-actions .reset {
    background: rgba(0, 225, 255, 0.1);
    color: var(--cyan);
    border: 1px solid var(--cyan);
}

.user-actions .reset:hover {
    background: rgba(0, 225, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 225, 255, 0.2);
}

.user-actions .update {
    background: rgba(6, 255, 165, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
}

.user-actions .update:hover {
    background: rgba(6, 255, 165, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(6, 255, 165, 0.2);
}

.user-actions .terminate {
    background: rgba(255, 77, 109, 0.1);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.user-actions .terminate:hover {
    background: rgba(255, 77, 109, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 77, 109, 0.2);
}

.user-actions .remove {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    border: 1px solid #475569;
}

.user-actions .remove:hover {
    background: rgba(148, 163, 184, 0.2);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .users-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

@media (max-width: 992px) {
    .admin-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .main-content {
        padding: 2rem 1.5rem;
    }

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

@media (max-width: 768px) {
    .token-form .form-row {
        grid-template-columns: 1fr;
    }

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

    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* ============================================
   USERS TOOLBAR
   ============================================ */
.users-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    flex-wrap: wrap;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Search Box */
.search-box {
    position: relative;
    min-width: 300px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    pointer-events: none;
}

#userSearch {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 3rem;
    background: rgba(0, 12, 15, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: 'Space Mono', monospace;
    transition: all 0.3s ease;
}

#userSearch:focus {
    outline: none;
    border-color: var(--teal);
    background: rgba(0, 12, 15, 0.9);
    box-shadow: 0 0 15px rgba(0, 255, 195, 0.15);
}

#userSearch::placeholder {
    color: var(--text-muted);
}

/* Filter Button */
.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.5rem;
    background: rgba(0, 255, 195, 0.1);
    border: 1px solid var(--teal);
    border-radius: 10px;
    color: var(--teal);
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.filter-btn:hover {
    background: rgba(0, 255, 195, 0.2);
    transform: translateY(-2px);
}

.filter-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-weight: 700;
}

/* View Toggle */
.view-toggle {
    display: flex;
    background: rgba(0, 12, 15, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.view-btn {
    padding: 0.9rem 1.2rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background: rgba(0, 255, 195, 0.1);
    color: var(--teal);
}

.view-btn.active {
    background: var(--teal);
    color: #000;
}

.count-total {
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* ============================================
   FILTER PANEL
   ============================================ */
.filter-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    animation: slideDown 0.3s ease;
}

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

.filter-section {
    margin-bottom: 1.5rem;
}

.filter-section:last-of-type {
    margin-bottom: 1rem;
}

.filter-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
}

.filter-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(0, 255, 195, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.filter-option:hover {
    background: rgba(0, 255, 195, 0.1);
    border-color: var(--teal);
}

.filter-option input[type="checkbox"] {
    accent-color: var(--teal);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Filter Range */
.filter-range {
    position: relative;
    padding: 1rem 0;
}

.filter-range input[type="range"] {
    width: 100%;
    height: 6px;
    background: rgba(0, 255, 195, 0.1);
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 0.5rem;
}

.filter-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--teal);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 195, 0.5);
}

.filter-range input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--teal);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 195, 0.5);
    border: none;
}

.range-values {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--teal);
    font-weight: 600;
    font-family: 'Space Mono', monospace;
}

/* Filter Inputs */
.filter-inputs {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filter-inputs input[type="number"] {
    flex: 1;
    padding: 0.8rem 1rem;
    background: rgba(0, 12, 15, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Space Mono', monospace;
}

.filter-inputs input[type="number"]:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 10px rgba(0, 255, 195, 0.15);
}

.filter-inputs span {
    color: var(--text-muted);
}

/* Filter Actions */
.filter-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.btn-clear {
    padding: 0.8rem 1.5rem;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid #475569;
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-clear:hover {
    background: rgba(148, 163, 184, 0.2);
}

.btn-apply {
    padding: 0.8rem 1.5rem;
    background: var(--teal);
    border: none;
    border-radius: 8px;
    color: #000;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 195, 0.3);
}

/* ============================================
   TABLE VIEW
   ============================================ */
.users-table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
}

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

.users-table thead {
    background: rgba(0, 255, 195, 0.05);
}

.users-table th {
    padding: 1.2rem 1rem;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--teal);
    letter-spacing: 1px;
    border-bottom: 2px solid var(--border-color);
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.users-table th:hover {
    background: rgba(0, 255, 195, 0.1);
}

.sort-icon {
    margin-left: 0.3rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.users-table tbody tr:hover {
    background: rgba(0, 255, 195, 0.05);
}

.users-table td {
    padding: 1.2rem 1rem;
    color: var(--text-secondary);
    font-family: 'Space Mono', monospace;
}

.users-table .table-userid {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.users-table .table-stat {
    font-weight: 600;
    color: var(--teal);
    font-size: 1.1rem;
}

.users-table .table-percentage {
    font-weight: 700;
}

.users-table .table-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.users-table .table-actions button {
    padding: 0.5rem 0.8rem;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.users-table .table-actions .reset {
    background: rgba(0, 225, 255, 0.1);
    color: var(--cyan);
    border: 1px solid var(--cyan);
}

.users-table .table-actions .update {
    background: rgba(6, 255, 165, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
}

.users-table .table-actions .terminate {
    background: rgba(255, 77, 109, 0.1);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.users-table .table-actions .remove {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    border: 1px solid #475569;
}

.users-table .table-actions button:hover {
    transform: translateY(-1px);
    opacity: 0.8;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 1400px) {
    .users-table {
        font-size: 0.9rem;
    }
    
    .users-table th,
    .users-table td {
        padding: 1rem 0.8rem;
    }
}

@media (max-width: 992px) {
    .users-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .toolbar-left,
    .toolbar-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .search-box {
        min-width: 100%;
    }
    
    .users-table-container {
        overflow-x: auto;
    }
    
    .users-table {
        min-width: 900px;
    }
}

/* ============================================
   REMOVED ACCOUNTS STYLING
   ============================================ */

/* Removed status badge */
.status-badge.removed {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
    border: 1px solid #64748b;
}

/* Removed user card styling */
.user-card.card-removed {
    opacity: 0.6;
    border-color: #475569;
}

.user-card.card-removed:hover {
    opacity: 0.8;
    border-color: #64748b;
}

/* Removed table row styling */
.users-table tbody tr.row-removed {
    opacity: 0.6;
    background: rgba(148, 163, 184, 0.05);
}

.users-table tbody tr.row-removed:hover {
    opacity: 0.8;
}

/* Disabled buttons for removed accounts */
.user-actions.buttons-disabled button {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.user-actions button[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}

.users-table .table-actions button[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Removed notice */
.removed-notice {
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid #64748b;
    border-radius: 8px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Hide removed toggle in filter panel */
.filter-toggle-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    background: rgba(148, 163, 184, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.filter-toggle-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
}

.filter-toggle-label input[type="checkbox"] {
    accent-color: var(--teal);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.filter-toggle-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

/* Export button */
.export-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 17px 1rem;
    background: rgba(0, 255, 195, 0.1);
    border: 1px solid var(--teal);
    border-radius: 10px;
    color: var(--teal);
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.export-btn:hover {
  background: var(--teal-hover, #009688);
  transform: scale(1.03);
}

.export-btn:active {
  transform: scale(0.97);
}

/* Import button */
.import-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 17px 1rem;
    background: rgba(0, 255, 195, 0.1);
    border: 1px solid var(--teal);
    border-radius: 10px;
    color: var(--teal);
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.import-btn:hover {
  background: #2563eb;
  transform: scale(1.03);
}

/* Modal */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal.hidden { display: none; }

.modal-content {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 20px;
  color: #fff;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.upload-area {
  margin-top: 15px;
  border: 2px dashed #475569;
  padding: 30px;
  text-align: center;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.upload-area:hover {
  border-color: #38bdf8;
}

.progress-bar {
  width: 100%;
  background: #334155;
  height: 10px;
  border-radius: 6px;
  margin-top: 10px;
}

.progress-fill {
  height: 10px;
  width: 0%;
  background: #22c55e;
  border-radius: 6px;
  transition: width 0.4s ease;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.result-table th, .result-table td {
  border: 1px solid #475569;
  padding: 6px 10px;
  text-align: left;
}

.result-table th {
  background: #334155;
}

.error-msg {
  background: rgba(220, 38, 38, 0.1);
  color: #f87171;
  border: 1px solid #b91c1c;
  padding: 10px;
  border-radius: 8px;
  margin-top: 10px;
}

.modal-actions {
  text-align: right;
  margin-top: 20px;
}

.close-btn {
  background: #475569;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.close-btn:hover {
  background: #64748b;
}

.download-btn, .example-btn {
  background: #10b981;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  margin-top: 10px;
}

/* ====================
   Analytics Section
==================== */
.analytics-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 20px;
}

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

/* KPI Cards */
.kpi-card {
  grid-column: span 3;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 16px;
  backdrop-filter: blur(4px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 10px rgba(0,255,195,0.15);
}
.kpi-label {
  font-size: 13px;
  color: #9aa7b8;
  margin-bottom: 4px;
}
.kpi-value {
  font-size: 26px;
  font-weight: 700;
  color: #00ffc3;
}

/* Chart cards */
.chart-card {
    display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 320px;
  max-height: 360px;
  overflow: hidden;
grid-column: span 6;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 16px;
  backdrop-filter: blur(4px);
}

.chart-card canvas {
  width: 100% !important;
  height: 100% !important;
  max-height: 320px;
  object-fit: contain;
}

.chart-title {
  color: #e5eef7;
  font-size: 14px;
  margin-bottom: 10px;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
  .kpi-card { grid-column: span 6; }
  .chart-card { grid-column: span 12; }
}
@media (max-width: 640px) {
  .kpi-card, .chart-card { grid-column: span 12; }
}

/* ====================
   System Logs Section
==================== */
/* =====================================
   SYSTEM LOGS - CYBERPUNK TIMELINE
   ===================================== */

/* Control Bar */
.logs-control-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.logs-filters {
  display: flex;
  gap: 16px;
  flex: 1;
  align-items: center;
  flex-wrap: wrap;
}

/* Search Container */
.search-container {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(0, 12, 15, 0.8);
  border: 1px solid rgba(0, 255, 195, 0.2);
  border-radius: 10px;
  padding: 0 12px;
  transition: all 0.3s ease;
  min-width: 300px;
}

.search-container:focus-within {
  border-color: #00ffc3;
  box-shadow: 0 0 15px rgba(0, 255, 195, 0.3);
}

.search-icon {
  font-size: 16px;
  opacity: 0.6;
  margin-right: 8px;
}

.search-container input {
  flex: 1;
  background: transparent;
  border: none;
  color: #e2e8f0;
  font-size: 14px;
  padding: 10px 8px;
  outline: none;
  font-family: 'Rajdhani', sans-serif;
  padding-left: 25px;
}

.search-container input::placeholder {
  color: #64748b;
}

.clear-search {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
  opacity: 0;
  transition: opacity 0.2s;
}

.search-container:hover .clear-search,
.clear-search.visible {
  opacity: 1;
}

.clear-search:hover {
  color: #ef4444;
}

/* Filter Chips */
.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  user-select: none;
}

.filter-chip:hover {
  background: rgba(0, 255, 195, 0.1);
  border-color: rgba(0, 255, 195, 0.3);
  color: #00ffc3;
  transform: translateY(-2px);
}

.filter-chip.active {
  background: linear-gradient(135deg, rgba(0, 255, 195, 0.2), rgba(0, 225, 255, 0.15));
  border-color: #00ffc3;
  color: #00ffc3;
  box-shadow: 0 0 15px rgba(0, 255, 195, 0.3);
}

.chip-icon {
  font-size: 14px;
}

.chip-count {
  background: rgba(0, 255, 195, 0.2);
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Space Mono', monospace;
}

/* Action Buttons */
.logs-actions {
  display: flex;
  gap: 8px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #cbd5e1;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Rajdhani', sans-serif;
}

.action-btn:hover {
  transform: translateY(-2px);
}

.refresh-btn:hover {
  background: rgba(0, 255, 195, 0.15);
  border-color: rgba(0, 255, 195, 0.4);
  color: #00ffc3;
}

.export-btn:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: #3b82f6;
}

.clear-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.btn-icon {
  font-size: 16px;
}

/* Stats Bar */
.logs-stats-bar {
  display: flex;
  gap: 24px;
  padding: 16px 20px;
  background: rgba(0, 12, 15, 0.6);
  border: 1px solid rgba(0, 255, 195, 0.15);
  border-radius: 12px;
  margin-bottom: 24px;
}

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

.stat-label {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.stat-value {
  font-size: 18px;
  color: #00ffc3;
  font-weight: 700;
  font-family: 'Space Mono', monospace;
}

/* Timeline Container */
.logs-timeline-container {
  position: relative;
  max-height: 600px;
  overflow-y: auto;
  background: rgba(0, 12, 15, 0.4);
  border: 1px solid rgba(0, 255, 195, 0.15);
  border-radius: 12px;
  padding: 20px;
}

/* Custom Scrollbar */
.logs-timeline-container::-webkit-scrollbar {
  width: 8px;
}

.logs-timeline-container::-webkit-scrollbar-track {
  background: rgba(0, 12, 15, 0.6);
  border-radius: 10px;
}

.logs-timeline-container::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 195, 0.3);
  border-radius: 10px;
}

.logs-timeline-container::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 195, 0.5);
}

/* Empty State */
.logs-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.logs-empty-state.hidden {
  display: none;
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.logs-empty-state h3 {
  color: #cbd5e1;
  font-size: 20px;
  margin-bottom: 8px;
}

.logs-empty-state p {
  color: #64748b;
  font-size: 14px;
}

/* Log Entry */
.log-entry {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid #00ffc3;
  border-radius: 8px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
  animation: slideIn 0.3s ease;
}

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

.log-entry:hover {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(0, 255, 195, 0.3);
  transform: translateX(4px);
  box-shadow: -4px 0 15px rgba(0, 255, 195, 0.2);
}

.log-entry.hidden {
  display: none;
}

/* Log Type Colors */
.log-entry[data-type="admin"] {
  border-left-color: #00ffc3;
}

.log-entry[data-type="system"] {
  border-left-color: #3b82f6;
}

.log-entry[data-type="user"] {
  border-left-color: #a855f7;
}

.log-entry[data-type="error"] {
  border-left-color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

/* Log Icon */
.log-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 195, 0.1);
  border: 1px solid rgba(0, 255, 195, 0.3);
  border-radius: 10px;
  font-size: 20px;
  flex-shrink: 0;
}

.log-entry[data-type="admin"] .log-icon {
  background: rgba(0, 255, 195, 0.1);
  border-color: rgba(0, 255, 195, 0.3);
}

.log-entry[data-type="system"] .log-icon {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
}

.log-entry[data-type="user"] .log-icon {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.3);
}

.log-entry[data-type="error"] .log-icon {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
}

/* Log Content */
.log-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.log-action {
  font-size: 15px;
  font-weight: 700;
  color: #e2e8f0;
}

.log-timestamp {
  font-size: 12px;
  color: #64748b;
  font-family: 'Space Mono', monospace;
}

.log-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.log-user, .log-type {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #94a3b8;
}

.log-user span:first-child,
.log-type span:first-child {
  opacity: 0.6;
}

.log-user span:last-child {
  color: #00ffc3;
  font-weight: 600;
}

.log-details {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.6;
  padding: 8px 12px;
  background: rgba(0, 12, 15, 0.4);
  border-radius: 6px;
  margin-top: 4px;
  font-family: 'Space Mono', monospace;
  word-break: break-word;
}

/* Highlight Search Results */
.highlight {
  background: rgba(255, 186, 8, 0.3);
  color: #ffba08;
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 700;
}

/* Loading State */
.logs-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 16px;
}

.logs-loading.hidden {
  display: none;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 255, 195, 0.2);
  border-top-color: #00ffc3;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.logs-loading p {
  color: #64748b;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
  .logs-control-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .logs-filters {
    flex-direction: column;
  }

  .search-container {
    min-width: 100%;
  }

  .logs-stats-bar {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .log-entry {
    flex-direction: column;
  }

  .log-icon {
    align-self: flex-start;
  }

  .filter-chips {
    width: 100%;
  }

  .filter-chip {
    flex: 1;
    justify-content: center;
  }
}

/* =====================================
   DUAL SERVER MONITOR - CYBERPUNK EDITION
   ===================================== */

.monitor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.system-status-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: linear-gradient(135deg, rgba(0,255,195,0.15), rgba(0,225,255,0.1));
  border: 1px solid rgba(0,255,195,0.3);
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #00ffc3;
  box-shadow: 0 0 20px rgba(0,255,195,0.2);
}

.status-pulse {
  width: 12px;
  height: 12px;
  background: #00ffc3;
  border-radius: 50%;
  box-shadow: 0 0 15px #00ffc3;
  animation: pulse-status 2s infinite ease-in-out;
}

@keyframes pulse-status {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.refresh-btn-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(0,255,195,0.1);
  border: 1px solid rgba(0,255,195,0.3);
  border-radius: 10px;
  color: #00ffc3;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.refresh-btn-header:hover {
  background: rgba(0,255,195,0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,255,195,0.3);
}

.refresh-icon {
  font-size: 18px;
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Dual Server Grid */
.servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

/* Server Cards */
.server-card {
  position: relative;
  background: linear-gradient(145deg, rgba(15,23,42,0.95), rgba(15,23,42,0.85));
  border: 1px solid rgba(0,255,195,0.2);
  border-radius: 20px;
  padding: 24px;
  overflow: hidden;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
}

.server-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #00ffc3, #00e1ff);
  opacity: 0.5;
  transition: opacity 0.3s;
}

.server-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0,255,195,0.2);
  border-color: rgba(0,255,195,0.4);
}

.server-card:hover::before {
  opacity: 1;
  box-shadow: 0 2px 15px rgba(0,255,195,0.6);
}

.admin-card::before {
  background: linear-gradient(90deg, #00ffc3, #06ffa5);
}

.backend-card::before {
  background: linear-gradient(90deg, #00e1ff, #3b82f6);
}

/* Card Header */
.card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.server-icon {
  font-size: 48px;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(0,255,195,0.2), transparent);
  border-radius: 12px;
  border: 1px solid rgba(0,255,195,0.3);
}

.server-info h3 {
  font-size: 20px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.server-subtitle {
  display: flex;
  align-items: center;
  gap: 12px;
}

.port-badge {
  padding: 4px 10px;
  background: rgba(0,255,195,0.15);
  border: 1px solid rgba(0,255,195,0.3);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #00ffc3;
  letter-spacing: 1px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00ffc3;
  box-shadow: 0 0 10px #00ffc3;
  animation: pulse-status 2s infinite;
}

.status-indicator.offline .status-dot {
  background: #ef4444;
  box-shadow: 0 0 10px #ef4444;
}

.status-indicator.offline .status-text {
  color: #ef4444;
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.metric-card {
  background: rgba(0,12,15,0.6);
  border: 1px solid rgba(0,255,195,0.15);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.3s ease;
}

.metric-card:hover {
  background: rgba(0,12,15,0.8);
  border-color: rgba(0,255,195,0.3);
  transform: translateY(-2px);
}

.metric-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.metric-icon {
  font-size: 16px;
}

.metric-value {
  font-size: 28px;
  font-weight: 700;
  color: #00ffc3;
  font-family: 'Space Mono', monospace;
  margin-bottom: 8px;
}

.connection-count {
  font-size: 32px;
}

.connection-label {
  font-size: 12px;
  color: #64748b;
  margin-left: 6px;
}

.uptime-value {
  font-size: 24px;
  letter-spacing: 2px;
}

.metric-bar {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 8px;
}

.metric-fill {
  height: 100%;
  background: linear-gradient(90deg, #00ffc3, #00e1ff);
  border-radius: 10px;
  transition: width 0.5s ease;
  box-shadow: 0 0 10px rgba(0,255,195,0.5);
}

.metric-status {
  font-size: 11px;
  color: #64748b;
  margin-top: 6px;
  text-transform: lowercase;
}

.metric-status.connected {
  color: #00ffc3;
  font-weight: 600;
}

.metric-status.disconnected {
  color: #ef4444;
  font-weight: 600;
}

/* Card Footer */
.card-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-label {
  font-size: 10px;
  color: #64748b;
  letter-spacing: 1px;
}

.footer-value {
  font-size: 13px;
  font-weight: 700;
  color: #cbd5e1;
  font-family: 'Space Mono', monospace;
}

/* Connection Topology */
.connection-topology {
  background: radial-gradient(ellipse at center, rgba(0,255,195,0.05), transparent);
  border: 1px solid rgba(0,255,195,0.15);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
}

.topology-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.node {
  position: relative;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(0,255,195,0.2), rgba(0,255,195,0.05));
  border: 2px solid rgba(0,255,195,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #00ffc3;
  font-size: 14px;
  letter-spacing: 1px;
  box-shadow: 0 0 30px rgba(0,255,195,0.3);
}

.node-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(0,255,195,0.5);
  border-radius: 50%;
  animation: node-pulse 2s infinite ease-out;
}

@keyframes node-pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

.connection-beam {
  flex: 1;
  height: 4px;
  background: linear-gradient(90deg, 
    transparent,
    rgba(0,255,195,0.3) 20%,
    rgba(0,255,195,0.6) 50%,
    rgba(0,255,195,0.3) 80%,
    transparent
  );
  position: relative;
  margin: 0 32px;
  overflow: hidden;
}

.beam-flow {
  position: absolute;
  width: 100px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,255,195,0.8), transparent);
  animation: beam-flow 2s linear infinite;
}

@keyframes beam-flow {
  from { transform: translateX(-100px); }
  to { transform: translateX(calc(100% + 100px)); }
}

.connection-label {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: #64748b;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Monitor Footer */
.monitor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(0,12,15,0.6);
  border: 1px solid rgba(0,255,195,0.15);
  border-radius: 12px;
  font-size: 12px;
}

.footer-label {
  color: #64748b;
  letter-spacing: 1px;
  font-weight: 600;
}

.footer-time {
  color: #00ffc3;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  margin-left: 8px;
}

.auto-refresh-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0,255,195,0.1);
  border: 1px solid rgba(0,255,195,0.3);
  border-radius: 8px;
  color: #00ffc3;
  font-weight: 600;
}

.refresh-dot {
  width: 6px;
  height: 6px;
  background: #00ffc3;
  border-radius: 50%;
  animation: pulse-status 1.5s infinite;
}

/* Offline State */
.server-card.offline {
  opacity: 0.6;
  border-color: rgba(239,68,68,0.3);
}

.server-card.offline::before {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.server-card.offline .server-icon {
  background: radial-gradient(circle, rgba(239,68,68,0.2), transparent);
  border-color: rgba(239,68,68,0.3);
  filter: grayscale(0.5);
}

/* Responsive */
@media (max-width: 1200px) {
  .servers-grid {
    grid-template-columns: 1fr;
  }
  
  .metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .topology-line {
    flex-direction: column;
    gap: 32px;
  }
  
  .connection-beam {
    width: 4px;
    height: 80px;
    margin: 0;
  }
  
  .beam-flow {
    width: 100%;
    height: 80px;
    animation: beam-flow-vertical 2s linear infinite;
  }
  
  @keyframes beam-flow-vertical {
    from { transform: translateY(-80px); }
    to { transform: translateY(calc(100% + 80px)); }
  }
  
  .connection-label {
    top: 50%;
    left: -80px;
    transform: translateY(-50%) rotate(-90deg);
  }
}

/* ==============================
   💫 WELCOME DASHBOARD
   ============================== */

.welcome-container.single {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 160px);
  padding: 60px;
  background: transparent;/*radial-gradient(circle at 50% 50%, rgba(0,255,195,0.04), rgba(0,225,255,0.02)); */
  position: relative;
  overflow: hidden;
  text-align: center;
}

.welcome-content {
  max-width: 600px;
  color: #dffdf9;
  font-family: 'Space Mono', monospace;
  animation: fadeIn 1.5s ease-in-out;
}

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

.welcome-content h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.4rem;
  color: #00ffc3;
  margin-bottom: 10px;
  text-shadow: 0 0 15px rgba(0,255,195,0.5);
}

.welcome-content h2 {
  font-size: 1.1rem;
  font-weight: 400;
  color: #9eefff;
  margin-bottom: 20px;
}

.welcome-divider {
  width: 90px;
  height: 2px;
  background: linear-gradient(90deg, #00e1ff, #00ffc3);
  margin: 20px auto;
}

.welcome-content p {
  line-height: 1.7;
  color: #c8fdf5;
  font-size: 1rem;
  margin-bottom: 25px;
}

.ai-glow {
  color: #00ffc3;
  text-shadow: 0 0 8px #00ffc3, 0 0 15px #00e1ff;
  font-weight: bold;
}

/* 🟢 Status indicator */
.system-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  color: #00ffc3;
  margin-top: 10px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00ffc3;
  box-shadow: 0 0 10px #00ffc3, 0 0 20px #00e1ff;
  animation: pulse 1.6s infinite ease-in-out;
}

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

.system-stats {
  margin-top: 25px;
  color: #9eefff;
  font-size: 0.95rem;
}

.stat-item {
  margin-bottom: 6px;
  text-shadow: 0 0 6px rgba(0,225,255,0.3);
}

/* 🚀 Button */
.enter-btn {
  margin-top: 35px;
  padding: 12px 28px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  background: linear-gradient(135deg, #00e1ff, #00ffc3);
  border: none;
  border-radius: 12px;
  color: #001a16;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0,255,195,0.2);
  transition: all 0.3s ease;
}

.enter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0,255,195,0.5);
}

/* =====================================
   GLOBAL LIMITS SECTION
   ===================================== */

.limits-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 24px;
}

.reset-btn, .save-btn {
  padding: 10px 20px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.reset-btn {
  background: rgba(255, 186, 8, 0.15);
  border: 1px solid rgba(255, 186, 8, 0.4);
  color: #ffba08;
}

.reset-btn:hover {
  background: rgba(255, 186, 8, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 186, 8, 0.2);
}

.save-btn {
  background: linear-gradient(135deg, #00e1ff, #00ffc3);
  color: #001a16;
  box-shadow: 0 0 20px rgba(0, 255, 195, 0.2);
}

.save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 255, 195, 0.5);
}

.error-msg, .success-msg {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}

.error-msg {
  background: rgba(255, 77, 109, 0.1);
  border: 1px solid #ef4444;
  color: #ef4444;
}

.success-msg {
  background: rgba(6, 255, 165, 0.1);
  border: 1px solid #00ffc3;
  color: #00ffc3;
}

.limits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
}

.limits-group {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
  backdrop-filter: blur(4px);
}

.limits-group h3 {
  color: #00ffc3;
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 700;
}

.group-desc {
  color: #94a3b8;
  font-size: 13px;
  margin-bottom: 20px;
}

.gemini-specific {
  background: rgba(168, 85, 247, 0.05);
  border-left: 3px solid #a855f7;
  padding-left: 16px;
}

.limit-field {
  margin-bottom: 20px;
}

.limit-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.info-icon {
  font-size: 14px;
  cursor: help;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.info-icon:hover {
  opacity: 1;
}

.limit-field input {
  width: 100%;
  padding: 10px 12px;
  background: rgba(0, 12, 15, 0.8);
  border: 1px solid rgba(0, 255, 195, 0.2);
  border-radius: 6px;
  color: #e2e8f0;
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  transition: all 0.3s ease;
}

.limit-field input:focus {
  outline: none;
  border-color: #00ffc3;
  box-shadow: 0 0 12px rgba(0, 255, 195, 0.2);
}

.limit-field input.invalid {
  border-color: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.2);
}

.limit-field input.valid {
  border-color: #00ffc3;
}

.limit-info {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: #64748b;
}

.current-val {
  color: #00ffc3;
}

.default-val {
  color: #94a3b8;
}

.limit-error {
  margin-top: 6px;
  padding: 6px 10px;
  background: rgba(239, 68, 68, 0.1);
  border-left: 3px solid #ef4444;
  border-radius: 4px;
  color: #ef4444;
  font-size: 12px;
}

.validation-summary {
  background: rgba(255, 186, 8, 0.1);
  border: 1px solid rgba(255, 186, 8, 0.4);
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 24px;
}

.validation-summary h4 {
  color: #ffba08;
  font-size: 14px;
  margin-bottom: 12px;
}

.validation-summary ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.validation-summary li {
  color: #fbbf24;
  font-size: 13px;
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
}

.validation-summary li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #ffba08;
}
