* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 10px;
    font-size: 16px;
    line-height: 1.5;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

h1, h2, h3 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

h1 {
    font-size: 1.8rem;
    margin: 0;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.3rem;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
    font-size: 0.9rem;
}

input[type="text"],
input[type="password"],
select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="password"]:focus,
select:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    margin: 5px 0;
    font-weight: bold;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(0);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.form-link {
    text-align: center;
    margin-top: 15px;
}

.form-link a {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
}

.form-link a:hover {
    text-decoration: underline;
}

.booking-form {
    display: block;
}

.address-item {
    background: #f8f9fa;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #e9ecef;
    position: relative;
}

.address-item.address-booked {
    background-color: #fff3cd; /* Яркий желтый */
    border-color: #ffeeba;
}

.address-item.address-completed {
    background-color: #d4edda; /* Яркий зеленый */
    border-color: #c3e6cb;
}

.address-header {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
    font-size: 1rem;
}

.address-details {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 12px;
}

.address-details span {
    display: block;
    line-height: 1.4;
}

.checkbox-group {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 120px;
}

.checkbox-item input {
    width: auto;
    transform: scale(1.2);
}

.checkbox-item label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 0.9rem;
}

.reason-input {
    width: 100%;
    margin-top: 10px;
}

.reason-input input,
.reason-input textarea {
    width: 100%;
    font-size: 0.9rem;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.reason-input label {
    font-size: 0.9rem;
}

.submit-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    margin-top: 0;
}

.welcome-text {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
    font-size: 1.1rem;
}

.status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    white-space: nowrap;
}

.status-booked { background: #fff3cd; color: #856404; border: 1px solid #ffeaa7; }
.status-completed { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.status-failed { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.booked-by-user { background: #cce5ff; color: #004085; border: 1px solid #b8daff; }

.admin-panel { background: #f8f9fa; padding: 15px; border-radius: 5px; margin-bottom: 20px; }
.user-item { background: white; padding: 12px; margin: 8px 0; border-radius: 5px; border: 1px solid #dee2e6; font-size: 0.9rem; }
.warning-message { background: #fff3cd; border: 1px solid #ffeaa7; padding: 12px; border-radius: 5px; margin: 15px 0; color: #856404; font-size: 0.9rem; }
.warning-message strong { font-size: 1rem; }

.modal { position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; padding: 10px; }
.modal-content { background-color: white; margin: auto; padding: 25px; border-radius: 12px; width: 95%; max-width: 800px; max-height: 85vh; overflow-y: auto; position: relative; box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
.close { position: absolute; right: 20px; top: 20px; font-size: 32px; font-weight: bold; cursor: pointer; color: #aaa; background: none; border: none; padding: 0; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background-color 0.2s; }
.close:hover { color: #000; background-color: #f0f0f0; }

/* СТИЛИ ДЛЯ "ПРИЛИПАЮЩИХ" ЭЛЕМЕНТОВ */
.header-container {
    position: sticky;
    top: -21px; /* Компенсирует padding контейнера */
    padding-top: 20px;
    padding-bottom: 10px;
    background-color: white;
    z-index: 100;
    margin: -20px -20px 20px -20px; /* Компенсирует padding контейнера */
    padding-left: 20px;
    padding-right: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sticky-footer {
    position: sticky;
    bottom: -21px; /* Компенсирует padding контейнера */
    background: white;
    padding: 20px;
    margin: 0 -20px -20px -20px; /* Компенсирует padding контейнера */
    border-top: 1px solid #ddd;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
    z-index: 99;
}

.header-container .btn {
    width: auto;
    padding: 8px 15px;
    font-size: 0.9rem;
    margin: 0;
}
.logout-btn {
    background: linear-gradient(135deg, #6c757d 0%, #343a40 100%);
}

@media (max-width: 768px) {
    .header-container {
        display: grid;
        grid-template-areas:
            "left-button right-button"
            "title       title";
        grid-template-columns: auto auto;
        justify-content: space-between;
        gap: 15px;
        align-items: center;
    }
    .header-container h1 {
        grid-area: title;
        margin: 0;
    }
    .header-container .logout-btn {
        grid-area: left-button;
    }
    .header-container .nav-btn {
        grid-area: right-button;
    }
}