/* 
   ==========================================================================
   NEON GLASS THEME (Theme 2) - Premium Glowing Borders Edition
   ========================================================================== 
*/

body.theme-neon {
    --bg-dark: #0f172a; /* Deep Slate */
    --bg-card: rgba(15, 23, 42, 0.6);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #3b82f6; 
    --primary-hover: #2563eb;
    
    --neon-blue: #38bdf8;
    --neon-green: #4ade80;
    --neon-red: #f87171;
    --neon-orange: #fbbf24;
    --neon-purple: #c084fc;
    --neon-yellow: #facc15;
    --neon-cyan: #22d3ee;
    
    --table-username: #ffffff;
    --table-password: #ffffff;
    --status-danger: #f87171;

    background: radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 100% 100%, rgba(192, 132, 252, 0.08) 0%, transparent 40%),
                #020617;
    color: var(--text-main);
}

/* --- Global Elements Overrides --- */
.theme-neon .glass {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

/* --- Stat Cards (Glow Border Edition) --- */
.theme-neon .stat-card {
    border-radius: 14px;
    padding: 1.2rem 1.5rem; /* More compact */
    background: rgba(15, 23, 42, 0.3);
    position: relative;
    transition: all 0.3s ease;
    border: 1.5px solid rgba(255, 255, 255, 0.1); /* Fallback */
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: visible;
    z-index: 1;
}

.theme-neon .stat-card.clickable {
    cursor: pointer;
    user-select: none;
}

.theme-neon .stat-card.clickable:active {
    transform: scale(0.98);
}

/* Base glow effect */
.theme-neon .stat-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 14px;
    padding: 1.5px; 
    background: linear-gradient( var(--neon-blue), transparent); /* Fallback */
    -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); /* Standard */
    mask-composite: exclude; /* Standard for XOR */
    pointer-events: none;
    opacity: 0.8;
}

/* Specific Glowing Borders */
.theme-neon .stat-card.blue   { border-color: var(--neon-blue);   box-shadow: 0 0 15px rgba(56, 189, 248, 0.2); }
.theme-neon .stat-card.green  { border-color: var(--neon-green);  box-shadow: 0 0 15px rgba(74, 222, 128, 0.2); }
.theme-neon .stat-card.red    { border-color: var(--neon-red);    box-shadow: 0 0 15px rgba(248, 113, 113, 0.2); }
.theme-neon .stat-card.orange { border-color: var(--neon-orange); box-shadow: 0 0 15px rgba(251, 191, 36, 0.2); }
.theme-neon .stat-card.purple { border-color: var(--neon-purple); box-shadow: 0 0 15px rgba(192, 132, 252, 0.2); }
.theme-neon .stat-card.yellow { border-color: var(--neon-yellow); box-shadow: 0 0 15px rgba(250, 204, 21, 0.2); }
.theme-neon .stat-card.cyan   { border-color: var(--neon-cyan);   box-shadow: 0 0 15px rgba(34, 211, 238, 0.2); }

/* Value Tweaks */
.theme-neon .stat-value {
    font-size: 2rem;
    font-weight: 600;
    margin: 5px 0;
}

/* Icon Styles */
.theme-neon .stat-icon-bg {
    background: transparent;
    border: none;
    box-shadow: none;
    font-size: 1.8rem;
    opacity: 0.8;
}

.theme-neon .stat-card.blue .stat-icon-bg   { color: var(--neon-blue);   filter: drop-shadow(0 0 8px var(--neon-blue)); }
.theme-neon .stat-card.green .stat-icon-bg  { color: var(--neon-green);  filter: drop-shadow(0 0 8px var(--neon-green)); }
.theme-neon .stat-card.red .stat-icon-bg    { color: var(--neon-red);    filter: drop-shadow(0 0 8px var(--neon-red)); }
.theme-neon .stat-card.orange .stat-icon-bg { color: var(--neon-orange); filter: drop-shadow(0 0 8px var(--neon-orange)); }
.theme-neon .stat-card.purple .stat-icon-bg { color: var(--neon-purple); filter: drop-shadow(0 0 8px var(--neon-purple)); }
.theme-neon .stat-card.yellow .stat-icon-bg { color: var(--neon-yellow); filter: drop-shadow(0 0 8px var(--neon-yellow)); }
.theme-neon .stat-card.cyan .stat-icon-bg   { color: var(--neon-cyan);   filter: drop-shadow(0 0 8px var(--neon-cyan)); }

/* Progress Bars Neon (Matches Image) */
.theme-neon .progress-bar-container {
    background: rgba(255, 255, 255, 0.05);
    height: 6px;
    border-radius: 10px;
    margin-top: 15px;
}

.theme-neon .progress-fill {
    box-shadow: 0 0 15px currentColor;
    border-radius: 10px;
    height: 100%;
}

/* Section Titles (Inter-style) */
.theme-neon .section-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-main);
    opacity: 0.9;
    margin-bottom: 1.2rem;
}

.theme-neon .sidebar {
    background: rgba(2, 6, 23, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    padding: 1.5rem 1rem;
}

.theme-neon .nav-item {
    padding: 0.75rem 1rem;
    margin-bottom: 4px;
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.theme-neon .nav-item i {
    font-size: 1.1rem;
    margin-right: 12px;
    width: 24px;
    display: inline-flex;
    justify-content: center;
}

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

.theme-neon .nav-item.active {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    font-weight: 500;
}

/* Buttons Neon Premium */
.theme-neon .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
    border-radius: 10px;
}

/* Forms Neon */
.theme-neon select, .theme-neon input {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border-radius: 8px;
    padding: 8px 12px;
    z-index: 5;
    position: relative;
}
