/* index.css - Education Administration Efficiency Research Institute (EEERI) */
/* True Option 10 Theme: Glassmorphic Cyber-Terminal */

:root {
    --bg-dark: #050508;
    --primary: #00dbe7;
    --primary-glow: rgba(0, 219, 231, 0.35);
    --secondary: #56ffa8;
    --secondary-glow: rgba(86, 255, 168, 0.3);
    --tertiary: #7314ff;
    --tertiary-glow: rgba(115, 24, 255, 0.35);
    --text-main: #e5e2e1;
    --text-muted: #b9cacb;
}

/* Base resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(115, 24, 255, 0.35) 0%, transparent 45%),
        radial-gradient(circle at 85% 60%, rgba(0, 219, 231, 0.35) 0%, transparent 45%),
        radial-gradient(circle at 50% 90%, rgba(86, 255, 168, 0.18) 0%, transparent 55%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    word-break: keep-all; /* Prevent Korean awkward wrapping */
}

/* Glassmorphism Panels & Cards */
.glass-panel, .cyber-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem !important; /* Premium rounded corners */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.glass-panel::before, .cyber-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.glass-panel:hover, .cyber-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px 0 rgba(115, 24, 255, 0.15);
    transform: translateY(-4px);
}

/* Navigation Bar */
header {
    background: rgba(19, 19, 19, 0.3);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Category Filter Tabs */
.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 9999px !important;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #000 !important;
    font-weight: 600;
    box-shadow: 0 0 15px var(--primary-glow);
}

/* Gauges styling */
.gauge-ring {
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 10px currentColor);
}

/* Typography glows */
.text-glow {
    text-shadow: 0 0 20px currentColor;
}

/* Diagnostics Console */
.terminal-window {
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.terminal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.1);
}

.terminal-dot.active-purple { background: #7314ff; box-shadow: 0 0 8px rgba(115, 24, 255, 0.5); }
.terminal-dot.active-cyan { background: #00dbe7; box-shadow: 0 0 8px rgba(0, 219, 231, 0.5); }
.terminal-dot.active-green { background: #56ffa8; box-shadow: 0 0 8px rgba(86, 255, 168, 0.5); }

/* Overlay Modal for log reading */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    z-index: 100;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-content {
    width: 95%;
    max-width: 650px;
    background: rgba(20, 20, 25, 0.85);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem !important;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}
