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

body {
    background: #121212;
    color: #e0e0e0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
}

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

/* Карточки */
.card {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    margin-bottom: 24px;
}

h1, h2, h3 {
    font-weight: 600;
    margin-bottom: 16px;
}

a {
    color: #4fc3f7;
    text-decoration: none;
}

/* Формы */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #bbb;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #2a2a2a;
    color: #fff;
    font-size: 15px;
    transition: border 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #0e639c;
    outline: none;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: #0e639c;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
    gap: 6px;
}

.btn:hover {
    background: #1177bb;
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    border: 1px solid #0e639c;
    color: #0e639c;
}

.btn-outline:hover {
    background: rgba(14,99,156,0.1);
}

.btn-danger {
    background: #c62828;
}

.btn-danger:hover {
    background: #e53935;
}

.btn-logout {
    background: #555;
}

.btn-logout:hover {
    background: #777;
}

/* Таблицы */
table {
    width: 100%;
    border-collapse: collapse;
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
}

th {
    background: #2a2a2a;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #ccc;
}

td {
    padding: 10px 16px;
    border-bottom: 1px solid #2a2a2a;
}

tr:hover {
    background: #252525;
}

/* Модальные формы */
.form-panel {
    background: #252525;
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
    border: 1px solid #333;
}

/* Логин */
.login-box {
    max-width: 400px;
    margin: 80px auto;
}

/* Терминал */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    align-items: center;
}

.toolbar select,
.toolbar input,
.toolbar button {
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #444;
    background: #2a2a2a;
    color: #fff;
}

.toolbar button {
    border: none;
    cursor: pointer;
}

.terminal-container {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.hidden {
    display: none !important;
}

@media (max-width: 600px) {
    .toolbar {
        flex-direction: column;
    }
    .toolbar select,
    .toolbar input,
    .toolbar button {
        width: 100%;
    }
}