/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
}

/* Навигация */
.navbar {
    background: #2c3e50;
    padding: 15px;
    color: white;
}

.navbar a {
    color: white;
    text-decoration: none;
    margin-right: 20px;
}

.navbar a:hover {
    text-decoration: underline;
}

/* Контейнер */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Заголовки */
h1 {
    margin-bottom: 30px;
    color: #333;
}

h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
}

/* Карточки */
.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

/* Статистика */
.stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stat-card {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    min-width: 150px;
}

.stat-card h3 {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.stat-card .value {
    font-size: 32px;
    font-weight: bold;
}

.stat-card.primary { border-top: 4px solid #667eea; }
.stat-card.success { border-top: 4px solid #27ae60; }
.stat-card.danger { border-top: 4px solid #e74c3c; }
.stat-card.info { border-top: 4px solid #3498db; }

/* Таблицы */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background: #f8f9fa;
    font-weight: 600;
}

/* Статусы */
.status-received { color: #27ae60; font-weight: bold; }
.status-pending { color: #f39c12; font-weight: bold; }
.status-timeout { color: #e74c3c; font-weight: bold; }
.status-cancelled { color: #95a5a6; font-weight: bold; }

/* Формы */
input, select, textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #667eea;
}

/* Кнопки */
button {
    padding: 10px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
}

button:hover {
    background: #5a67d8;
}

.btn-refresh {
    background: #3498db;
}

.btn-refresh:hover {
    background: #2980b9;
}

.btn-danger {
    background: #e74c3c;
}

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

.btn-warning {
    background: #f39c12;
    color: #333;
}

.btn-warning:hover {
    background: #e67e22;
}

.btn-success {
    background: #27ae60;
}

.btn-success:hover {
    background: #219a52;
}

/* Алерты */
.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #17a2b8;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #dc3545;
}

/* Чекбоксы */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.checkbox-label input {
    width: auto;
    margin: 0;
}

/* Сетка */
.row {
    display: flex;
    gap: 20px;
}

.col {
    flex: 1;
}

/* Код */
code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
}
