/* Club Booking Dashboard Styles */

/* Loading Overlay */
.booking-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.loader-content {
    text-align: center;
    color: white;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader-text {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-top: 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Ensure proper mobile viewport */
* {
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

/* Base container improvements */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Ensure all containers respect viewport */
.club-booking-container,
.booking-dashboard,
.dashboard-layout,
.dashboard-sidebar,
.dashboard-content,
.tab-content-panel,
.booking-form-wrapper {
    max-width: 100%;
    box-sizing: border-box;
}

.club-booking-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}

/* Improve touch targets on mobile */
@media (max-width: 768px) {
    button,
    .btn-next,
    .btn-prev,
    .btn-submit,
    .sidebar-tab-btn,
    .time-slot,
    .player-option,
    .game-type-card,
    .pagination-btn {
        -webkit-tap-highlight-color: rgba(102, 126, 234, 0.2);
        touch-action: manipulation;
    }
}

.booking-dashboard {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 40px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Back to Dashboard Button */
.back-to-dashboard-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
}

.back-to-dashboard-btn:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
    transform: translateX(-3px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.back-to-dashboard-btn .back-icon {
    font-size: 1.2em;
    font-weight: bold;
}

.back-to-dashboard-btn .back-text {
    line-height: 1;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.dashboard-header h1 {
    font-size: 2.5em;
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.welcome-text {
    font-size: 1.1em;
    color: #7f8c8d;
    margin: 0;
}

/* Dashboard Layout - Sidebar & Content */
.dashboard-layout {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    align-items: flex-start;
}

/* Sidebar Styles */
.dashboard-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sidebar-stats {
    margin-bottom: 25px;
}

.sidebar-stats .stat-card {
    margin-bottom: 15px;
    padding: 20px;
}

.sidebar-stats .stat-card:last-child {
    margin-bottom: 0;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.sidebar-tab-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    padding: 15px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 1em;
    color: #2c3e50;
    font-weight: 500;
    box-sizing: border-box;
    flex-shrink: 0;
}

.sidebar-tab-btn:hover {
    border-color: #667eea;
    background: #f8f9ff;
    color: #667eea;
    transform: translateX(5px);
}

.sidebar-tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.sidebar-tab-btn .tab-icon {
    font-size: 1.3em;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.sidebar-tab-btn .tab-label {
    flex: 1;
}

/* Content Area Styles */
.dashboard-content {
    flex: 1;
    min-width: 0; /* Prevents flex item from overflowing */
}

.tab-content-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 15px;
}

.content-header h2 {
    font-size: 1.8em;
    color: #2c3e50;
    margin: 0;
    font-weight: 700;
}

/* Booking Stats (Legacy - kept for backward compatibility) */
.booking-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-label {
    font-size: 0.9em;
    opacity: 0.9;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 2.5em;
    font-weight: 700;
    margin: 10px 0;
}

.stat-unit {
    font-size: 0.9em;
    opacity: 0.8;
}

/* Form Styles */
.booking-form-wrapper {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.booking-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-section {
    margin-bottom: 30px;
}

.section-label {
    display: block;
    font-size: 1.1em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

/* Game Type Selector */
.game-type-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.game-type-selector input[type="radio"] {
    display: none;
}

.game-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.game-type-card:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.game-type-selector input[type="radio"]:checked + .game-type-card {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.game-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.game-name {
    font-size: 1.2em;
    font-weight: 600;
}

/* Form Controls */
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
}

.form-control[readonly] {
    background: #f5f5f5;
    cursor: not-allowed;
}

/* Player Selector */
.player-selector {
    display: flex;
    gap: 20px;
}

.player-selector input[type="radio"] {
    display: none;
}

.player-option {
    flex: 1;
    padding: 15px 25px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.player-option:hover {
    border-color: #667eea;
}

.player-selector input[type="radio"]:checked + .player-option {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Form Rows */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 0.95em;
}

.required-asterisk {
    color: #dc3545;
    font-weight: bold;
    margin-left: 3px;
}

.form-control.auto-filled {
    background: #f0f8ff;
    border-left: 3px solid #667eea;
}

.form-control.readonly-field {
    background: #f5f5f5;
    cursor: not-allowed;
    border-left: 3px solid #28a745;
}

.form-control.readonly-field:hover {
    background: #f5f5f5;
}

.form-control:required:invalid {
    border-color: #ffc107;
}

.form-control:required:valid {
    border-color: #28a745;
}

.form-control:read-only {
    background: #f5f5f5;
    cursor: not-allowed;
}

/* Selected Slots Display */
.selected-slots-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.selected-slots-display strong {
    font-size: 1.1em;
    display: block;
    margin-bottom: 5px;
}

.selected-slots-display small {
    opacity: 0.9;
    font-size: 0.9em;
}

/* Time Slots Grid */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 15px;
    width: 100%;
    box-sizing: border-box;
}

.time-slot {
    padding: 12px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9em;
}

.time-slot:hover:not(.disabled):not(.selected) {
    border-color: #667eea;
    transform: translateY(-2px);
}

.time-slot.disabled {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
    border-color: #e0e0e0;
    position: relative;
    opacity: 0.6;
}

.time-slot.disabled::after {
    content: '✕';
    position: absolute;
    top: 2px;
    right: 5px;
    font-size: 0.8em;
    color: #dc3545;
    font-weight: bold;
}

.time-slot.disabled.past-slot {
    background: #ffe6e6;
    border-color: #ff9999;
}

.time-slot.disabled.past-slot::after {
    content: '⏰';
    color: #ff6b6b;
}

.time-slot.disabled:hover {
    transform: none;
    border-color: #e0e0e0;
}

.all-slots-booked-message {
    grid-column: 1 / -1;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    text-align: center;
    color: #856404;
    font-weight: 500;
}

.time-slot.selected {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.time-slot.premium {
    border-color: #ffa500;
    position: relative;
}

.time-slot.premium::after {
    content: "⭐";
    position: absolute;
    top: 2px;
    right: 5px;
    font-size: 0.8em;
}

.time-slot.premium.disabled::after {
    content: "✕";
    color: #dc3545;
    font-weight: bold;
}

/* Payment Notice */
.payment-notice {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.notice-content strong {
    display: block;
    color: #856404;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.notice-content p {
    color: #856404;
    margin: 10px 0;
}

.payment-amount {
    margin-top: 15px;
    font-size: 1.3em;
    font-weight: 700;
    color: #856404;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Messages */
.booking-messages {
    margin-top: 20px;
}

.message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-weight: 500;
}

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

/* Booking Limit Warning */
.booking-limit-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
}

.booking-limit-warning strong {
    display: block;
    color: #856404;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.booking-limit-warning p {
    color: #856404;
    margin: 0;
    line-height: 1.6;
}
}

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

.message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Login Required */
.login-required-message {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.login-required-message h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.login-required-message a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.login-required-message a:hover {
    text-decoration: underline;
}

/* My Bookings Section */
.my-bookings-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
}

.my-bookings-section h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.8em;
}

.bookings-list {
    display: grid;
    gap: 15px;
}

.booking-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: center;
    transition: all 0.3s ease;
}

.booking-item:hover {
    border-color: #667eea;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.2);
}

.booking-item-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.booking-game-icon {
    font-size: 2em;
}

.booking-details {
    flex: 1;
}

.booking-game-type {
    font-weight: 600;
    color: #2c3e50;
    text-transform: capitalize;
    margin-bottom: 5px;
}

.booking-date-time {
    color: #7f8c8d;
    font-size: 0.95em;
}

.booking-players {
    color: #555;
    font-size: 0.9em;
}

.booking-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
}

.booking-status.confirmed {
    background: #d4edda;
    color: #155724;
}

.booking-status.pending {
    background: #fff3cd;
    color: #856404;
}

.no-bookings {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-style: italic;
}

/* Pagination Styles */
.pagination-wrapper {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.pagination-info {
    text-align: center;
    color: #7f8c8d;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    background: white;
    color: #2c3e50;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 40px;
}

.pagination-btn:hover:not(.disabled):not(.active) {
    border-color: #667eea;
    color: #667eea;
    background: #f8f9ff;
}

.pagination-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-ellipsis {
    padding: 8px 4px;
    color: #7f8c8d;
}

.loading-message {
    text-align: center;
    padding: 40px;
    color: #667eea;
    font-size: 1.1em;
}

.error-message {
    text-align: center;
    padding: 40px;
    color: #e74c3c;
    font-size: 1.1em;
}

/* Multi-Step Form Styles */
.steps-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    padding: 0 20px;
    position: relative;
}

.steps-indicator::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: #e0e0e0;
    z-index: 0;
}

.step-item {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2em;
    margin: 0 auto 10px;
    transition: all 0.3s ease;
    border: 3px solid #e0e0e0;
}

.step-item.active .step-number {
    background: #667eea;
    color: white;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

.step-item.completed .step-number {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.step-item.completed .step-number::after {
    content: '✓';
    font-size: 1.5em;
}

.step-label {
    font-size: 0.9em;
    color: #7f8c8d;
    font-weight: 500;
}

.step-item.active .step-label {
    color: #667eea;
    font-weight: 600;
}

.step-item.completed .step-label {
    color: #28a745;
}

.form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    font-size: 1.5em;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

.step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.btn-next,
.btn-prev {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn-next {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-left: auto;
}

.btn-next:hover:not(.disabled):not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-next.disabled,
.btn-next:disabled {
    background: linear-gradient(135deg, #cccccc 0%, #999999 100%);
    color: #666666;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.btn-prev {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-prev:hover {
    background: #f8f9fa;
}

/* Review Section */
.review-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.review-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.review-item:last-child {
    border-bottom: none;
}

.review-item strong {
    color: #2c3e50;
    min-width: 150px;
}

.review-item span {
    color: #555;
    text-align: right;
}

/* Dashboard Tabs */
.dashboard-tabs {
    display: flex;
    gap: 10px;
    margin: 40px 0 30px;
    border-bottom: 2px solid #f0f0f0;
}

.tab-btn {
    padding: 15px 30px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1.1em;
    font-weight: 600;
    color: #7f8c8d;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    bottom: -2px;
}

.tab-btn:hover {
    color: #667eea;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Filters */
.bookings-filters,
.transactions-filters {
    margin-bottom: 25px;
}

.filter-select {
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    background: white;
    cursor: pointer;
    min-width: 200px;
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
}

/* Detailed Booking Items */
.booking-item.detailed {
    padding: 25px;
}

.booking-details {
    flex: 1;
}

.booking-date-time,
.booking-time-slot,
.booking-duration,
.booking-players,
.booking-player-details,
.booking-payment,
.booking-payment-id,
.booking-created {
    margin: 8px 0;
    font-size: 0.95em;
    line-height: 1.6;
}

.booking-player-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.booking-player-details div {
    margin: 5px 0;
}

/* Transactions Section */
.transactions-section {
    margin-top: 30px;
}

.transaction-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.transaction-item:hover {
    border-color: #667eea;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.2);
}

.transaction-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.transaction-game-icon {
    font-size: 2.5em;
}

.transaction-details {
    flex: 1;
}

.transaction-date {
    font-size: 1.1em;
    color: #2c3e50;
    margin-bottom: 5px;
}

.transaction-game {
    color: #7f8c8d;
    font-size: 0.95em;
    text-transform: capitalize;
}

.transaction-amount {
    font-size: 1.5em;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 8px;
}

.transaction-amount.paid {
    color: #28a745;
    background: #d4edda;
}

.transaction-amount.pending {
    color: #ffc107;
    background: #fff3cd;
}

.transaction-amount.free {
    color: #6c757d;
    background: #f8f9fa;
}

.transaction-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    font-size: 0.9em;
}

.transaction-id,
.transaction-payment-id,
.transaction-order-id,
.transaction-status,
.transaction-created {
    color: #555;
}

.transaction-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.paid {
    background: #d4edda;
    color: #155724;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.free {
    background: #e2e3e5;
    color: #383d41;
}

.no-transactions {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-style: italic;
}

/* Responsive Design */

/* Tablet Styles (768px - 1024px) */
/* Tablet Styles (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .club-booking-container {
        padding: 25px 15px;
    }
    
    .back-to-dashboard-btn {
        padding: 9px 18px;
        font-size: 0.92em;
    }
    
    .dashboard-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .dashboard-sidebar {
        width: 100%;
        display: flex;
        flex-direction: row;
        gap: 20px;
        align-items: flex-start;
    }
    
    .sidebar-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        flex: 1;
        margin-bottom: 0;
    }
    
    .sidebar-nav {
        flex-direction: row;
        flex: 1;
        gap: 10px;
    }
    
    .sidebar-tab-btn {
        flex: 1;
        justify-content: center;
        padding: 12px 15px;
    }
    
    .sidebar-tab-btn:hover {
        transform: translateY(-3px);
    }
    
    .booking-dashboard {
        padding: 35px 30px;
    }
    
    .dashboard-header {
        margin-bottom: 35px;
    }
    
    .dashboard-header h1 {
        font-size: 2.2em;
    }
    
    .booking-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-value {
        font-size: 2.2em;
    }
    
    .booking-form-wrapper {
        padding: 25px 20px;
    }
    
    .game-type-selector {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 8px;
    }
    
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .booking-item {
        grid-template-columns: 1fr auto;
        padding: 18px;
    }
    
    /* Pagination tablet */
    .pagination-controls {
        gap: 8px;
    }
    
    .pagination-btn {
        padding: 9px 14px;
        font-size: 0.9em;
    }
    
    /* Transaction items tablet */
    .transaction-item {
        padding: 18px;
    }
    
    .content-header {
        flex-direction: row;
        align-items: center;
    }
}

/* Mobile Landscape and Small Tablets (481px - 768px) */
@media (max-width: 768px) {
    .club-booking-container {
        padding: 20px 15px;
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .back-to-dashboard-btn {
        padding: 10px 18px;
        font-size: 0.9em;
        margin-bottom: 15px;
        width: auto;
        max-width: 100%;
    }
    
    .back-to-dashboard-btn .back-text {
        display: inline;
    }
    
    .back-to-dashboard-btn .back-icon {
        font-size: 1.3em;
    }
    
    .dashboard-layout {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .dashboard-sidebar {
        width: 100%;
        padding: 18px;
        box-sizing: border-box;
    }
    
    .sidebar-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 18px;
    }
    
    .sidebar-stats .stat-card {
        padding: 18px 12px;
        margin-bottom: 0;
    }
    
    .sidebar-nav {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .sidebar-tab-btn {
        padding: 14px 18px;
        font-size: 0.95em;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        flex-shrink: 0;
    }
    
    .sidebar-tab-btn:hover {
        transform: translateX(0);
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .content-header h2 {
        font-size: 1.5em;
    }
    
    .booking-dashboard {
        padding: 25px 20px;
        border-radius: 8px;
    }
    
    .dashboard-header {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }
    
    .dashboard-header h1 {
        font-size: 1.8em;
        line-height: 1.2;
    }
    
    .welcome-text {
        font-size: 1em;
    }
    
    .booking-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 30px;
    }
    
    .stat-card {
        padding: 20px 15px;
    }
    
    .stat-label {
        font-size: 0.8em;
        margin-bottom: 8px;
    }
    
    .stat-value {
        font-size: 2em;
        margin: 8px 0;
    }
    
    .stat-unit {
        font-size: 0.85em;
    }
    
    .booking-form-wrapper {
        padding: 20px 15px;
        border-radius: 8px;
        margin-bottom: 30px;
    }
    
    .form-section {
        margin-bottom: 25px;
    }
    
    .section-label {
        font-size: 1em;
        margin-bottom: 12px;
    }
    
    .game-type-selector {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .game-type-card {
        padding: 25px 20px;
    }
    
    .game-icon {
        font-size: 2.5em;
        margin-bottom: 8px;
    }
    
    .game-name {
        font-size: 1.1em;
    }
    
    .form-control {
        padding: 14px 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .time-slot {
        padding: 14px 10px;
        font-size: 0.9em;
        min-height: 48px; /* Better touch target */
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        word-break: break-word;
    }
    
    .time-slot.premium::after {
        font-size: 0.7em;
        top: 3px;
        right: 3px;
    }
    
    .player-selector {
        flex-direction: column;
        gap: 12px;
    }
    
    .player-option {
        padding: 16px 20px;
        min-height: 50px; /* Better touch target */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-group label {
        font-size: 0.9em;
        margin-bottom: 6px;
    }
    
    .payment-notice {
        padding: 15px;
        margin: 15px 0;
    }
    
    .notice-content strong {
        font-size: 1em;
        margin-bottom: 8px;
    }
    
    .notice-content p {
        font-size: 0.9em;
        margin: 8px 0;
    }
    
    .payment-amount {
        font-size: 1.1em;
        margin-top: 12px;
    }
    
    .btn-submit {
        padding: 16px 25px;
        font-size: 1em;
        min-height: 50px; /* Better touch target */
    }
    
    .my-bookings-section {
        margin-top: 40px;
        padding-top: 30px;
    }
    
    .my-bookings-section h2 {
        font-size: 1.5em;
        margin-bottom: 20px;
    }
    
    .booking-item {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 12px;
    }
    
    .booking-item-header {
        gap: 12px;
    }
    
    .booking-game-icon {
        font-size: 1.8em;
    }
    
    .booking-game-type {
        font-size: 0.95em;
    }
    
    .booking-date-time {
        font-size: 0.9em;
    }
    
    .booking-players {
        font-size: 0.85em;
    }
    
    .booking-status {
        padding: 6px 12px;
        font-size: 0.8em;
        text-align: center;
        width: fit-content;
    }
    
    /* Transaction items mobile */
    .transaction-item {
        padding: 15px;
    }
    
    .transaction-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .transaction-amount {
        font-size: 1.2em;
        align-self: flex-end;
    }
    
    .transaction-info {
        font-size: 0.9em;
    }
    
    /* Filter selects mobile */
    .filter-select {
        width: 100%;
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Pagination mobile */
    .pagination-wrapper {
        margin-top: 20px;
        padding-top: 15px;
    }
    
    .pagination-info {
        font-size: 0.85em;
        margin-bottom: 12px;
    }
    
    .pagination-controls {
        gap: 6px;
        flex-wrap: wrap;
    }
    
    .pagination-btn {
        padding: 8px 12px;
        font-size: 0.85em;
        min-width: 36px;
    }
    
    .pagination-ellipsis {
        padding: 8px 2px;
    }
    
    /* Content panels mobile */
    .tab-content-panel {
        padding: 0;
    }
    
    .content-header {
        padding-bottom: 15px;
        margin-bottom: 20px;
    }
    
    .bookings-list,
    .transactions-list {
        gap: 12px;
    }
    
    .login-required-message {
        padding: 40px 20px;
    }
    
    .login-required-message h2 {
        font-size: 1.5em;
    }
}

/* Multi-Step Responsive */
@media (max-width: 768px) {
    .steps-indicator {
        padding: 0 10px;
        margin-bottom: 30px;
    }
    
    .steps-indicator::before {
        left: 5%;
        right: 5%;
        top: 20px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1em;
    }
    
    .step-label {
        font-size: 0.75em;
    }
    
    .step-title {
        font-size: 1.2em;
        margin-bottom: 20px;
    }
    
    .step-actions {
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
    }
    
    .btn-next,
    .btn-prev {
        width: 100%;
        margin: 0;
    }
    
    .review-section {
        padding: 20px 15px;
    }
    
    .review-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .review-item strong {
        min-width: auto;
    }
    
    .review-item span {
        text-align: left;
    }
    
    .dashboard-tabs {
        flex-direction: column;
        gap: 0;
    }
    
    .tab-btn {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
        border-left: 3px solid transparent;
        border-right: none;
        padding: 15px;
    }
    
    .tab-btn.active {
        border-left-color: #667eea;
        border-bottom-color: #f0f0f0;
    }
    
    .transaction-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .transaction-amount {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
    
    .transaction-info {
        grid-template-columns: 1fr;
    }
}

/* Mobile Portrait (380px - 480px) - Optimized for 380px minimum */
@media (min-width: 380px) and (max-width: 480px) {
    .club-booking-container {
        padding: 18px 12px;
        min-width: 380px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .booking-dashboard {
        padding: 22px 18px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .dashboard-header h1 {
        font-size: 1.6em;
    }
    
    .sidebar-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .sidebar-stats .stat-card {
        padding: 16px 12px;
    }
    
    .stat-value {
        font-size: 1.9em;
    }
    
    .time-slots-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .time-slot {
        padding: 13px 8px;
        font-size: 0.88em;
        min-height: 46px;
    }
    
    .form-control {
        padding: 13px 12px;
        font-size: 16px;
    }
    
    .game-type-card {
        padding: 22px 18px;
    }
    
    .player-option {
        padding: 15px 20px;
        min-height: 48px;
    }
    
    .booking-item {
        padding: 16px;
    }
    
    .transaction-item {
        padding: 16px;
    }
}

/* Mobile Portrait (320px - 480px) */
@media (max-width: 480px) {
    .club-booking-container {
        padding: 15px 10px;
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .booking-dashboard {
        padding: 20px 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .dashboard-header {
        margin-bottom: 25px;
        padding-bottom: 15px;
    }
    
    .dashboard-header h1 {
        font-size: 1.5em;
    }
    
    .welcome-text {
        font-size: 0.95em;
    }
    
    .booking-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stat-card {
        padding: 18px 12px;
    }
    
    .stat-value {
        font-size: 1.8em;
    }
    
    .booking-form-wrapper {
        padding: 15px 12px;
    }
    
    .form-section {
        margin-bottom: 20px;
    }
    
    .section-label {
        font-size: 0.95em;
        margin-bottom: 10px;
    }
    
    .game-type-card {
        padding: 20px 15px;
    }
    
    .game-icon {
        font-size: 2em;
    }
    
    .game-name {
        font-size: 1em;
    }
    
    .form-control {
        padding: 12px 10px;
    }
    
    .time-slots-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .time-slot {
        padding: 13px 8px;
        font-size: 0.85em;
        min-height: 48px;
        box-sizing: border-box;
        word-break: break-word;
    }
    
    .player-option {
        padding: 14px 18px;
        font-size: 0.95em;
    }
    
    .payment-notice {
        padding: 12px;
    }
    
    .notice-content strong {
        font-size: 0.95em;
    }
    
    .notice-content p {
        font-size: 0.85em;
    }
    
    .payment-amount {
        font-size: 1em;
    }
    
    .btn-submit {
        padding: 14px 20px;
        font-size: 0.95em;
        letter-spacing: 0.5px;
        width: 100%;
    }
    
    /* Steps indicator small mobile */
    .steps-indicator {
        padding: 0 5px;
        margin-bottom: 25px;
    }
    
    .step-item {
        flex: 1;
    }
    
    .step-label {
        font-size: 0.7em;
        margin-top: 5px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9em;
    }
    
    /* Booking items small mobile */
    .booking-item {
        padding: 12px;
    }
    
    .booking-item-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .booking-game-icon {
        font-size: 1.5em;
    }
    
    /* Transaction items small mobile */
    .transaction-item {
        padding: 12px;
    }
    
    .transaction-header {
        gap: 10px;
    }
    
    .transaction-amount {
        font-size: 1.1em;
    }
    
    /* Filter selects small mobile */
    .filter-select {
        padding: 10px;
        font-size: 16px;
    }
    
    /* Pagination small mobile */
    .pagination-btn {
        padding: 6px 10px;
        font-size: 0.8em;
        min-width: 32px;
    }
    
    .pagination-info {
        font-size: 0.8em;
    }
    }
    
    .my-bookings-section h2 {
        font-size: 1.3em;
    }
    
    .booking-item {
        padding: 12px;
    }
    
    .booking-game-icon {
        font-size: 1.5em;
    }
    
    .message {
        padding: 12px 15px;
        font-size: 0.9em;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9em;
    }
    
    .step-label {
        font-size: 0.7em;
    }
    
    .review-section {
        padding: 15px 10px;
    }
}

/* Extra Small Mobile (max-width: 379px) - Below 380px */
@media (max-width: 379px) {
    .club-booking-container {
        padding: 12px 10px;
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .booking-dashboard {
        padding: 18px 14px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .dashboard-header h1 {
        font-size: 1.4em;
    }
    
    .welcome-text {
        font-size: 0.9em;
    }
    
    .sidebar-nav {
        width: 100%;
    }
    
    .sidebar-tab-btn {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        flex-shrink: 0;
    }
    
    .sidebar-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .sidebar-stats .stat-card {
        padding: 16px 12px;
    }
    
    .stat-value {
        font-size: 1.7em;
    }
    
    .time-slots-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    
    .time-slot {
        font-size: 0.8em;
        padding: 12px 6px;
        min-height: 44px;
    }
    
    .form-control {
        padding: 12px 10px;
        font-size: 16px;
    }
    
    .game-type-card {
        padding: 20px 15px;
    }
    
    .player-option {
        padding: 14px 18px;
        min-height: 46px;
    }
    
    .booking-item {
        padding: 14px;
    }
    
    .transaction-item {
        padding: 14px;
    }
    
    .btn-submit {
        padding: 14px 18px;
        font-size: 0.95em;
    }
}

/* Landscape Orientation Adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .club-booking-container {
        padding: 15px 10px;
    }
    
    .booking-dashboard {
        padding: 20px 25px;
    }
    
    .dashboard-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .dashboard-header h1 {
        font-size: 1.6em;
    }
    
    .booking-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    }
    
    .dashboard-layout {
        gap: 15px;
    }
    
    .sidebar-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sidebar-nav {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .sidebar-tab-btn {
        padding: 12px 15px;
        font-size: 0.9em;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        flex-shrink: 0;
    }
    
    .steps-indicator {
        margin-bottom: 20px;
    }
    
    .form-section {
        margin-bottom: 20px;
    }
}

/* Print Styles */
@media print {
    .booking-dashboard {
        box-shadow: none;
    }
    
    .btn-submit,
    .time-slot,
    .player-option {
        display: none;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.btn-loader {
    display: inline-block;
}

/* Touch States for Mobile */
.touch-active {
    transform: scale(0.95);
    opacity: 0.8;
}

.game-type-card.touch-active,
.time-slot.touch-active,
.player-option.touch-active {
    transform: scale(0.95);
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
    /* Prevent text size adjustment on iOS */
    html {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
    
    /* Better tap highlight */
    * {
        -webkit-tap-highlight-color: rgba(102, 126, 234, 0.2);
    }
    
    /* Smooth scrolling */
    html {
        scroll-behavior: smooth;
    }
    
    /* Better form input appearance */
    input[type="date"],
    input[type="time"],
    input[type="tel"],
    input[type="email"],
    input[type="text"] {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
    
    /* Remove number input spinners */
    input[type="number"]::-webkit-inner-spin-button,
    input[type="number"]::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }
    
    /* Better focus states for accessibility */
    .form-control:focus,
    .time-slot:focus,
    .player-option:focus,
    .game-type-card:focus {
        outline: 2px solid #667eea;
        outline-offset: 2px;
    }
    
    /* Ensure no horizontal overflow */
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    .club-booking-container,
    .booking-dashboard,
    .dashboard-layout,
    .dashboard-sidebar,
    .dashboard-content {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Better spacing for 380px+ devices */
    @media (min-width: 380px) {
        .club-booking-container {
            padding: 20px 15px;
        }
        
        .booking-dashboard {
            padding: 25px 20px;
        }
        
        .dashboard-sidebar {
            padding: 20px;
        }
        
        .form-control {
            padding: 14px 15px;
            font-size: 16px; /* Prevents zoom on iOS */
        }
        
        .time-slots-grid {
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
        }
        
        .time-slot {
            padding: 14px 10px;
            font-size: 0.9em;
            min-height: 48px;
        }
        
        .game-type-card {
            padding: 24px 20px;
        }
        
        .player-option {
            padding: 16px 22px;
            min-height: 50px;
        }
        
        .btn-submit {
            padding: 16px 28px;
            min-height: 50px;
        }
        
        .sidebar-nav {
            width: 100%;
        }
        
        .sidebar-tab-btn {
            padding: 15px 20px;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
            flex-shrink: 0;
        }
        
        .booking-item {
            padding: 18px;
        }
        
        .transaction-item {
            padding: 18px;
        }
        
        .content-header h2 {
            font-size: 1.6em;
        }
        
        .step-title {
            font-size: 1.3em;
        }
        
        .review-section {
            padding: 22px 18px;
        }
    }
}

/* Loading message */
.loading-message {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    font-style: italic;
}

.no-slots {
    text-align: center;
    padding: 30px 20px;
    color: #7f8c8d;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .stat-card {
        border: 2px solid white;
    }
    
    .time-slot.selected {
        border-width: 3px;
    }
    
    .form-control {
        border-width: 2px;
    }
}

