/* Основные стили */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2 {
    color: #2c3e50;
}

/* Форма бронирования */
.booking-form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

/* Кнопки */
.btn {
    display: inline-block;
    background: #3498db;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
}

.btn:hover {
    background: #2980b9;
}

.btn-danger {
    background: #e74c3c;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-warning {
    background: #f39c12;
}

.btn-warning:hover {
    background: #d35400;
}

/* Уведомления */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Таблицы */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
}

tr:hover {
    background-color: #f5f5f5;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .booking-form {
        padding: 15px;
    }

    table {
        display: block;
        overflow-x: auto;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 14px;
    }

    .btn {
        width: 100%;
        padding: 12px;
    }
}

/* Стили для админки */
.admin-table {
    margin-bottom: 30px;
}

.admin-table textarea {
    width: 100%;
    min-height: 60px;
    margin-bottom: 5px;
}

.admin-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.auth-form {
    max-width: 400px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.auth-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}


.checkbox {
    display: flex;
    align-items: center;
    margin: 15px 0;
}

.checkbox input {
    width: auto;
    margin-right: 10px;
}

.availability {
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    font-weight: bold;
}

.availability.available {
    background-color: #d4edda;
    color: #155724;
}

.availability.not-available {
    background-color: #f8d7da;
    color: #721c24;
}

/* Адаптивные стили для дат */
@media (max-width: 768px) {
    .form-group input[type="text"] {
        font-size: 14px;
        padding: 12px;
    }
}

/* Календарь бронирований */
.calendar-section {
    margin-top: 40px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#current-week {
    font-weight: bold;
}

.calendar-grid {
    display: flex;
    flex-direction: column;
}

.calendar-header, .calendar-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day-header {
    text-align: center;
    font-weight: bold;
    padding: 10px;
    background: #f2f2f2;
    border-radius: 4px;
}

.calendar-day {
    min-height: 80px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.calendar-day.booked {
    background-color: #ffebee;
}

.day-number {
    font-weight: bold;
}
.calendar-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #cccccc;
    color: #666666;
}

.calendar-controls button:disabled:hover {
    background-color: #cccccc;
}

.calendar-day.past-day {
    background-color: #f5f5f5;
    color: #999999;
}

.calendar-day.past-day.booked {
    background-color: #e0e0e0;
}

@media (max-width: 768px) {
    .calendar-header, .calendar-body {
        grid-template-columns: repeat(7, 1fr);
        font-size: 12px;
    }

    .calendar-day {
        min-height: 60px;
    }
}