/* Base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f9f9f9;
    padding-top: 60px; /* Compensate for fixed header */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header styles */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 22px;
    color: #1a1a1a;
}

.logo svg {
    margin-right: 10px;
    stroke: #4CAF50;
    width: 28px;
    height: 28px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    font-size: 15px;
    padding: 5px 0;
    position: relative;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #1a1a1a;
}

.nav-links a.active {
    color: #4CAF50;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #4CAF50;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-name {
    font-weight: 500;
}

.header-action-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    margin-left: 10px;
}

.header-action-btn:hover,
.header-action-btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    outline: none;
}

/* Hero section */

.hero {
    margin-top: 0;
    padding: 60px 20px 40px; /* Reduced padding */
    position: relative;
    overflow: hidden;
    min-height: auto; /* Changed from calc(100vh - 60px) */
    display: flex;
    flex-direction: column; /* Added to stack content vertically */
    align-items: center;
    background: none;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 40px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e8f5e9 100%);
    z-index: -2;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    background-image: 
        repeating-linear-gradient(45deg, #000 25%, transparent 25%, transparent 75%, #000 75%, #000),
        repeating-linear-gradient(-45deg, #000 25%, transparent 25%, transparent 75%, #000 75%, #000);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    z-index: -1;
}


.hero-content {
    max-width: 1100px; /* Reduced from 1200px */
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    flex: 1; /* Added to take available space */
}

.hero-text h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #1a1a1a 0%, #4CAF50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 22px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: none;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-bottom: 48px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: #4CAF50;
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
    display: block;
}

.hero-cta {
    display: flex;
    gap: 20px;
    align-items: center;
}

.cta-primary {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 18px 36px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.3);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.cta-secondary {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.cta-secondary:hover {
    color: #1a1a1a;
    gap: 12px;
}

/* Hero Visual - Phone Mockup */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 320px;
    height: 640px;
    background: #1a1a1a;
    border-radius: 36px;
    padding: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.phone-mockup:hover {
    transform: rotate(0deg);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

.mockup-header {
    background: #4CAF50;
    color: white;
    padding: 20px;
    text-align: center;
    font-weight: 600;
}

.mockup-content {
    padding: 20px;
}

.mockup-tee-time {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.mockup-tee-time:hover {
    background: #eee;
    transform: translateX(4px);
}

.mockup-book-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    background: white;
    border-radius: 24px;
    padding: 16px 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.badge-1 {
    top: 20px;
    right: -60px;
    animation: float 3s ease-in-out infinite;
}

.badge-2 {
    bottom: 60px;
    left: -60px;
    animation: float 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Built by section */

.built-by {
    position: relative; /* Changed from absolute */
    margin-top: 40px; /* Added spacing from content above */
    text-align: center;
    color: #666;
    font-size: 14px;
    width: 100%; /* Ensure full width */
    padding: 20px 0 0; /* Added top padding */
}
.built-by a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
}

.built-by a:hover {
    text-decoration: underline;
}

/* Main content */
main {
    padding: 40px 0;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #4CAF50;
}

/* Course grid */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.course-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.course-img {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.course-info {
    padding: 16px;
}

.course-name {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 18px;
    color: #333;
}

.course-details {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.book-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    width: 100%;
    transition: background-color 0.3s;
}

.book-btn:hover {
    background-color: #3d8b40;
}

/* Loading indicator */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(76, 175, 80, 0.1);
    border-radius: 50%;
    border-top-color: #4CAF50;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 15px;
}

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

/* Modal styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
}

.modal-overlay.active {
    display: block;
}

.modal {
    background-color: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    margin: 60px auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.modal-title {
    margin: 0;
    font-size: 1.4rem;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #777;
}

.modal-content {
    padding: 20px;
}

/* Login form */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.login-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    width: 100%;
    margin-top: 10px;
}

.login-btn:hover {
    background-color: #3d8b40;
}

.status-message {
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    display: none;
}

.status-message.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.status-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

/* Date range container styles */
.date-range-container {
    display: flex;
    overflow-x: auto;
    padding: 10px 0;
    gap: 8px;
    scroll-behavior: smooth;
}

.day-box {
    min-width: 80px;
    height: 90px;
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.day-box:hover {
    background-color: #e8f5e9;
    transform: translateY(-2px);
}

.day-box.selected {
    background-color: #4CAF50;
    color: white;
}

.day-box.today {
    border: 2px solid #4CAF50;
}

.day-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.day-number {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 2px;
}

.month-name {
    font-size: 12px;
    color: #666;
}

.day-box.selected .month-name {
    color: rgba(255, 255, 255, 0.9);
}

/* Calendar styles */
.calendar-header {
    text-align: center;
    margin-bottom: 15px;
}

#calendarMonth {
    font-size: 18px;
    font-weight: 500;
}

.weekday {
    text-align: center;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.day {
    text-align: center;
    padding: 10px 0;
    border-radius: 4px;
    cursor: default;
}

.day.empty {
    background: none;
}

.day.available {
    background-color: #f8f8f8;
    cursor: pointer;
    transition: all 0.2s;
}

.day.available:hover {
    background-color: #4CAF50;
    color: white;
}

.day.disabled {
    color: #ccc;
    background: #f8f8f8;
    cursor: not-allowed;
}

.day.today {
    font-weight: bold;
    border: 2px solid #4CAF50;
}

/* Tee Time Slots View */
.selected-date-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.back-button {
    background: none;
    border: none;
    color: #4CAF50;
    cursor: pointer;
    font-size: 16px;
    margin-right: 15px;
    padding: 0;
}

.back-button:hover {
    text-decoration: underline;
}

.tee-times-loading {
    display: none;
    margin: 40px auto;
    text-align: center;
}

.tee-times-loading .spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

.tee-times-list {
    max-height: 400px;
    overflow-y: auto;
}

.hour-section {
    margin-bottom: 20px;
}

.hour-header {
    background-color: #f5f5f5;
    padding: 8px 15px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.time-slot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    gap: 10px;
}

.time-slot:hover {
    background-color: #f0f7f0;
    border-color: #4CAF50;
}

/* Container for Time and Details (Left Side) */
.time-slot-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.time-slot .time {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
}

.time-slot .time-details {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.85em;
    margin-top: 3px;
}

.time-slot .spots {
    color: #666;
}

.time-slot .price-info {
    color: #4CAF50;
    font-weight: 500;
}

/* Container for Action Buttons (Right Side) */
.time-slot-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Watch Button Styles */
.watch-btn {
    background-color: #e8eaf6;
    color: #3f51b5;
    border: 1px solid #c5cae9;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 12px;
    line-height: 1;
    text-align: center;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
}

.watch-btn:hover,
.watch-btn:focus {
    background-color: #3f51b5;
    color: white;
    border-color: #303f9f;
    outline: none;
}

.watch-btn[disabled],
.watch-btn.watching {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-color: #c8e6c9;
    cursor: default;
    opacity: 0.8;
}

.watch-btn .eye-icon {
    margin-right: 4px;
    vertical-align: middle;
}

.time {
    font-weight: 500;
}

.time-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.spots {
    color: #666;
    font-size: 0.9em;
}

.price-info {
    color: #4CAF50;
    font-size: 0.9em;
    margin-top: 4px;
}

.no-tee-times {
    text-align: center;
    padding: 30px 0;
    color: #666;
}

/* Call Confirmation Modal */
.call-confirm-modal {
    max-width: 400px;
}

.tee-time-details {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tee-time-details strong {
    margin-bottom: 8px;
    font-size: 1.1em;
}

.call-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.secondary-btn {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.secondary-btn:hover {
    background-color: #e5e5e5;
}

.secondary-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    background-color: #f5f5f5;
    color: #999;
}

.call-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.call-btn:hover {
    background-color: #3d8b40;
}

/* Modal size adjustments */
.tee-time-modal {
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Stats page styles */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stats-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.stats-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

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

.stat-label {
    font-weight: 500;
    color: #666;
}

.punch-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.punch-bar {
    flex: 1;
    height: 20px;
    background-color: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.punch-progress {
    height: 100%;
    background-color: #4CAF50;
    border-radius: 10px;
}

.punch-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    color: #333;
}

.recent-list {
    list-style: none;
}

.recent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

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

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

.badge-punch {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.badge-paid {
    background-color: #e3f2fd;
    color: #1565c0;
}

.no-data {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
}

.no-data h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

/* Updated styles for the All Activity section */
.round-stats {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.all-rounds-list {
    list-style: none;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.round-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

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

.round-item .course-name {
    font-weight: 500;
    margin-bottom: 4px;
}

.round-item .date {
    font-size: 14px;
    color: #666;
}

.round-item .badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* Add scroll styling */
.all-rounds-list::-webkit-scrollbar {
    width: 6px;
}

.all-rounds-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.all-rounds-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.all-rounds-list::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    margin-top: 40px;
}

/* Version tag */
.version-tag {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
}

/* Booking Form Styles */
.booking-modal {
    max-width: 450px;
}

.number-selector {
    display: flex;
    align-items: center;
}

.number-selector select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: #fff;
}

.option-selector {
    display: flex;
    gap: 20px;
}

.option-selector label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.booking-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
}

#callNoticeContainer {
    text-align: center;
    background-color: #fff8e1;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
}

.form-group {
    margin-bottom: 20px;
}

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

/* Loading state for the book button */
.book-btn.loading {
    position: relative;
    color: transparent;
}

.book-btn.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

/* Financial Summary Styles */
#financialSummary h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.financial-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
}

.financial-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    color: #555;
}

.financial-list li:last-child {
    border-bottom: none;
}

.financial-list .course-name {
    font-weight: 500;
    color: #333;
}

.financial-list .amount {
    font-weight: 600;
    color: #4CAF50;
}

#financialSummary p {
    color: #666;
    font-style: italic;
    padding: 10px 0;
}

#financialSummary p[style*="color: red"] {
    font-style: normal;
    font-weight: 500;
}

/* Upcoming Reservations Styles */
#upcomingReservations {
    margin-top: 15px;
    min-height: 50px;
}

#upcomingReservations p {
    color: #666;
    font-style: italic;
    padding: 10px 0;
}

#upcomingReservations p[style*="color:red"] {
    font-style: normal;
    font-weight: 500;
}

#upcomingReservations ul.reservations {
    list-style: none;
    padding: 0;
    margin: 0;
}

#upcomingReservations li.reservation {
    background-color: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px 15px;
}

#upcomingReservations li.reservation:last-child {
    margin-bottom: 0;
}

.reservation-details {
    flex-grow: 1;
    min-width: 200px;
}

.reservation-details h4 {
    margin: 0 0 4px 0 !important;
    font-size: 1.05rem;
    color: #333;
    font-weight: 600;
}

.reservation-details .details {
    font-size: 0.9rem;
    color: #555;
    display: block;
}

.reservation-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #666;
    flex-basis: 100%;
    order: 3;
    padding-top: 5px;
    border-top: 1px dashed #eee;
    margin-top: 5px;
}

.reservation-meta > div {
    display: flex;
    align-items: center;
    gap: 5px;
}

.reservation-meta .glyphicon {
    font-size: 0.9em;
    opacity: 0.7;
}

.reservation-cancel-button {
    background-color: #fbebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    text-align: center;
    transition: all 0.2s ease-in-out;
    margin-left: auto;
    order: 2;
    align-self: center;
}

.reservation-cancel-button:hover,
.reservation-cancel-button:focus {
    background-color: #c62828;
    color: white;
    border-color: #b71c1c;
    outline: none;
}

.reservation-cancel-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    background-color: #fbebee;
    color: #ef9a9a;
}

/* Badge styles */
.badge-standard {
    background-color: #e3f2fd;
    color: #1565c0;
}

.badge-loyalty {
    background-color: #fff8e1;
    color: #ff8f00;
}

.badge-promo {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.round-item.loyalty .badge,
.round-item.promo .badge {
    font-size: 11px;
}

/* Fee Badges Styles */
.fee-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
}

.fee-badge {
    background-color: #f0f7f0;
    border: 1px solid #c8e6c9;
    border-radius: 12px;
    padding: 3px 8px;
    font-size: 12px;
    color: #2e7d32;
    display: inline-flex;
    align-items: center;
}

.fee-badge small {
    opacity: 0.8;
    margin: 0 2px;
}

.pass-badge {
    background-color: #f3e5f5;
    border-color: #e1bee7;
    color: #7b1fa2;
}

/* Notification Settings */
.notification-settings {
    padding: 10px 0;
}

.tee-time-optin {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.custom-checkbox {
    margin-right: 10px;
    margin-top: 3px;
}

.notification-options h4 {
    margin-bottom: 10px;
    font-size: 16px;
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.option-item {
    display: flex;
    align-items: center;
}

.option-item input {
    margin-right: 8px;
}

#preferencesMessage {
    padding: 8px;
    border-radius: 4px;
}

#preferencesMessage.success {
    background-color: #e6f7e6;
    color: #2e7d32;
}

#preferencesMessage.error {
    background-color: #ffebee;
    color: #c62828;
}

/* Watch Management Styles */
.watch-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.watch-details h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.1rem;
}

.watch-details .watch-info {
    font-size: 0.9rem;
    color: #666;
}

.unwatch-btn {
    background-color: #fbebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s ease-in-out;
}

.unwatch-btn:hover {
    background-color: #c62828;
    color: white;
    border-color: #b71c1c;
}

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

/* Loyalty Points Styles */
.loyalty-points-highlight {
    background-color: #e8f5e9;
    border-left: 4px solid #4CAF50;
    padding-left: 12px;
    margin: 10px 0;
}

.loyalty-value {
    font-weight: 700;
    color: #2e7d32;
    font-size: 1.1em;
}

.loyalty-info-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #4CAF50;
    padding: 4px;
    margin-left: 8px;
    transition: all 0.2s;
    vertical-align: middle;
}

.loyalty-info-btn:hover {
    color: #2e7d32;
    transform: scale(1.1);
}

.loyalty-info-btn svg {
    vertical-align: middle;
}

/* Loyalty Modal Styles */
.loyalty-balance {
    background-color: #f0f7f0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.loyalty-balance h4 {
    margin: 0;
    color: #333;
}

.loyalty-balance .loyalty-value {
    font-size: 1.3em;
}

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

.redemption-section h4 {
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 8px;
}

.table-responsive {
    overflow-x: auto;
}

.redemption-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.redemption-table thead {
    background-color: #4CAF50;
    color: white;
}

.redemption-table th,
.redemption-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
}

.redemption-table th {
    font-weight: 600;
    font-size: 14px;
}

.redemption-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.redemption-table tbody tr:hover {
    background-color: #f0f7f0;
}

.redemption-table .can-afford {
    background-color: #c8e6c9;
    color: #1b5e20;
    font-weight: 600;
}

.redemption-table .na-cell {
    background-color: #f5f5f5;
    color: #999;
    font-style: italic;
}

.loyalty-note {
    background-color: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 4px;
    padding: 15px;
    margin-top: 20px;
}

.loyalty-note p {
    margin: 0;
    font-size: 14px;
}

.loyalty-note .can-afford {
    background-color: #c8e6c9;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
}

/* Inline Watch Item Styles */
.watch-item-inline {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.watch-item-inline:hover {
    background-color: #f5f5f5;
    border-color: #4CAF50;
}

.watch-details {
    flex-grow: 1;
}

.watch-course {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
    margin-bottom: 3px;
}

.watch-datetime {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.watch-condition {
    color: #888;
    font-size: 0.8rem;
    font-style: italic;
}

.unwatch-btn-inline {
    background-color: #fbebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
}

.unwatch-btn-inline:hover {
    background-color: #c62828;
    color: white;
    border-color: #b71c1c;
}

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

#watchLimitMessage {
    margin-top: 15px;
    padding: 10px;
    background-color: #f0f7ff;
    border-radius: 4px;
    font-size: 0.9em;
    color: #555;
    border: 1px solid #e0e9ff;
}

#activeWatchesContainer .loading {
    padding: 20px;
    text-align: center;
}

#activeWatchesContainer .spinner {
    width: 30px;
    height: 30px;
    margin: 0 auto 10px;
}

/* Payment Links Styles */
.payment-settings {
    padding: 10px 0;
}

.payment-option {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.payment-option:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.payment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.payment-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 14px;
}

.venmo { background-color: #008CFF; }
.paypal { background-color: #003087; }
.zelle { background-color: #6D1ED4; }
.cashapp { background-color: #00D632; }

.payment-name {
    font-weight: 500;
    color: #333;
    font-size: 16px;
}

.input-wrapper {
    position: relative;
}

.payment-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.payment-input:focus {
    outline: none;
    border-color: #4CAF50;
}

#paymentLinksMessage.success {
    color: #2e7d32;
}

#paymentLinksMessage.error {
    color: #c62828;
}

#shareBookingBtn img {
    width: 18px;
    height: 18px;
    filter: brightness(0) saturate(100%);
}

#shareBookingBtn:hover img {
    filter: brightness(0) saturate(100%) opacity(0.8);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    body {
        padding-top: 40px; /* Ensure padding on mobile too */
    }
    
    .hero {
        padding: 40px 20px 30px; 
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 40px;
    }

    .hero-text p {
        font-size: 18px;
    }

    .hero-visual {
        display: none;
    }

    .hero-stats {
        justify-content: center;
        gap: 32px;
    }

    .stat-number {
        font-size: 36px;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .cta-primary {
        width: 100%;
    }

    .hero h1 {
        font-size: 2rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .modal {
        width: 95%;
        margin: 30px auto;
    }
    
    .call-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .call-actions button {
        width: 100%;
    }
    
    .redemption-table {
        font-size: 12px;
    }
    
    .redemption-table th,
    .redemption-table td {
        padding: 8px 4px;
    }
}

@media screen and (max-width: 520px) {
    #upcomingReservations li.reservation {
        flex-direction: column;
        align-items: stretch;
    }
    
    .reservation-details {
        margin-bottom: 10px;
        text-align: center;
    }
    
    .reservation-meta {
        order: 2;
        justify-content: center;
        border-top: none;
        padding-top: 0;
        margin-top: 0;
    }
    
    .reservation-cancel-button {
        order: 3;
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        width: 100%;
        justify-content: space-around;
    }
    
    .user-info {
        width: 100%;
        justify-content: space-between;
    }
    
    .financial-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 10px 0;
    }
    
    #exportCsvBtn,
    #refreshFinancialsBtn {
        display: block;
        width: 100%;
        margin-left: 0;
        margin-bottom: 10px;
    }
    
    #exportCsvBtn:last-child,
    #refreshFinancialsBtn:last-child {
        margin-bottom: 0;
    }
}

@media screen and (max-width: 400px) {
    .time-slot {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .time-slot-main {
        text-align: center;
    }
    
    .time-slot-main .time-details {
        justify-content: center;
    }
    
    .time-slot-actions {
        justify-content: center;
        margin-top: 5px;
    }
}



/* Add more specific mobile styles */
@media screen and (max-width: 480px) {
    .hero-text h1 {
        font-size: 32px; /* Reduced from 56px */
        margin-bottom: 16px;
    }

    .hero-text p {
        font-size: 16px; /* Reduced from 22px */
        margin-bottom: 24px;
        line-height: 1.5;
    }

    .hero-stats {
        gap: 24px; /* Reduced from 48px */
        margin-bottom: 32px;
    }

    .stat-number {
        font-size: 28px; /* Reduced from 42px */
    }

    .stat-label {
        font-size: 12px; /* Reduced from 14px */
    }

    .cta-primary {
        padding: 14px 24px; /* Reduced from 18px 36px */
        font-size: 16px; /* Reduced from 18px */
    }

    .cta-secondary {
        font-size: 14px; /* Reduced from 16px */
    }
}

/* For very small screens */
@media screen and (max-width: 360px) {
    .hero-text h1 {
        font-size: 28px;
    }

    .hero-stats {
        gap: 16px;
    }

    .stat-number {
        font-size: 24px;
    }
}

/* Maintenance Message Styles */
.maintenance-message {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 24px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e1e5e9;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.maintenance-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
}

.maintenance-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.maintenance-text {
    flex: 1;
}

.maintenance-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
    margin-bottom: 4px;
}

.maintenance-details {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.maintenance-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 12px;
}

.maintenance-close:hover {
    background: #f5f5f5;
    color: #666;
}

.maintenance-close:active {
    background: #e0e0e0;
}

/* Responsive adjustments for maintenance messages */
@media screen and (max-width: 768px) {
    .maintenance-message {
        padding: 20px;
        margin: 16px 0;
    }
    
    .maintenance-content {
        gap: 12px;
    }
    
    .maintenance-icon {
        font-size: 20px;
    }
    
    .maintenance-title {
        font-size: 15px;
    }
    
    .maintenance-details {
        font-size: 13px;
    }
    
    .maintenance-close {
        font-size: 18px;
        padding: 2px 6px;
    }
}

@media screen and (max-width: 480px) {
    .maintenance-message {
        padding: 16px;
        border-radius: 8px;
    }
    
    .maintenance-content {
        gap: 10px;
    }
    
    .maintenance-title {
        font-size: 14px;
    }
    
    .maintenance-details {
        font-size: 12px;
    }
}
