/* Мои бронирования */
.my-bookings-screen {
    background: #f5f5f5;
    min-height: 100vh;
}

.screen-header {
    background: white;
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.screen-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

#my-bookings-container {
    padding: 16px;
}

/* Заголовок бронирований */
.bookings-header {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.bookings-header h2 {
    font-size: 20px;
    color: #333;
    margin: 0 0 12px 0;
}

.bookings-tabs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.bookings-tabs .tab {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: #f5f5f5;
    color: #666;
    transition: all 0.2s;
}

.bookings-tabs .tab.active {
    background: #667eea;
    color: white;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
}

.close-btn:hover {
    color: #666;
}

/* Карточка бронирования */
.booking-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.booking-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.booking-status {
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.booking-status.active { background: #e3f2fd; color: #1976d2; }
.booking-status.pending { background: #fff3e0; color: #f57c00; }
.booking-status.paid { background: #e8f5e8; color: #4caf50; }
.booking-status.confirmed { background: #e8f5e8; color: #4caf50; }
.booking-status.completed { background: #f5f5f5; color: #757575; }
.booking-status.cancelled { background: #fee; color: #f44336; }
.booking-status.refunded { background: #e0f2f1; color: #009688; }
.booking-status.no_show { background: #fbe9e7; color: #d84315; }

.booking-details {
    margin-bottom: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    border-bottom: 1px dashed #f0f0f0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: #666;
}

.detail-value {
    color: #333;
    font-weight: 500;
}

.booking-notes {
    background: #fff9c4;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: #856404;
    margin: 12px 0;
}

.booking-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.booking-actions button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.cancel-btn {
    background: #fee;
    color: #f44336;
}

.cancel-btn:hover {
    background: #fdd;
}

.map-btn {
    background: #667eea;
    color: white;
}

.map-btn:hover {
    background: #5a67d8;
}

.cancel-warning {
    font-size: 12px;
    color: #f44336;
    margin-top: 8px;
    text-align: center;
}

/* Пустое состояние */
.no-bookings {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Загрузка */
.loading {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Форма ввода телефона */
.phone-form {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    max-width: 400px;
    margin: 20px auto;
    text-align: center;
}

.phone-form label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    font-weight: 500;
}

.phone-form input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.2s;
    box-sizing: border-box;
    text-align: center;
    letter-spacing: 1px;
}

.phone-form input:focus {
    outline: none;
    border-color: #0066CC;
    box-shadow: 0 0 0 2px rgba(0,102,204,0.1);
}

.phone-form button {
    margin-top: 16px;
    width: 100%;
    padding: 14px;
    background: #0066CC;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.phone-form button:hover {
    background: #0052a3;
}

.phone-form h3 {
    margin-bottom: 15px;
    color: #0066CC;
}

.form-description {
    color: #666;
    margin-bottom: 25px;
    font-size: 14px;
}

.phone-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    width: 100%;
}

.phone-input {
    width: 100%;
    padding: 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.phone-input:focus {
    border-color: #0066CC;
    outline: none;
}

.phone-submit {
    flex: 0 0 auto; /* Добавить */
    padding: 12px 24px;
    background: #0066CC;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap; /* Добавить */
}

.phone-submit:hover {
    background: #0052a3;
}

.phone-submit-full {
    width: 100%;
    padding: 14px;
    background: #0066CC;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.phone-submit-full:hover {
    background: #0052a3;
}

.form-hint {
    color: #999;
    font-size: 13px;
    margin-top: 10px;
}

.phone-info {
    background: #f5f5f5;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.phone-label {
    color: #666;
    font-size: 14px;
}

.phone-value {
    font-weight: bold;
    color: #0066CC;
}

.change-phone {
    margin-left: auto;
    background: none;
    border: none;
    color: #0066CC;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
}

.change-phone:hover {
    color: #0052a3;
}

.error-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.error-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.error-actions button:first-child {
    background: #f0f0f0;
    color: #333;
}

.error-actions button:first-child:hover {
    background: #e0e0e0;
}

.error-actions button:last-child {
    background: #0066CC;
    color: white;
}

.error-actions button:last-child:hover {
    background: #0052a3;
}

.booking-cancel-link {
    margin-top: 12px;
    text-align: right;
}

.booking-cancel-link a {
    display: inline-block;
    padding: 6px 12px;
    background: #f5f5f5;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    font-size: 12px;
    transition: all 0.2s;
}

.booking-cancel-link a:hover {
    background: #ff4444;
    color: white;
}

/* Модалка отмены бронирования */
.cancel-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.cancel-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.cancel-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.cancel-modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

.cancel-modal-body {
    padding: 20px;
}

.cancel-rules {
    background: #f9f9f9;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.cancel-rules h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
}

.cancel-rules ul {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
    color: #666;
}

.cancel-reason label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.cancel-reason select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.cancel-modal-footer {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #e0e0e0;
    justify-content: flex-end;
}

.btn-secondary {
    padding: 8px 16px;
    background: #f0f0f0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.btn-danger {
    padding: 8px 16px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.reason-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.reason-checkboxes label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.reason-checkboxes input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}
