/* Base styles */
:root {
    --bg-color: #050b14;
    --panel-bg: rgba(10, 15, 25, 0.7);
    --border-color: rgba(0, 150, 255, 0.4);
    --text-main: #c9d1d9;
    --neon-blue: #00e5ff;
    --neon-green: #39ff14;
    --neon-red: #ff3333;
    --neon-purple: #b026ff;
    --warning: #ffb800;
    --font-mono: 'Fira Code', monospace;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-mono);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: radial-gradient(circle at center, #0a1128 0%, #030508 100%);
    overflow: hidden;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.1),
                inset 0 0 15px rgba(0, 229, 255, 0.05);
    width: 100%;
    max-width: 500px;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

/* Scanline effect */
body::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    opacity: 0.5;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.subtitle {
    color: #8b949e;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

/* Typography Utilities */
.text-neon-blue { color: var(--neon-blue); text-shadow: 0 0 15px rgba(0, 229, 255, 0.5); }
.text-neon-green { color: var(--neon-green); text-shadow: 0 0 15px rgba(57, 255, 20, 0.5); }
.text-neon-red { color: var(--neon-red); text-shadow: 0 0 15px rgba(255, 51, 51, 0.5); }
.text-warning { color: var(--warning); }
.text-success { color: var(--neon-green); }

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

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--neon-blue);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

input {
    width: 100%;
    padding: 0.8rem;
    background: rgba(3, 5, 8, 0.8);
    border: 1px solid #1a2a40;
    color: var(--neon-blue);
    font-family: var(--font-mono);
    border-radius: 4px;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
    background: rgba(5, 12, 25, 0.9);
}

/* Buttons */
.cyber-button {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
    text-shadow: 0 0 5px rgba(0, 229, 255, 0.3);
}

.cyber-button:hover {
    background: rgba(0, 229, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4), inset 0 0 10px rgba(0, 229, 255, 0.2);
}

.cyber-button .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.cyber-button:hover .arrow {
    transform: translateX(5px);
}

.cyber-button.outline {
    border-color: var(--text-main);
    color: var(--text-main);
    text-shadow: none;
}

.cyber-button.outline:hover {
    background: rgba(201, 209, 217, 0.1);
    box-shadow: 0 0 15px rgba(201, 209, 217, 0.2);
    border-color: #fff;
    color: #fff;
}

/* Messages */
.error-msg {
    margin-top: 1.5rem;
    color: var(--neon-red);
    font-size: 0.85rem;
    padding: 0.8rem;
    border-left: 3px solid var(--neon-red);
    background: rgba(255, 51, 51, 0.1);
    animation: pulse-border 2s infinite;
}

.notice {
    margin: 1.5rem 0;
    padding: 1rem;
    border-left: 3px solid var(--border-color);
    background: rgba(0, 229, 255, 0.05);
    font-size: 0.85rem;
    line-height: 1.5;
}

.notice.error {
    border-left-color: var(--neon-red);
    background: rgba(255, 51, 51, 0.05);
}

.notice.success {
    border-left-color: var(--neon-green);
    background: rgba(57, 255, 20, 0.05);
}

/* Dashboard specific */
.dashboard, .admin-panel, .error-panel {
    max-width: 650px;
}

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

.stat-box {
    background: rgba(3, 5, 8, 0.5);
    border: 1px solid #1a2a40;
    padding: 1rem;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #8b949e;
    margin-bottom: 0.5rem;
}

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

/* Admin specific */
.flag-container {
    background: #020408;
    border: 1px solid var(--neon-purple);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 0 25px rgba(176, 38, 255, 0.3);
    position: relative;
}

.flag-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-purple), transparent);
}

.flag-label {
    color: var(--neon-purple);
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.flag {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    word-break: break-all;
}

/* Glitch Effect */
.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 red;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 blue;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 86px, 0); }
    5% { clip: rect(69px, 9999px, 15px, 0); }
    10% { clip: rect(96px, 9999px, 34px, 0); }
    15% { clip: rect(14px, 9999px, 60px, 0); }
    20% { clip: rect(54px, 9999px, 20px, 0); }
    25% { clip: rect(12px, 9999px, 90px, 0); }
    30% { clip: rect(58px, 9999px, 100px, 0); }
    35% { clip: rect(3px, 9999px, 83px, 0); }
    40% { clip: rect(93px, 9999px, 15px, 0); }
    45% { clip: rect(10px, 9999px, 24px, 0); }
    50% { clip: rect(54px, 9999px, 65px, 0); }
    55% { clip: rect(22px, 9999px, 50px, 0); }
    60% { clip: rect(4px, 9999px, 88px, 0); }
    65% { clip: rect(88px, 9999px, 20px, 0); }
    70% { clip: rect(11px, 9999px, 66px, 0); }
    75% { clip: rect(31px, 9999px, 45px, 0); }
    80% { clip: rect(55px, 9999px, 90px, 0); }
    85% { clip: rect(98px, 9999px, 15px, 0); }
    90% { clip: rect(6px, 9999px, 30px, 0); }
    95% { clip: rect(85px, 9999px, 4px, 0); }
    100% { clip: rect(34px, 9999px, 80px, 0); }
}

@keyframes pulse-border {
    0% { border-left-color: var(--neon-red); }
    50% { border-left-color: rgba(255, 51, 51, 0.2); }
    100% { border-left-color: var(--neon-red); }
}
