/*
 * SGLPrime 2026 Ultra-Futuristic Cyberpunk & Glassmorphism Theme
 * Tailored for high-tech SaaS, dark mode mastery, and PWA responsiveness
 */

:root {
    --cyber-bg: #070a12;
    --cyber-card: rgba(15, 23, 42, 0.75);
    --cyber-border: rgba(51, 65, 85, 0.5);
    --neon-blue: #38bdf8;
    --neon-indigo: #6366f1;
    --neon-purple: #a855f7;
    --neon-emerald: #10b981;
    --neon-crimson: #ef4444;
}

/* Background Cyber Matrix */
.dark body, body.dark-mode {
    background-color: var(--cyber-bg) !important;
    background-image: 
        radial-gradient(at 0% 0%, rgba(56, 189, 248, 0.04) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(168, 85, 247, 0.04) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(99, 102, 241, 0.03) 0px, transparent 50%);
    background-attachment: fixed;
}

/* Glassmorphic Cyber Panels */
.glass-panel {
    background: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(148, 163, 184, 0.12) !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.glass-panel:hover {
    border-color: rgba(99, 102, 241, 0.3) !important;
}

.glass-card {
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.35) !important;
    box-shadow: 0 15px 35px -10px rgba(56, 189, 248, 0.15);
}

/* Neon Glow Accents */
.glow-blue {
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
}

.glow-purple {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.35);
}

.glow-emerald {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
}

/* Gradient Texts */
.text-gradient-cyan {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-purple {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-emerald {
    background: linear-gradient(135deg, #34d399 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Modern Left Tabs Navigation for Settings & Admin */
.settings-tabs-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (max-width: 1023px) {
    .settings-tabs-nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .settings-tabs-nav::-webkit-scrollbar {
        display: none;
    }
    .settings-tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

.settings-tab-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.875rem;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    color: #94a3b8;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.settings-tab-btn:hover {
    color: #f8fafc;
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(148, 163, 184, 0.15);
}

.settings-tab-btn.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9) 0%, rgba(79, 70, 229, 0.9) 100%) !important;
    border-color: rgba(96, 165, 250, 0.4) !important;
    box-shadow: 0 4px 20px -2px rgba(59, 130, 246, 0.4) !important;
}

.settings-tab-btn.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 25%;
    bottom: 25%;
    width: 3px;
    border-radius: 9999px;
    background: #60a5fa;
    box-shadow: 0 0 10px #60a5fa;
}

@media (max-width: 1023px) {
    .settings-tab-btn.active::before {
        left: 20%;
        right: 20%;
        top: auto;
        bottom: 0;
        width: 60%;
        height: 3px;
    }
}

/* Sci-fi Futuristic Inputs */
.cyber-input {
    background: rgba(2, 6, 23, 0.7) !important;
    border: 1px solid rgba(51, 65, 85, 0.8) !important;
    color: #f1f5f9 !important;
    border-radius: 0.75rem !important;
    padding: 0.625rem 1rem !important;
    transition: all 0.2s ease !important;
}

.cyber-input:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.25) !important;
    outline: none !important;
}

/* Cyber Terminal Windows */
.cyber-terminal {
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.cyber-terminal-header {
    background: #0b1120;
    border-bottom: 1px solid #1e293b;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Futuristic Table */
.cyber-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.cyber-table th {
    background: rgba(15, 23, 42, 0.9);
    padding: 0.875rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    border-bottom: 1px solid rgba(51, 65, 85, 0.6);
}

.cyber-table td {
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
    color: #cbd5e1;
    transition: background 0.15s ease;
}

.cyber-table tr:hover td {
    background: rgba(30, 41, 59, 0.35);
    color: #f8fafc;
}

/* Sci-fi Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(2, 6, 23, 0.4);
}
::-webkit-scrollbar-thumb {
    background: rgba(71, 85, 105, 0.6);
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.8);
}
