/* ===== RESET / BASE ===== */

* {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body {
    margin: 0;
    background: #0f172a;        /* тёмно-синий, без градиента */
    color: #e5e7eb;
}

/* ===== AUTH ===== */

.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 360px;
    background: #020617;
    border-radius: 10px;
    padding: 28px;
    border: 1px solid #1e293b;
}

.auth-card h1 {
    margin: 0 0 6px;
    font-size: 20px;
    text-align: center;
}

.subtitle {
    text-align: center;
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 20px;
}

.auth-card input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 12px;
    background: #020617;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #e5e7eb;
}

.auth-card button {
    width: 100%;
    padding: 10px;
    background: #2563eb;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.auth-card button:hover {
    background: #1d4ed8;
}

.error {
    margin-top: 10px;
    font-size: 13px;
    color: #f87171;
    text-align: center;
}

/* ===== TOP BAR ===== */

.topbar {
    height: 48px;
    background: #020617;
    border-bottom: 1px solid #1e293b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.logo {
    font-size: 14px;
    font-weight: 600;
}

.logout {
    font-size: 13px;
    color: #93c5fd;
    text-decoration: none;
}

/* ===== LAYOUT ===== */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
}

h1 {
    margin: 0 0 20px;
    font-size: 20px;
}

h2 {
    margin: 0 0 12px;
    font-size: 16px;
}

/* ===== CARDS ===== */

.card {
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 18px;
}

.muted {
    font-size: 13px;
    color: #94a3b8;
}

/* ===== CONNECTION ===== */

.connection-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.status-text {
    font-size: 15px;
    margin-bottom: 14px;
}

/* ===== BADGE ===== */

.badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

.badge.green  { background: #064e3b; color: #6ee7b7; }
.badge.yellow { background: #78350f; color: #fde68a; }
.badge.red    { background: #7f1d1d; color: #fecaca; }
.badge.gray   { background: #1e293b; color: #94a3b8; }

/* ===== BUTTONS ===== */

.btn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
}

.btn {
    height: 36px;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn.primary {
    background: #2563eb;
    color: #fff;
}

.btn.primary:hover {
    background: #1d4ed8;
}

.btn.station {
    background: #020617;
    border: 1px solid #334155;
    color: #c7d2fe;
}

.btn.station:hover {
    background: #020617;
    border-color: #2563eb;
    color: #fff;
}

/* ===== MOBILE ===== */

@media (max-width: 600px) {
    .container {
        padding: 16px;
    }

    .btn-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== TABLE ===== */

.table-wrap {
    overflow-x: auto;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.orders-table th,
.orders-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #1e293b;
    white-space: nowrap;
}

.orders-table th {
    text-align: left;
    font-weight: 600;
    color: #cbd5f5;
}

.orders-table td {
    color: #e5e7eb;
}

.orders-table tr:hover {
    background: #020617;
}

.actions {
    text-align: right;
}

.actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    margin-left: 6px;
    color: #93c5fd;
}

.actions button:hover {
    color: #fff;
}
