:root {
    --bg: #121212;
    --panel: #1e1e1e;
    --accent: #d4c4a8;
    --text: #d4c4a8;
    --card: #0a0a0a;
    --danger: #ff4444;
    --success: #00ff00;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: "Courier New", Courier, monospace;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

#app {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- ЭКРАН ВХОДА --- */
.auth-box {
    background: var(--panel);
    padding: 40px;
    border: 2px solid var(--accent);
    margin-top: 100px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0px 0px 20px rgba(212, 196, 168, 0.2);
}

    .auth-box h2 {
        border-bottom: 1px solid var(--accent);
        padding-bottom: 10px;
        margin-bottom: 20px;
    }

/* --- КНОПКИ И ПОЛЯ --- */
.btn-main {
    background: var(--accent);
    color: #121212;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    font-weight: bold;
    font-family: inherit;
    text-transform: uppercase;
    transition: 0.3s;
    font-size: 16px;
    width: 100%;
}

    .btn-main:hover {
        background: #fff;
    }

    .btn-main:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

input[type="text"], input[type="password"], input[type="number"] {
    background: #2a2a2a;
    border: 1px solid var(--accent);
    color: #fff;
    padding: 12px;
    margin: 10px 0;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

/* --- ИНТЕРФЕЙС ИГРОКА --- */
.player-content {
    width: 100%;
    max-width: 700px;
    padding: 20px;
    box-sizing: border-box;
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--panel);
    border: 1px solid var(--accent);
    padding: 15px 20px;
    margin-bottom: 20px;
}

.header-stats {
    display: flex;
    gap: 30px;
}

.stat-block {
    text-align: center;
}

    .stat-block span {
        display: block;
        font-size: 28px;
        font-weight: bold;
        color: #fff;
        line-height: 1;
    }

    .stat-block label {
        font-size: 10px;
        color: #7a705e;
        text-transform: uppercase;
    }

.nav-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

.nav-btn {
    background: none;
    border: 1px solid #7a705e;
    color: #7a705e;
    padding: 8px 15px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
}

    .nav-btn.active {
        border-color: var(--accent);
        color: var(--accent);
        background: rgba(212, 196, 168, 0.1);
    }

.logout-btn {
    border-color: var(--danger) !important;
    color: var(--danger) !important;
    margin-left: auto;
}

/* ТЕРМИНАЛ */
.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.split-input {
    display: flex;
    flex: 1;
    border: 1px solid var(--accent);
    background: #2a2a2a;
    align-items: center;
}

select, .num-in {
    background: transparent;
    color: var(--accent);
    border: none;
    padding: 12px;
    font-size: 22px;
    font-family: inherit;
    outline: none;
}

select {
    cursor: pointer;
    font-weight: bold;
    appearance: none;
    text-align: center;
}

.log-entry {
    background: var(--card);
    border-left: 4px solid var(--accent);
    padding: 20px;
    margin-bottom: 20px;
    line-height: 1.6;
    animation: fadeIn 0.5s ease;
}

.highlight-flash {
    background-color: #3d3528 !important;
    transition: 0.5s;
}

/* --- АДМИН-ПАНЕЛЬ --- */
.admin-container {
    width: 100%;
    max-width: 900px;
    padding: 20px;
    box-sizing: border-box;
}

.admin-header-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #222;
    padding: 20px;
    border: 1px solid var(--accent);
    margin-bottom: 20px;
}

#adm-timer {
    font-size: 56px;
    color: var(--danger);
    margin: 0;
    line-height: 1;
    font-family: monospace;
}

.admin-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

    .admin-table th, .admin-table td {
        border: 1px solid #444;
        padding: 12px;
        text-align: left;
    }

    .admin-table th {
        background: #1a1a1a;
        color: #7a705e;
        font-size: 12px;
        text-transform: uppercase;
    }

.status-tag {
    padding: 4px 8px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.tag-active {
    background: #1b4d1b;
    color: var(--success);
}

.tag-paused {
    background: #4d1b1b;
    color: var(--danger);
}

/* ОТЧЕТЫ */
.report-block {
    background: #1a1a1a;
    border: 1px solid var(--accent);
    margin-bottom: 25px;
}

.report-header {
    background: var(--accent);
    color: #000;
    padding: 8px 15px;
    font-weight: bold;
}

.report-body {
    padding: 20px;
}

.report-q {
    margin-bottom: 15px;
    border-bottom: 1px solid #222;
    padding-bottom: 10px;
}

    .report-q label {
        color: #7a705e;
        font-size: 11px;
        text-transform: uppercase;
        display: block;
    }

    .report-q p {
        margin: 5px 0 0 0;
        color: #fff;
    }

/* --- ОБЩЕЕ --- */
.view-section, .adm-view {
    display: none;
}

    .view-section.active, .adm-view.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .header-stats {
        gap: 15px;
    }

    .stat-block span {
        font-size: 20px;
    }

    .input-group {
        flex-direction: column;
    }
}
