/* Booking Page CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f6fa;
    color: #333;
}

/* Navigation */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #2c5aa0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 8px 12px;
    border-radius: 5px;
}

.nav-link:hover {
    color: #2c5aa0;
    background: rgba(44, 90, 160, 0.1);
}

.login-btn {
    background: #2c5aa0;
    color: white !important;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: #1e3d6f;
}

/* Booking Container */
.booking-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.booking-header {
    text-align: center;
    margin-bottom: 40px;
}

.booking-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.booking-header p {
    font-size: 1.1rem;
    color: #7f8c8d;
}

/* Booking Grid */
.booking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.booking-left,
.booking-right {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Booking Sections */
.booking-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.section-title {
    background: #34495e;
    color: white;
    margin: -25px -25px 20px -25px;
    padding: 15px 25px;
    border-radius: 12px 12px 0 0;
    font-size: 16px;
    font-weight: 600;
}

/* Sport Options */
.sport-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.sport-option {
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.sport-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.sport-option.selected {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.sport-option i {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

.sport-option small {
    display: block;
    margin-top: 5px;
    opacity: 0.8;
    font-size: 12px;
}

/* Court Options */
.court-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.court-option {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.court-option:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.court-option.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.court-info h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: inherit;
}

.court-option.selected .court-info h4 {
    color: white;
}

.court-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
}

.court-option.selected .court-description {
    color: rgba(255, 255, 255, 0.9);
}

.court-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.amenity-tag {
    background: #f8f9fa;
    color: #495057;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.court-option.selected .amenity-tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.court-rate {
    font-size: 16px;
    font-weight: 600;
    color: #28a745;
    margin-bottom: 10px;
}

.court-option.selected .court-rate {
    color: #90ee90;
}

.court-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.court-status.status-active {
    background: #d4edda;
    color: #155724;
}

.court-status.status-maintenance {
    background: #fff3cd;
    color: #856404;
}

.court-status.status-inactive {
    background: #f8d7da;
    color: #721c24;
    cursor: not-allowed;
}

.court-option.status-inactive {
    opacity: 0.6;
    cursor: not-allowed;
}

.court-option.status-inactive:hover {
    border-color: #e9ecef;
    box-shadow: none;
    transform: none;
}

/* Duration Options */
.duration-selection {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.base-duration-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.duration-option {
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.duration-option:hover {
    border-color: #f39c12;
    background: #fdf2e9;
}

.duration-option.selected {
    border-color: #f39c12;
    background: #f39c12;
    color: white;
}

.duration-option .price {
    font-weight: bold;
    color: #27ae60;
}

.duration-option.selected .price {
    color: white;
}

/* Hour Multiplier */
.hour-multiplier {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.hour-multiplier h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 16px;
}

.hour-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.hour-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #667eea;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 16px;
}

.hour-btn:hover {
    background: #5a6fd8;
    transform: scale(1.1);
}

.hour-btn:active {
    transform: scale(0.95);
}

.hour-display {
    font-size: 18px;
    font-weight: 600;
    min-width: 100px;
    text-align: center;
    color: #2c3e50;
}

.hour-info {
    text-align: center;
    color: #666;
}

.hour-info small {
    background: white;
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid #ddd;
    display: inline-block;
}

/* Time Slots Grid */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.info-text {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 20px;
}

/* Booking Summary */
.booking-summary {
    background: #e8f5e8;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #27ae60;
}

.summary-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item strong {
    color: #2c3e50;
    min-width: 80px;
}

.summary-item span {
    color: #27ae60;
    font-weight: 500;
    text-align: right;
}

/* Location Options */
.location-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.location-option {
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.location-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.location-option.selected {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.location-option i {
    margin-right: 8px;
}

.location-option small {
    display: block;
    opacity: 0.8;
    margin-top: 5px;
}

/* Date Picker */
.date-picker-container {
    display: flex;
    gap: 20px;
    align-items: center;
}

.date-input {
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    flex: 1;
}

.calendar-display {
    background: #667eea;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    min-width: 120px;
}

.date-day {
    font-size: 18px;
    font-weight: bold;
    display: block;
}

.date-month-year {
    font-size: 14px;
    opacity: 0.9;
}

/* Time Slots */
.time-slots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.time-slot {
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.time-slot:hover:not(.unavailable) {
    border-color: #f39c12;
    background: #fdf2e9;
}

.time-slot.selected {
    border-color: #f39c12;
    background: #f39c12;
    color: white;
}

.time-slot.consecutive-selected {
    border-color: #f39c12;
    background: #fdeaa7;
    color: #b7950b;
    border-style: dashed;
}

.time-slot.unavailable {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.time-slot.unavailable:hover {
    border-color: #dee2e6;
    background: #f8f9fa;
}

.unavailable-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

/* Duration Selector */
.duration-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.duration-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #e9ecef;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.duration-btn:hover {
    background: #667eea;
    color: white;
}

.duration-display {
    font-size: 18px;
    font-weight: 600;
    min-width: 100px;
    text-align: center;
}

/* Court Options */
.court-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.court-option {
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.court-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.court-option.selected {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

/* Equipment Options */
.equipment-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.equipment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.equipment-name {
    font-weight: 500;
}

.equipment-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.equipment-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: #e9ecef;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.equipment-btn:hover {
    background: #667eea;
    color: white;
}

.equipment-count {
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

/* Pricing Summary */
.pricing-summary {
    background: #fff9c4;
    border-radius: 8px;
    padding: 20px;
    border: 2px solid #f1c40f;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 16px;
}

.price-row.total {
    border-top: 2px solid #f39c12;
    padding-top: 10px;
    font-weight: bold;
    font-size: 18px;
    color: #d35400;
}

.price {
    font-weight: 600;
}

/* Booking Summary */
.booking-summary {
    background: #e8f5e8;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #27ae60;
}

.summary-date {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.summary-time {
    font-size: 16px;
    color: #666;
}

/* Proceed Button */
.proceed-btn {
    width: 100%;
    padding: 18px;
    background: #f39c12;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.proceed-btn:hover:not(:disabled) {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
}

.proceed-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.proceed-btn.enabled {
    background: #f39c12;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: #2c3e50;
    color: white;
    padding: 15px 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 18px;
}

.close {
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
}

.close:hover {
    opacity: 0.8;
}

.modal-body {
    padding: 20px;
    text-align: center;
}

.modal-body p {
    margin-bottom: 20px;
    color: #666;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: #2c5aa0;
    color: white;
}

.btn-primary:hover {
    background: #1e3d6f;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Responsive Design */
@media (max-width: 768px) {
    .booking-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .booking-header h1 {
        font-size: 2rem;
    }

    .sport-options {
        grid-template-columns: 1fr;
    }

    .time-slots {
        grid-template-columns: 1fr;
    }

    .court-options {
        grid-template-columns: 1fr;
    }

    .date-picker-container {
        flex-direction: column;
        gap: 15px;
    }

    .calendar-display {
        width: 100%;
    }

    .equipment-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
    }

    .modal-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
    }
}