:root {
    --bg-color: #0d0d0d;
    --card-bg: #1a1a1a;
    --text-main: #e0e0e0;
    --text-dim: #888;
    --accent: #ff3333; /* Красный как на камерах записи */
    --accent-hover: #cc0000;
    --border: #333;
    --font-stack: 'Courier Prime', 'Courier New', monospace;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-stack);
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

a { color: var(--text-main); text-decoration: none; transition: 0.3s; }
a:hover { color: var(--accent); }

.container { max-width: 1000px; margin: 0 auto; }

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border);
    padding-bottom: 20px;
    margin-bottom: 40px;
}
.logo { font-size: 1.5rem; font-weight: bold; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }
nav a { margin-left: 20px; font-weight: bold; text-transform: uppercase; }

/* Common */
.section-title {
    border-left: 5px solid var(--accent);
    padding-left: 15px;
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #1a1a1a 0%, transparent 100%);
    padding-top: 5px;
    padding-bottom: 5px;
}

.btn {
    background: transparent;
    border: 1px solid var(--text-main);
    color: var(--text-main);
    padding: 10px 20px;
    font-family: var(--font-stack);
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    transition: all 0.2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #000; }
.btn-small { font-size: 0.8rem; border-bottom: 1px solid var(--text-dim); }
.btn-full { width: 100%; margin-top: 10px; }

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 20px;
    margin-bottom: 20px;
}
.vacancy-card h3 { margin-top: 0; color: var(--accent); }
.meta { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 15px; }

/* Forms */
.auth-box { max-width: 400px; margin: 0 auto; border: 1px solid var(--border); padding: 30px; background: var(--card-bg); }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 0.8rem; color: var(--text-dim); margin-bottom: 5px; }
input, select {
    width: 100%;
    background: #000;
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 10px;
    font-family: var(--font-stack);
    box-sizing: border-box;
}
input:focus { border-color: var(--accent); outline: none; }

/* Dashboard & Status */
.status-list { list-style: none; padding: 0; }
.status-list li { padding: 8px 0; border-bottom: 1px dashed #333; color: var(--text-dim); }
.status-list li.completed { color: #555; text-decoration: line-through; }
.status-list li.current { color: var(--text-main); font-weight: bold; border-left: 3px solid var(--accent); padding-left: 10px; }
.status-list li.refused { color: var(--accent); font-weight: bold; }

.status-badge {
    background: #000;
    border: 1px solid var(--border);
    padding: 2px 8px;
    font-size: 0.8rem;
}
.status-refused { border-color: var(--accent); opacity: 0.7; }
.status-hired { border-color: #33ff33; }

/* Admin Table */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th { text-align: left; border-bottom: 2px solid var(--border); padding: 10px; color: var(--text-dim); }
.data-table td { border-bottom: 1px solid #222; padding: 10px; vertical-align: top; }

footer {
    margin-top: 50px;
    border-top: 1px solid #222;
    padding-top: 20px;
    text-align: center;
    font-size: 0.7rem;
    color: #444;
}

.alert { padding: 10px; margin-bottom: 20px; border: 1px solid; }
.alert-error { border-color: var(--accent); color: var(--accent); }
.alert-success { border-color: green; color: green; }

:root {
    --bg-color: #050505;
    --terminal-bg: #0a0a0a;
    --primary: #00ff41; /* Ярко-зеленый Matrix */
    --primary-dim: #008f11;
    --primary-glow: rgba(0, 255, 65, 0.2);
    --alert: #ff003c; /* Красный для ошибок */
    --font-main: 'VT323', monospace;
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--primary);
    font-family: var(--font-main);
    font-size: 1.2rem;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    line-height: 1.4;
}

/* CRT Effects */
.scanlines {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.2));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1000;
}
.crt-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(0,255,0,0.02) 0%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
    z-index: 999;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 15px;
    margin-bottom: 40px;
    text-shadow: 0 0 10px var(--primary-glow);
}
.logo { font-size: 2rem; letter-spacing: 2px; }
.blink { animation: blinker 1s linear infinite; }
@keyframes blinker { 50% { opacity: 0; } }

nav a {
    color: var(--primary);
    text-decoration: none;
    margin-left: 20px;
    font-size: 1.4rem;
    transition: 0.2s;
}
nav a:hover {
    color: #fff;
    text-shadow: 0 0 15px var(--primary);
}

/* Typography & Titles */
h1, h2, h3 { margin: 0 0 15px 0; text-transform: uppercase; font-weight: normal; }
.neon-title {
    text-align: center;
    font-size: 2.5rem;
    border-bottom: 1px dashed var(--primary-dim);
    margin-bottom: 30px;
    padding-bottom: 10px;
}

/* Cards & Windows */
.terminal-window {
    background: var(--terminal-bg);
    border: 1px solid var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    margin-bottom: 30px;
}
.terminal-bar {
    background: var(--primary);
    color: #000;
    padding: 5px 10px;
    font-weight: bold;
    text-transform: uppercase;
}
.terminal-content { padding: 20px; }

.card {
    border: 1px solid var(--primary-dim);
    background: rgba(0, 20, 0, 0.6);
    padding: 20px;
    margin-bottom: 20px;
    transition: 0.3s;
}
.card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    transform: translateY(-2px);
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

/* Forms */
input, textarea, select {
    width: 100%;
    background: #000;
    border: 1px solid var(--primary-dim);
    color: var(--primary);
    padding: 10px;
    font-family: var(--font-main);
    font-size: 1.2rem;
    margin-top: 5px;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
}

/* Buttons */
.btn {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 10px 20px;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 1.2rem;
    text-transform: uppercase;
    transition: 0.2s;
    text-decoration: none;
}
.btn:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 15px var(--primary);
}
.btn-block { width: 100%; margin-top: 15px; }
.btn-sm { padding: 5px 10px; font-size: 1rem; }
.btn-xs { padding: 2px 5px; font-size: 0.9rem; border: 1px solid var(--primary-dim); }
.btn-danger { color: var(--alert); border-color: var(--alert); }
.btn-danger:hover { background: var(--alert); color: #fff; box-shadow: 0 0 15px var(--alert); }

/* Tables */
.matrix-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.matrix-table th { text-align: left; border-bottom: 1px solid var(--primary); padding: 10px; color: #fff; }
.matrix-table td { padding: 10px; border-bottom: 1px solid #111; vertical-align: top; }
.matrix-select { background: #000; color: var(--primary); border: none; cursor: pointer; }

/* Statuses */
.log-list { list-style: none; padding: 0; }
.log-item { padding: 5px 0; border-bottom: 1px dashed #222; }
.log-item.done { color: var(--primary-dim); text-decoration: line-through; }
.log-item.current { color: #fff; text-shadow: 0 0 5px #fff; }
.log-item.error { color: var(--alert); font-weight: bold; }
.status-ok { color: var(--primary); }
.status-err { color: #555; }

/* Alerts */
.flashes { margin-bottom: 20px; }
.alert { padding: 15px; border: 1px solid; background: #000; }
.alert-error { border-color: var(--alert); color: var(--alert); }
.alert-success { border-color: var(--primary); color: var(--primary); }

/* Helpers */
.text-muted { color: var(--primary-dim); font-size: 0.9rem; }
.mt-20 { margin-top: 20px; }
.full-width { width: 100%; }
.inline-create-form { display: grid; grid-template-columns: 1fr 1fr 1fr 2fr auto; gap: 10px; align-items: end; }

/* Progress Bar */
.progress-bar-container {
    height: 10px;
    background: #111;
    border: 1px solid var(--primary-dim);
    margin: 10px 0;
}
.progress-bar {
    height: 100%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

/* Footer */
footer {
    margin-top: 50px;
    border-top: 1px solid #222;
    padding-top: 20px;
    text-align: center;
    color: var(--primary-dim);
    font-size: 0.9rem;
}