/* Gym Booking System Styles */

.gym-week-view {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.gym-week-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gym-week-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.gym-week-navigation {
    display: flex;
    gap: 1rem;
}

.gym-nav-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.gym-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.gym-login-notice,
.gym-membership-notice {
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.gym-membership-notice {
    background: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.gym-schedule {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gym-day {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.gym-day h3 {
    margin: 0 0 1rem 0;
    color: #495057;
    font-size: 1.2rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.gym-classes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.no-classes {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

.gym-class-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.gym-class-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.class-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.class-header h4 {
    margin: 0;
    color: #212529;
    font-size: 1.1rem;
    font-weight: 600;
}

.class-time {
    background: #007bff;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.class-details {
    margin-bottom: 1rem;
}

.class-details p {
    margin: 0.25rem 0;
    color: #495057;
    font-size: 0.9rem;
}

.class-details strong {
    color: #212529;
}

.class-description {
    font-style: italic;
    color: #6c757d !important;
    margin-top: 0.5rem !important;
}

.class-actions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.gym-book-class-btn,
.gym-join-waitlist-btn,
.gym-cancel-booking-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.gym-book-class-btn {
    background: #28a745;
    color: white;
}

.gym-book-class-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

.gym-join-waitlist-btn {
    background: #ffc107;
    color: #212529;
}

.gym-join-waitlist-btn:hover {
    background: #e0a800;
    transform: translateY(-1px);
}

.gym-cancel-booking-btn {
    background: #dc3545;
    color: white;
}

.gym-cancel-booking-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.user-booking-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.status-confirmed {
    color: #28a745;
    font-weight: 600;
    font-size: 0.9rem;
}

.status-waitlist {
    color: #ffc107;
    font-weight: 600;
    font-size: 0.9rem;
}

.class-full {
    color: #dc3545;
    font-weight: 600;
    font-size: 0.9rem;
}

.login-required,
.membership-required {
    color: #6c757d;
    font-size: 0.85rem;
    font-style: italic;
}

/* Membership Plans Styles */
.gym-membership-plans {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.membership-header {
    text-align: center;
    margin-bottom: 3rem;
}

.membership-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.membership-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.membership-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.membership-plan-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.membership-plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.membership-plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.plan-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.plan-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1rem 0;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: #667eea;
    line-height: 1;
}

.price-currency {
    font-size: 1.2rem;
    color: #6b7280;
    font-weight: 500;
}

.plan-description {
    margin-bottom: 1.5rem;
}

.plan-description p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

.plan-details {
    margin-bottom: 2rem;
}

.plan-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 10px;
    color: #374151;
    font-weight: 500;
}

.duration-icon {
    font-size: 1.2rem;
}

.plan-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #374151;
    font-size: 0.95rem;
}

.feature-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.plan-payment-section {
    border-top: 1px solid #f3f4f6;
    padding-top: 1.5rem;
}

.payment-type-selector {
    margin-bottom: 1.5rem;
}

.payment-type-selector h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 1rem 0;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.payment-option {
    position: relative;
    width: 100%;
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-label {
    display: block;
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    box-sizing: border-box;
}

.payment-label:hover {
    border-color: #667eea;
    background: #f8fafc;
}

.payment-option input[type="radio"]:checked + .payment-label {
    border-color: #667eea;
    background: #f0f4ff;
}

.payment-type-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.payment-type-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 1rem;
}

.payment-type-badge {
    background: #667eea;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.payment-type-badge.recurring {
    background: #10b981;
}

.payment-type-desc {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.purchase-membership-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.purchase-membership-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.purchase-membership-btn:active {
    transform: translateY(0);
}

.btn-text {
    flex: 1;
}

.btn-arrow {
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.purchase-membership-btn:hover .btn-arrow {
    transform: translateX(3px);
}

.login-required {
    text-align: center;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.login-required p {
    color: #6b7280;
    margin: 0 0 1rem 0;
    font-size: 1rem;
}

.login-btn {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.login-btn:hover {
    background: #5a67d8;
    color: white;
    transform: translateY(-1px);
}

.membership-footer {
    text-align: center;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
}

.membership-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #374151;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.guarantee-icon {
    font-size: 1.2rem;
}

/* Current Membership Status */
.current-membership {
    margin-bottom: 2rem;
}

.membership-status-card {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.status-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.status-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: rgba(255, 255, 255, 0.3);
}

.membership-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
}

.membership-info p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.membership-info strong {
    font-weight: 600;
    margin-right: 0.5rem;
}

.membership-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.membership-actions .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.membership-actions .btn-primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.membership-actions .btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-2px);
}

.membership-actions .btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.membership-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-1px);
}

/* Extend Membership Section */
.extend-membership-section {
    margin-bottom: 2rem;
    text-align: center;
}

.extend-membership-section h3 {
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.extend-membership-section p {
    color: #6b7280;
    font-size: 1.1rem;
}

/* No Membership Card */
.no-membership {
    margin-bottom: 2rem;
}

.no-membership-card {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.no-membership-card h3 {
    color: #92400e;
    margin-bottom: 0.5rem;
}

.no-membership-card p {
    color: #b45309;
    margin: 0;
}

/* Payment Success/Cancellation Pages */
.gym-payment-success,
.gym-payment-cancelled {
    text-align: center;
    padding: 3rem 2rem;
    max-width: 600px;
    margin: 2rem auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.5rem;
    color: white;
    font-weight: bold;
}

.cancelled-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.5rem;
    color: white;
    font-weight: bold;
}

.gym-payment-success h2,
.gym-payment-cancelled h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.gym-payment-success p,
.gym-payment-cancelled p {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.success-actions,
.cancelled-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.success-actions .btn,
.cancelled-actions .btn {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #e5e7eb;
    color: #374151;
    transform: translateY(-1px);
}

/* Responsive Design for Payment Pages */
@media (max-width: 768px) {
    .gym-payment-success,
    .gym-payment-cancelled {
        margin: 1rem;
        padding: 2rem 1rem;
    }
    
    .success-actions,
    .cancelled-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .success-actions .btn,
    .cancelled-actions .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}


/* Responsive Design for Membership Plans */
@media (max-width: 768px) {
    .gym-membership-plans {
        padding: 2rem 0.5rem;
    }
    
    .membership-header h2 {
        font-size: 2rem;
    }
    
    .membership-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .membership-plans-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .membership-plan-card {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .plan-name {
        font-size: 1.5rem;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
    
    .payment-options {
        gap: 0.5rem;
    }
    
    .payment-label {
        padding: 0.75rem;
    }
    
    .payment-type-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .payment-type-badge {
        align-self: flex-start;
    }
    
    .membership-footer {
        padding: 1.5rem;
    }
    
    .membership-guarantee {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .membership-header h2 {
        font-size: 1.8rem;
    }
    
    .membership-plan-card {
        padding: 1rem;
    }
    
    .plan-name {
        font-size: 1.3rem;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .purchase-membership-btn {
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }
}

/* Payment Options Styles */
.payment-options {
    margin-bottom: 15px;
    text-align: left;
}

.payment-choice {
    margin-bottom: 10px;
}

.payment-choice label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.payment-choice label:hover {
    border-color: #667eea;
    background-color: #f8f9fa;
}

.payment-choice input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.payment-choice input[type="radio"]:checked + .payment-option {
    color: #667eea;
}

.payment-choice input[type="radio"]:checked + .payment-option strong {
    color: #667eea;
}

.payment-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.payment-option strong {
    font-size: 1em;
    color: #333;
    margin-bottom: 2px;
}

.payment-option small {
    font-size: 0.85em;
    color: #666;
}

/* User Bookings Styles */
.gym-user-bookings {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.gym-user-bookings h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #212529;
}

.gym-bookings-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gym-booking-item {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.booking-info h4 {
    margin: 0 0 0.5rem 0;
    color: #212529;
    font-size: 1.1rem;
}

.booking-info p {
    margin: 0.25rem 0;
    color: #495057;
    font-size: 0.9rem;
}

.booking-status {
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

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

.booking-cancelled {
    background: #f8d7da;
    color: #721c24;
}

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

.booking-actions {
    display: flex;
    gap: 0.5rem;
}

/* Membership Status Styles */
.gym-membership-status {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gym-membership-status h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #212529;
}

.membership-active {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 1rem;
    color: #155724;
}

.membership-inactive {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 1rem;
    color: #721c24;
    text-align: center;
}

.gym-buy-membership-btn {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 1rem;
    transition: background 0.3s ease;
}

.gym-buy-membership-btn:hover {
    background: #0056b3;
    color: white;
}

/* Stripe Payment Form */
#stripe-payment-form {
    margin-top: 2rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

#payment-form {
    max-width: 400px;
    margin: 0 auto;
}

#card-element {
    padding: 1rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: white;
    margin-bottom: 1rem;
}

#card-errors {
    color: #dc3545;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

#submit-payment {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s ease;
}

#submit-payment:hover {
    background: #218838;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gym-week-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .gym-schedule {
        grid-template-columns: 1fr;
    }
    
    .gym-plans-grid {
        grid-template-columns: 1fr;
    }
    
    .gym-booking-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .class-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

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

.gym-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Success/Error Messages */
.gym-message {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    font-weight: 500;
}

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

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

/* Calendar View Styles */
.gym-calendar-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.calendar-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.week-navigation {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.prev-week-btn,
.next-week-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.prev-week-btn:hover,
.next-week-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.week-range {
    font-size: 1.2rem;
    font-weight: 600;
    min-width: 200px;
    text-align: center;
}

.calendar-legend {
    display: flex;
    gap: 1.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.available {
    background: #28a745;
}

.status-dot.full {
    background: #dc3545;
}

.status-dot.waitlist {
    background: #ffc107;
}

.status-dot.overdue {
    background: #6c757d;
}

.calendar-grid {
    display: flex;
    min-height: 600px;
    position: relative;
}

.days-column {
    width: 120px;
    min-width: 120px;
    background: #343a40;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.day-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    border-bottom: 1px solid #495057;
    padding: 1rem 0.5rem;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    min-height: 150px;
}

.day-label:last-child {
    border-bottom: none;
}

.day-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.day-number {
    font-size: 1.1rem;
    font-weight: 700;
}

.events-column {
    flex: 1;
    background: white;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    margin-left: 0;
}

.day-events {
    flex: 1;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    min-height: 150px;
    align-items: flex-start;
    flex-wrap: wrap;
    overflow-x: auto;
    overflow-y: visible;
}

.day-events:last-child {
    border-bottom: none;
}

.event-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 0;
    z-index: 1;
    min-width: 220px;
    max-width: 280px;
    flex-shrink: 0;
    height: auto;
    max-height: 120px;
    cursor: default;
}

.event-card.clickable-book,
.event-card.clickable-waitlist,
.event-card.clickable-login {
    cursor: pointer;
}

.event-card.clickable-book:hover,
.event-card.clickable-waitlist:hover,
.event-card.clickable-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.event-card:last-child {
    margin-bottom: 0;
}

.event-card.available {
    border-left: 4px solid #28a745;
}

.event-card.full {
    border-left: 4px solid #dc3545;
    background: #fff5f5;
}

.event-card.waitlist {
    border-left: 4px solid #ffc107;
    background: #fffbf0;
}

.event-card.overdue {
    border-left: 4px solid #6c757d;
    background: #f8f9fa;
    opacity: 0.6;
    filter: grayscale(0.3);
}

.event-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.event-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    line-height: 1.3;
}

.event-time {
    font-size: 0.85rem;
    color: #495057;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.event-participants {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.event-trainer {
    font-size: 0.8rem;
    color: #6c757d;
    font-style: italic;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.event-action-hint {
    font-size: 0.75rem;
    color: #6c757d;
    text-align: center;
    margin-top: 0.5rem;
    padding: 0.25rem;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

.event-card.clickable-book .event-action-hint {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.event-card.clickable-waitlist .event-action-hint {
    color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
}

.event-card.clickable-login .event-action-hint {
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
}

.event-card.overdue .event-action-hint {
    color: #6c757d;
    background: rgba(108, 117, 125, 0.1);
}

.event-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.event-card.loading .event-action-hint {
    background: rgba(0, 0, 0, 0.1);
    color: #6c757d;
}

/* Message styles */
.gym-message {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 1rem;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease-out;
}

.gym-message.success {
    background: #d4edda;
    color: #155724;
    border-bottom: 2px solid #28a745;
}

.gym-message.error {
    background: #f8d7da;
    color: #721c24;
    border-bottom: 2px solid #dc3545;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Add top padding to body when message is shown */
body:has(.gym-message) {
    padding-top: 60px;
}

/* Fallback for browsers that don't support :has() */
body.gym-message-shown {
    padding-top: 60px;
}

/* Old button styles removed - now using clickable cards */

/* Responsive Calendar */
@media (max-width: 768px) {
    .gym-calendar-container {
        padding: 0.5rem;
    }
    
    .calendar-header {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        padding: 1rem 0.5rem;
    }
    
    .calendar-legend {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .calendar-grid {
        display: flex;
        min-height: 600px;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .days-column {
        width: 100px;
        min-width: 100px;
        background: #343a40;
        display: flex;
        flex-direction: column;
    }
    
    .day-label {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: white;
        border-bottom: 1px solid #495057;
        padding: 0.75rem 0.5rem;
        writing-mode: vertical-rl;
        text-orientation: mixed;
        min-height: 135px;
        font-size: 0.9rem;
    }
    
    .day-label:last-child {
        border-bottom: none;
    }
    
    .day-name {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
    }
    
    .day-number {
        font-size: 1rem;
    }
    
    .events-column {
        flex: 1;
        background: white;
        display: flex;
        flex-direction: column;
        overflow-x: auto;
    }
    
    .day-events {
        flex: 1;
        padding: 0.75rem;
        border-bottom: 1px solid #e9ecef;
        display: flex;
        flex-direction: row;
        gap: 0.75rem;
        min-height: 135px;
        align-items: flex-start;
        flex-wrap: wrap;
        overflow-x: auto;
        overflow-y: visible;
    }
    
    .day-events:last-child {
        border-bottom: none;
    }
    
    .event-card {
        background: #f8f9fa;
        border: 1px solid #dee2e6;
        border-radius: 6px;
        padding: 0.6rem;
        transition: all 0.3s ease;
        position: relative;
        margin-bottom: 0;
        z-index: 1;
        min-width: 200px;
        max-width: 250px;
        flex-shrink: 0;
        height: auto;
        max-height: 100px;
    }
    
    .event-title {
        font-size: 0.9rem;
        line-height: 1.2;
    }
    
    .event-time,
    .event-participants,
    .event-trainer {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
        line-height: 1.2;
    }
    
    .event-actions .book-class-btn,
    .event-actions .join-waitlist-btn,
    .event-actions .status-text,
    .event-actions .login-to-book {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .gym-calendar-container {
        padding: 0.25rem;
    }
    
    .calendar-header {
        padding: 0.75rem 0.25rem;
    }
    
    .week-range {
        font-size: 0.9rem;
        min-width: 120px;
    }
    
    .calendar-legend {
        gap: 0.75rem;
    }
    
    .legend-item {
        font-size: 0.75rem;
    }
    
    .days-column {
        width: 80px;
        min-width: 80px;
    }
    
    .day-label {
        padding: 0.5rem 0.3rem;
        min-height: 100px;
        font-size: 0.8rem;
    }
    
    .day-name {
        font-size: 0.7rem;
        margin-bottom: 0.15rem;
    }
    
    .day-number {
        font-size: 0.9rem;
    }
    
    .day-events {
        padding: 0.5rem;
        gap: 0.5rem;
        min-height: 100px;
        overflow-x: auto;
        overflow-y: visible;
    }
    
    .event-card {
        padding: 0.5rem;
        min-width: 180px;
        max-width: 220px;
        max-height: 85px;
    }
    
    .event-title {
        font-size: 0.85rem;
    }
    
    .event-time,
    .event-participants,
    .event-trainer {
        font-size: 0.75rem;
        margin-bottom: 0.15rem;
    }
    
    .event-actions .book-class-btn,
    .event-actions .join-waitlist-btn,
    .event-actions .status-text,
    .event-actions .login-to-book {
        padding: 0.3rem 0.5rem;
        font-size: 0.7rem;
    }
}

/* Cancel Subscription Button */
.btn-danger {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 10px;
}

.btn-danger:hover {
    background-color: #c82333;
    color: white;
    text-decoration: none;
}

.btn-danger:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Login Form Styles */
.gym-login-form {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
}

.gym-login-form.logged-in {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.gym-login-form .login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.gym-login-form .login-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
}

.gym-login-form.logged-in .login-header h3 {
    color: white;
}

.gym-login-form .login-header p {
    margin: 0;
    color: #718096;
    font-size: 0.9rem;
}

.gym-login-form.logged-in .login-header p {
    color: rgba(255, 255, 255, 0.9);
}

.gym-login-form .form-group {
    margin-bottom: 1.5rem;
}

.gym-login-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2d3748;
    font-size: 0.9rem;
}

.gym-login-form input[type="text"],
.gym-login-form input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.gym-login-form input[type="text"]:focus,
.gym-login-form input[type="password"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.gym-login-form .remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.gym-login-form .checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #4a5568;
}

.gym-login-form .checkbox-label input[type="checkbox"] {
    margin-right: 0.5rem;
    width: auto;
}

.gym-login-form .login-submit {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.gym-login-form .login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.gym-login-form .login-submit:active {
    transform: translateY(0);
}

.gym-login-form .login-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.gym-login-form .login-messages {
    margin-top: 1rem;
}

.gym-login-form .error-message,
.gym-login-form .success-message {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.gym-login-form .error-message {
    background-color: #fed7d7;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.gym-login-form .success-message {
    background-color: #c6f6d5;
    color: #2f855a;
    border: 1px solid #9ae6b4;
}

.gym-login-form .login-footer {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.gym-login-form .lost-password {
    margin-bottom: 1rem;
}

.gym-login-form .lost-password-link {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.gym-login-form .lost-password-link:hover {
    color: #5a67d8;
    text-decoration: underline;
}

.gym-login-form .register-link {
    font-size: 0.9rem;
    color: #718096;
}

.gym-login-form .register-link-text {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.gym-login-form .register-link-text:hover {
    color: #5a67d8;
    text-decoration: underline;
}

.gym-login-form .user-info {
    margin-bottom: 1.5rem;
}

.gym-login-form .user-info h3 {
    margin: 0 0 0.5rem 0;
    color: white;
}

.gym-login-form .user-info p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.gym-login-form .user-actions {
    text-align: center;
}

.gym-login-form .user-actions .btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.gym-login-form .user-actions .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Inline Login Form */
.inline-login-form {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.inline-login-form .gym-login-form {
    margin: 0;
    padding: 0;
    box-shadow: none;
    border: none;
    background: transparent;
}

/* Login Required Section */
.login-required-section {
    margin: 2rem 0;
    text-align: center;
}

.login-required-card {
    padding: 2rem;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    max-width: 500px;
    margin: 0 auto;
}

.login-required-card h3 {
    margin: 0 0 1rem 0;
    color: #2d3748;
    font-size: 1.25rem;
}

.login-required-card p {
    margin: 0 0 1.5rem 0;
    color: #718096;
    line-height: 1.5;
}

.show-login-form-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.show-login-form-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .gym-login-form {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .login-required-card {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .inline-login-form {
        margin: 1rem 0;
        padding: 1rem;
    }
}
