/* Основные стили */

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    padding: 20px;
    color: #333;
}

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

/* Формы */
.form-container {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 50px auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.btn {
    display: inline-block;
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.btn-block {
    display: block;
    width: 100%;
}

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

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Командная панель */
.command-bar {
    display: flex;
    background: #2c3e50;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.app-bar-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    margin: 5px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.3s;
}

.app-bar-button:hover {
    background: #2980b9;
}

/* Таблицы */
.table-header {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    background: #e0e0e0;
    font-weight: bold;
}

.requests-header {
    grid-template-columns: repeat(9, minmax(100px, 1fr));
}

.evacuators-header {
    grid-template-columns: repeat(3, minmax(100px, 1fr));
}

.table-row {
    display: grid;
    grid-template-columns: inherit; /* Наследует от header */
    border-bottom: 1px solid #eee;
}

.header-cell, .table-cell {
    padding: 10px 5px;
    text-align: center;
    border-right: 1px solid #ddd;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-cell:last-child, .table-cell:last-child {
    border-right: none;
}

/* Стили для статусов */
.status-not-started {
    color: #d9534f;
    font-weight: bold;
}

.status-in-progress {
    color: #f0ad4e;
    font-weight: bold;
}

.status-completed {
    color: #5cb85c;
    font-weight: bold;
}

.btn-danger {
    background-color: #d9534f;
    color: white;
}

/* Анимация обновления */
@keyframes highlight {
    0% { background-color: rgba(255, 255, 0, 0.5); }
    100% { background-color: transparent; }
}

.updated-row {
    animation: highlight 2s;
}

/* Курсор-указатель для строк таблицы */
.table-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.table-row:hover {
    background-color: #f5f5f5;
}