/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Rajdhani:wght@500;700&display=swap');

:root {
    --bg-dark: #050505;
    --bg-panel: #0a0a0a;
    --primary: #00ff41; /* Hacker Green */
    --primary-dim: rgba(0, 255, 65, 0.1);
    --accent: #008F11;
    --text-main: #e0e0e0;
    --text-dim: #808080;
    --live: #00ff41;
    --die: #ff3333;
    --warn: #ffcc00;
    --border: #1a1a1a;
    --glass: rgba(20, 20, 20, 0.7);
}

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Rajdhani', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    background-image: radial-gradient(circle at 50% 50%, #111 0%, #000 100%);
}

/* --- Matrix Background Effect (Optional simple grid) --- */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    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));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    z-index: 9999;
}

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* --- Typography --- */
h1, h2, h3 { font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: 1px; }
.text-gradient {
    background: linear-gradient(to right, var(--primary), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Buttons --- */
.btn {
    background: var(--primary-dim);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 12px 24px;
    font-family: 'JetBrains Mono', monospace;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 15px var(--primary);
}

.btn-stop { border-color: var(--die); color: var(--die); background: rgba(255, 51, 51, 0.1); }
.btn-stop:hover { background: var(--die); color: #fff; box-shadow: 0 0 15px var(--die); }

/* --- Forms --- */
.input-group { margin-bottom: 20px; position: relative; }
input, textarea, select {
    width: 100%;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    padding: 15px;
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
    transition: 0.3s;
}
input:focus, textarea:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-dim);
}

/* --- Cards / Panels --- */
.panel {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* --- Checker Layout --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}
.stat-box {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    padding: 15px;
    text-align: center;
}
.stat-value { font-size: 2rem; font-weight: bold; display: block; margin-top: 5px; }
.val-live { color: var(--live); text-shadow: 0 0 10px var(--live); }
.val-die { color: var(--die); }
.val-total { color: #fff; }

/* --- Results Area --- */
.results-container { display: flex; flex-direction: column; gap: 10px; }
.result-card {
    background: #0e0e0e;
    border-left: 4px solid var(--text-dim);
    padding: 15px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.3s ease-out;
}

.res-success { border-color: var(--live); background: rgba(0, 255, 65, 0.05); }
.res-declined { border-color: var(--die); opacity: 0.7; }
.res-warn { border-color: var(--warn); }

.badge {
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: bold;
    background: #222;
    margin-right: 5px;
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* --- Loader --- */
.cyber-loader {
    width: 100%;
    height: 4px;
    background: #111;
    position: relative;
    overflow: hidden;
    display: none;
}
.cyber-loader::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    animation: loading 1s infinite linear;
}
@keyframes loading {
    0% { left: -50%; }
    100% { left: 100%; }
}

/* --- Login Page Specific --- */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}
.auth-box {
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--primary);
    box-shadow: 0 0 20px var(--primary-dim);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .result-card { flex-direction: column; align-items: flex-start; gap: 10px; }
}
