/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --brand-primary: #3a6e35;
    --brand-secondary: #5a9e54;
    --brand-header-bg: #3a6e35;
    --brand-header-text: #ffffff;
    --brand-text: #333333;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Wider container for admin pages */
body.admin-page .container {
    max-width: 1400px;
}

/* Header Styles */
header, #site-header {
    background-color: var(--brand-header-bg, #3a6e35);
    color: var(--brand-header-text, #ffffff);
    padding: 20px 0;
    text-align: center;
    transition: background-color 0.3s ease;
}

header h1, #header-title {
    margin-bottom: 10px;
    font-size: 2.5rem;
    color: var(--brand-header-text, #ffffff);
}

header p, #header-subtitle {
    color: var(--brand-header-text, #ffffff);
    opacity: 0.9;
}

/* Header content layout for branding */
.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo img {
    max-height: 50px;
    max-width: 200px;
    object-fit: contain;
}

/* Main Content Styles */
main {
    padding: 40px 0;
}

section {
    margin-bottom: 40px;
}

h2 {
    color: #3a6e35;
    margin-bottom: 20px;
    font-size: 2rem;
}

h3 {
    color: #3a6e35;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Course Image */
.course-image {
    margin-bottom: 30px;
    text-align: center;
    display: none; /* Hidden by default, shown via JS if enabled in config */
}

.course-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Booking Container */
.booking-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .booking-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .booking-form-container {
        grid-column: span 2;
    }
}

@media (min-width: 1024px) {
    .booking-container {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .booking-form-container {
        grid-column: auto;
    }
}

/* Calendar Styles */
.calendar-container, .time-slots-container, .booking-form-container {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#calendar {
    max-width: 100%;
}

#calendar .calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

#calendar .calendar-header button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #3a6e35;
}

#calendar .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

#calendar .weekday {
    text-align: center;
    font-weight: bold;
    padding: 5px 0;
}

#calendar .calendar-day {
    min-height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#calendar .calendar-day.current-month {
    background-color: #f0f0f0;
}

#calendar .calendar-day.selected {
    background-color: #3a6e35;
    color: white;
}

#calendar .calendar-day.other-month {
    color: #aaa;
    background-color: #f9f9f9;
}

#calendar .calendar-day:hover:not(.other-month):not(.past) {
    background-color: #d5e8d4;
}

#calendar .calendar-day.past {
    color: #aaa;
    text-decoration: line-through;
    cursor: not-allowed;
    background-color: #f0f0f0;
    position: relative;
}

#calendar .calendar-day.past::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px solid #ccc;
}

/* Time Slots Styles */
#time-slots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    #time-slots {
        grid-template-columns: repeat(2, 1fr);
    }
}

.time-slot {
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.time-slot.available {
    background-color: #d5e8d4;
    border: 1px solid #82b366;
}

.time-slot.partial {
    background-color: #fff2cc;
    border: 1px solid #d6b656;
}

.time-slot.booked, .time-slot.blocked {
    background-color: #f8cecc;
    border: 1px solid #b85450;
    cursor: not-allowed;
    opacity: 0.7;
}

.time-slot.selected {
    box-shadow: 0 0 0 2px #3a6e35;
    transform: scale(1.05);
}

/* Legend */
.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.status-indicator {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator.available {
    background-color: #d5e8d4;
    border: 1px solid #82b366;
}

.status-indicator.partial {
    background-color: #fff2cc;
    border: 1px solid #d6b656;
}

.status-indicator.booked {
    background-color: #f8cecc;
    border: 1px solid #b85450;
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input {
    width: auto;
}

.checkbox-group label {
    margin-bottom: 0;
}

button {
    background-color: #3a6e35;
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1rem;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2c5329;
}

button:disabled {
    background-color: #999;
    cursor: not-allowed;
}

/* Membership Fields */
#membership-container {
    margin-bottom: 20px;
}

#membership-fields {
    display: grid;
    gap: 10px;
}

/* Member Session Card */
.member-session-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    background: #f8fbff;
}

.member-session-card h4 {
    margin: 0 0 0.5rem 0;
    color: #1f3d2b;
}

.member-inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.member-inline-form input {
    flex: 1 1 200px;
}

.member-inline-form button {
    flex: 0 0 auto;
}

.member-inline-message {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #b00020;
}

.member-inline-message.success {
    color: #1f7a1f;
}

.member-inline-helper {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.member-inline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.member-inline-email {
    margin: 0;
    font-size: 0.9rem;
    color: #5c6873;
}

.member-course-settings {
    margin-top: 1rem;
}

.member-course-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.member-course-actions input {
    flex: 1 1 200px;
}

.member-course-actions button {
    flex: 0 0 auto;
    padding: 0.5rem 1rem;
}

.member-course-settings small {
    display: block;
    margin-top: 0.35rem;
    color: #5c6873;
}

/* Member Course Status Badges */
.member-course-status {
    margin-top: 0.75rem;
}

.member-status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.member-status-badge.active {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 1px solid #a5d6a7;
    color: #2e7d32;
}

.member-status-badge.guest {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    color: #616161;
}

.member-status-badge .status-icon {
    font-size: 1rem;
}

.member-status-badge .status-text {
    font-weight: 600;
}

.member-status-badge small {
    display: block;
    margin-left: auto;
    font-size: 0.75rem;
    color: inherit;
    opacity: 0.8;
}

/* Share Tee Time Styles */
.share-tee-time-container {
    margin: 1.5rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid #90caf9;
    border-radius: 8px;
    text-align: center;
}

.share-tee-time-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(25, 118, 210, 0.3);
}

.share-tee-time-button:hover {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    box-shadow: 0 4px 8px rgba(25, 118, 210, 0.4);
    transform: translateY(-1px);
}

.share-tee-time-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(25, 118, 210, 0.3);
}

.share-tee-time-button .share-icon {
    font-size: 1.1rem;
}

.share-copied-message {
    display: block;
    margin-top: 0.75rem;
    color: #2e7d32;
    font-weight: 500;
}

/* Membership signup - responsive behavior */
/* Widescreen: show card under calendar, hide link in form */
.membership-widescreen {
    display: none;
    margin-top: 1.5rem;
}

.membership-signup-link {
    display: none;
    text-align: center;
    padding: 1rem;
    margin: 0.5rem 0 1rem;
    background: linear-gradient(135deg, #f8fbff 0%, #e8f5e9 100%);
    border-radius: 8px;
    border: 1px solid #c8e6c9;
}

.membership-signup-link p {
    margin: 0;
    color: #1f3d2b;
}

.membership-signup-link a {
    color: #2c5f2d;
    font-weight: 600;
    text-decoration: none;
}

.membership-signup-link a:hover {
    text-decoration: underline;
}

/* Membership modal signup buttons */
.membership-signup-btn {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    background-color: var(--brand-primary, #3a6e35);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
}

.membership-signup-btn:hover {
    background-color: #2d5729;
    text-decoration: none;
    color: white;
}

/* On screens >= 1024px (widescreen 3-column layout): show card, hide link */
@media (min-width: 1024px) {
    .membership-widescreen.membership-enabled {
        display: block !important;
    }
    
    .membership-signup-link.membership-enabled {
        display: none !important;
    }
}

/* On screens < 1024px (narrow/tablet): hide card, show link */
@media (max-width: 1023px) {
    .membership-widescreen.membership-enabled {
        display: none !important;
    }
    
    .membership-signup-link.membership-enabled {
        display: block !important;
    }
}

@media (max-width: 600px) {
    .member-inline-form {
        flex-direction: column;
    }

    .member-inline-form input {
        flex: 0 0 auto;
        width: 100%;
    }

    .member-course-actions {
        flex-direction: column;
    }
}

/* Payment Section */
#payment-info {
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* Confirmation */
#booking-confirmation {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#confirmation-details {
    margin: 20px 0;
    text-align: left;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    display: inline-block;
    max-width: 100%;
    width: 600px;
}

/* Confirmation Action Buttons */
.confirmation-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.confirmation-actions .primary-button {
    background-color: #3a6e35;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.confirmation-actions .primary-button:hover {
    background-color: #2d5829;
    transform: translateY(-1px);
}

.confirmation-actions .secondary-button {
    background-color: transparent;
    color: #3a6e35;
    padding: 12px 24px;
    border: 2px solid #3a6e35;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.confirmation-actions .secondary-button:hover {
    background-color: #3a6e35;
    color: white;
}

/* Directions Box Styles */
.directions-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.directions-box h3 {
    color: #3a6e35;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
}

.map-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.static-map {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s;
}

.static-map:hover {
    opacity: 0.9;
}

.directions-button {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 1.5rem auto 0;
    padding: 12px 20px;
    background-color: #3a6e35;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.directions-button:hover {
    background-color: #2c5329;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

@media screen and (max-width: 768px) {
    .map-container {
        max-width: 300px;
    }
}

/* Admin Styles */
.admin-page #login-section,
.admin-page #forgot-password-section,
.admin-page #reset-password-section {
    max-width: 500px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.forgot-password-link,
.back-to-login-link {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.forgot-password-link:hover,
.back-to-login-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.tenant-selection-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.tenant-selection-overlay.hidden {
    display: none;
}

.tenant-selection-modal {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.35);
    max-width: 520px;
    width: calc(100% - 32px);
    padding: 24px;
}

.tenant-selection-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.tenant-selection-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.tenant-selection-close:hover {
    color: #1f2933;
}

.tenant-selection-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.tenant-option {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.tenant-option-info h4 {
    margin: 0;
    font-size: 1rem;
    color: #1f2933;
}

.tenant-option-info small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 0.85rem;
}

.tenant-option-note {
    color: #b45309;
}

.tenant-option button {
    background-color: #3a6e35;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.tenant-option button:hover {
    background-color: #2c5329;
}

.tenant-loading {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: tenant-spin 0.8s linear infinite;
}

@keyframes tenant-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

.tab-button {
    background-color: #f0f0f0;
    color: #333;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
}

.tab-button.active {
    background-color: #3a6e35;
    color: white;
}

.tab-content {
    display: none;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab-content.active {
    display: block;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid #edf2f7;
}

/* Support Center */
.support-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.support-left-column {
    flex: 1 1 55%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.support-detail-panel {
    flex: 1 1 45%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid #edf2f7;
    padding: 24px;
    min-height: 420px;
    display: flex;
    flex-direction: column;
}

.support-thread {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.support-ticket-columns {
    display: flex;
    gap: 18px;
}

.support-ticket-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.support-ticket-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.support-ticket-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.support-ticket-list-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    background: #fdfdfd;
}

.support-ticket-list-item:hover {
    border-color: #3a6e35;
    box-shadow: 0 10px 24px rgba(58, 110, 53, 0.12);
}

.support-ticket-list-item.active {
    border-color: #3a6e35;
    background: #f0f8f0;
    box-shadow: 0 10px 24px rgba(58, 110, 53, 0.15);
}

.support-ticket-subject {
    font-weight: 600;
    color: #1f2933;
    margin-bottom: 4px;
}

.support-ticket-meta,
.support-ticket-updated {
    font-size: 0.85rem;
    color: #64748b;
}

.support-ticket-empty {
    border: 1px dashed #cbd5f5;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    color: #94a3b8;
    background: #f8fafc;
}

.support-ticket-placeholder {
    color: #94a3b8;
    font-size: 0.95rem;
    text-align: center;
    padding: 20px;
}

.support-thread-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.support-thread-messages {
    flex: 1;
    background: #f8fafc;
    border-radius: 12px;
    padding: 18px;
    overflow-y: auto;
    margin-bottom: 16px;
    max-height: 480px;
}

.support-message {
    border-radius: 12px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.support-message + .support-message {
    margin-top: 12px;
}

.support-message-tenant {
    margin-left: auto;
    background: #ecfdf3;
    border-color: #bbf7d0;
}

.support-message-platform {
    margin-right: auto;
}

.support-message-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 6px;
}

.support-message-author {
    font-weight: 600;
    color: #1f2933;
}

.support-message-body {
    color: #0f172a;
    line-height: 1.5;
    word-break: break-word;
}

.support-thread-empty {
    text-align: center;
    color: #94a3b8;
}

.support-thread form textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 12px;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.support-thread form button {
    margin-top: 10px;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.status-pending {
    background: #fef9c3;
    color: #92400e;
}

.status-closed {
    background: #e2e8f0;
    color: #334155;
}

.support-thread form label {
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.support-ticket-columns button.small {
    padding: 6px 10px;
    font-size: 0.85rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.support-ticket-columns button.small:hover {
    background: #f1f5f9;
}

/* ========================================
   Payment Setup Tab Styles
   ======================================== */

.payment-setup-container {
    display: grid;
    gap: 20px;
    max-width: 900px;
}

.tab-description {
    color: #64748b;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Connect Status Section */
.connect-status {
    min-height: 80px;
}

.connect-status-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #64748b;
}

.connect-status-loading .spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Connected Account Info */
.connected-account-info {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: #475569;
}

.info-value {
    color: #1e293b;
    font-weight: 600;
}

.info-value.success {
    color: #16a34a;
}

.info-value.warning {
    color: #f59e0b;
}

.info-value.error {
    color: #dc2626;
}

/* Requirements List */
.requirements-list {
    padding-left: 24px;
    margin: 12px 0 20px;
    line-height: 1.8;
}

.requirements-list li {
    color: #475569;
}

.requirements-list.warning li {
    color: #92400e;
}

/* Buttons */
.primary-button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease;
}

.primary-button:hover {
    background: #1d4ed8;
}

.primary-button:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.secondary-button {
    background: white;
    color: #1e293b;
    border: 1px solid #d1d5db;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.secondary-button:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Fee Breakdown */
.fee-breakdown {
    display: grid;
    gap: 12px;
}

.fee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.fee-item.total {
    border-top: 2px solid #e2e8f0;
    border-bottom: none;
    padding-top: 16px;
    margin-top: 8px;
}

.fee-label {
    font-weight: 500;
    color: #475569;
}

.fee-item.total .fee-label,
.fee-item.total .fee-value {
    font-weight: 700;
    color: #1e293b;
}

.fee-value {
    color: #1e293b;
    font-weight: 600;
}

.fee-note {
    margin-top: 16px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    color: #64748b;
    font-size: 0.9rem;
}

/* Transactions Table */
.transactions-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.transactions-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.transactions-table th,
.transactions-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.transactions-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.transactions-table tbody tr:hover {
    background: #f8fafc;
}

.transactions-table .no-data {
    text-align: center;
    color: #94a3b8;
    padding: 24px;
}

.transaction-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.transaction-status.succeeded {
    background: #dcfce7;
    color: #166534;
}

.transaction-status.pending {
    background: #fef9c3;
    color: #92400e;
}

.transaction-status.failed {
    background: #fee2e2;
    color: #991b1b;
}

.transaction-status.refunded {
    background: #e2e8f0;
    color: #334155;
}

/* Warning Card */
.warning-card {
    border: 2px solid #fbbf24;
    background: #fffbeb;
}

.warning-card h4 {
    color: #92400e;
}

/* Payment Setup Card (Dynamic JS UI) */
.payment-setup-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.setup-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.setup-icon {
    font-size: 2.5rem;
}

.setup-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #1e293b;
}

.setup-description {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.fee-info-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 24px;
}

.fee-info-box h4 {
    margin: 0 0 16px 0;
    color: #1e293b;
    font-size: 1.1rem;
}

.fee-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.fee-list .fee-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: none;
}

.example-calculation {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
}

.example-calculation h5 {
    margin: 0 0 12px 0;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
}

.fee-table {
    width: 100%;
    border-collapse: collapse;
}

.fee-table td {
    padding: 8px 0;
}

.fee-table .amount {
    text-align: right;
    font-family: 'SF Mono', Menlo, Monaco, monospace;
}

.fee-table .amount.negative {
    color: #dc2626;
}

.fee-table .amount.positive {
    color: #16a34a;
}

.fee-table .total-row {
    border-top: 2px solid #e2e8f0;
}

.fee-table .total-row td {
    padding-top: 12px;
}

.setup-requirements {
    margin-bottom: 24px;
}

.setup-requirements h4 {
    margin: 0 0 12px 0;
    color: #1e293b;
    font-size: 1rem;
}

.setup-requirements ul {
    margin: 0;
    padding-left: 24px;
    color: #475569;
    line-height: 1.8;
}

.btn-primary {
    background: #2563eb;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.btn-primary.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-icon {
    font-size: 1.2rem;
}

.setup-footer {
    margin-top: 20px;
    color: #94a3b8;
    text-align: center;
}

/* Payment Status Header */
.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge.active {
    background: #dcfce7;
    color: #166534;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.restricted {
    background: #fee2e2;
    color: #991b1b;
}

/* Account Active State */
.account-active .success-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.success-icon {
    font-size: 1.5rem;
}

.success-banner h4 {
    margin: 0 0 4px 0;
    color: #166534;
}

.success-banner p {
    margin: 0;
    color: #15803d;
    font-size: 0.95rem;
}

/* Account Stats Grid */
.account-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 4px;
}

/* Payment Setup Error State */
.payment-setup-error {
    text-align: center;
    padding: 40px 20px;
}

.payment-setup-error .error-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.payment-setup-error p {
    color: #dc2626;
    margin-bottom: 20px;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 16px;
    color: #64748b;
}

.loading-spinner .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Stripe Onboarding Container */
#stripe-onboarding-container {
    min-height: 100px;
    margin-bottom: 16px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .fee-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .transactions-table {
        font-size: 0.8rem;
    }
    
    .transactions-table th,
    .transactions-table td {
        padding: 8px 6px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons button {
        width: 100%;
    }
}

@media (max-width: 1024px) {
    .support-layout {
        flex-direction: column;
    }

    .support-detail-panel {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .support-ticket-columns {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .support-detail-panel,
    .card {
        padding: 16px;
    }
}

/* Update Indicator Styles */
.update-indicator {
    display: none;
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    margin-bottom: 15px;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auto-refresh-badge {
    display: inline-block;
    font-size: 0.7em;
    background-color: #4CAF50;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    margin-left: 10px;
    font-weight: normal;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Table Styles */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
}

th {
    background-color: #f0f0f0;
    font-weight: bold;
}

tr:hover {
    background-color: #f9f9f9;
}

/* Sortable table styles */
th.sortable {
    cursor: pointer;
    position: relative;
    padding-right: 20px;
}

th.sortable:hover {
    background-color: #f0f0f0;
}

th.sortable:after {
    content: '⇕';
    position: absolute;
    right: 5px;
    color: #999;
}

th.sort-asc:after {
    content: '↑';
    color: #3a6e35;
}

th.sort-desc:after {
    content: '↓';
    color: #3a6e35;
}

/* Filter Controls */
.filter-controls {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
}

footer a {
    color: #aaf0aa;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Membership Tab Styles */
.membership-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.sub-tab-button {
    background-color: #f0f0f0;
    color: #333;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
}

.sub-tab-button.active {
    background-color: #3a6e35;
    color: white;
}

.sub-tab-content {
    display: none;
    margin-top: 20px;
}

.sub-tab-content.active {
    display: block;
}

/* Configuration Tab Styles */
.config-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.config-tab-button {
    background-color: #f0f0f0;
    color: #333;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
}

.config-tab-button.active {
    background-color: #3a6e35;
    color: white;
}

.config-tab-content {
    display: none;
    margin-top: 20px;
}

.config-tab-content.active {
    display: block;
}

/* User Management Tab Styles */
.user-management-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.user-tab-button {
    background-color: #f0f0f0;
    color: #333;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
}

.user-tab-button.active {
    background-color: #3a6e35;
    color: white;
}

.user-tab-content {
    display: none;
    margin-top: 20px;
}

.user-tab-content.active {
    display: block;
}

/* Pricing Tab Styles */
.pricing-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.pricing-tab-button {
    background-color: #f0f0f0;
    color: #333;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
}

.pricing-tab-button.active {
    background-color: #3a6e35;
    color: white;
}

.pricing-tab-content {
    display: none;
    margin-top: 20px;
}

.pricing-tab-content.active {
    display: block;
}

/* Green Fees Pricing Rules Styles */
.rules-container {
    margin-bottom: 20px;
}

.rules-actions {
    margin-bottom: 15px;
}

.add-btn {
    background-color: #3a6e35;
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 4px;
}

.add-btn:hover {
    background-color: #2d5629;
}

.no-rules-message {
    font-style: italic;
    color: #666;
    margin: 20px 0;
}

.pricing-rule-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 4px;
    position: relative;
}

.rule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.rule-title {
    font-weight: bold;
    margin: 0;
}

.rule-controls {
    display: flex;
    gap: 10px;
}

.edit-btn, .delete-btn {
    padding: 5px 10px;
    font-size: 0.8rem;
    cursor: pointer;
    border-radius: 3px;
    border: none;
    color: white;
    transition: opacity 0.2s;
}

.edit-btn {
    background-color: #4a90e2;
}

.edit-btn:hover {
    opacity: 0.8;
}

.delete-btn {
    background-color: #e25c4a;
}

.delete-btn:hover {
    opacity: 0.8;
}

.rule-details {
    font-size: 14px;
    color: #555;
}

.rule-details p {
    margin: 5px 0;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.half-width {
    flex: 1;
}

.days-of-week {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.day-checkbox {
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.save-btn {
    background-color: #3a6e35;
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 4px;
}

.cancel-btn {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 4px;
}

.cancel-btn:hover {
    background-color: #e0e0e0;
}

/* Input Group */
.input-group {
    display: flex;
    gap: 10px;
}

.input-group input {
    flex: 1;
}

/* Cart Details Display */
.cart-details {
    background-color: #f9f9f9;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    margin-top: 5px;
}

.cart-details div {
    padding: 2px 0;
}

/* Import Preview */
#import-preview {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* Member Actions */
.member-actions {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

.edit-member-button,
.delete-member-button {
    padding: 5px 10px;
    font-size: 0.8rem;
    white-space: nowrap;
    line-height: 1.2;
}

.edit-member-button {
    background-color: #4a90e2;
}

.edit-member-button:hover {
    background-color: #3a7bc8;
}

.delete-member-button {
    background-color: #e25c4a;
}

.delete-member-button:hover {
    background-color: #c8483a;
}

/* Booking Actions */
.booking-actions {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

.edit-booking-button,
.remove-booking-button {
    padding: 5px 10px;
    font-size: 0.8rem;
    white-space: nowrap;
    line-height: 1.2;
}

.edit-booking-button {
    background-color: #4a90e2;
}

.edit-booking-button:hover {
    background-color: #3a7bc8;
}

.remove-booking-button {
    background-color: #e25c4a;
}

.remove-booking-button:hover {
    background-color: #c8483a;
}

/* Member Stats */
.member-stats {
    margin: 10px 0;
    font-size: 0.9em;
    color: #666;
}

/* CSV Import Styles */
.import-instructions {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.import-instructions h5 {
    color: #3a6e35;
    margin: 10px 0;
}

.import-instructions ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.import-instructions li {
    margin-bottom: 5px;
}

.sample-csv {
    background-color: #f0f0f0;
    border-left: 3px solid #3a6e35;
    padding: 10px;
    margin-top: 15px;
    overflow-x: auto;
}

.sample-csv code {
    font-family: monospace;
    white-space: pre;
    display: block;
    margin-bottom: 15px;
}

#download-csv-template {
    background-color: #3a6e35;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

#download-csv-template:hover {
    background-color: #2c5329;
}

/* Date Range Blocking Styles */
#block-date-range-form {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

#block-times hr {
    margin: 30px 0;
    border: none;
    border-top: 2px solid #ddd;
}

/* Blocked table type badges */
.blocked-type-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: bold;
}

.blocked-type-badge.time-slot {
    background-color: #d5e8d4;
    color: #2d5629;
}

.blocked-type-badge.date-range {
    background-color: #fff2cc;
    color: #8c6d1f;
}

/* Alert Styles */
.alert {
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
    border: 1px solid transparent;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

.alert strong {
    font-weight: bold;
}

/* Help Text Styles */
.help-text {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* Flagged Booking Styles */
.booking-flagged {
    background-color: #fff3cd !important;
    border-left: 4px solid #ffc107 !important;
}

.flag-badge {
    display: inline-block;
    padding: 2px 8px;
    background-color: #ffc107;
    color: #856404;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 5px;
}

.flag-reason {
    font-size: 0.85rem;
    color: #856404;
    font-style: italic;
}

/* Status Badge Styles */
.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 4px;
}

.status-requested {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

.status-approved {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #17a2b8;
}

.status-checked-in {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #28a745;
}

.status-completed {
    background-color: #e2e3e5;
    color: #383d41;
    border: 1px solid #6c757d;
}

/* Status dropdown in table view */
.booking-status-dropdown {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    background-color: white;
    cursor: pointer;
}

.booking-status-dropdown:focus {
    outline: none;
    border-color: #007bff;
}

/* SMS Tab Styles */
.sms-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
}

.sms-tab-button {
    background: none;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.sms-tab-button:hover {
    color: #3a6e35;
    background-color: #f8f9fa;
}

.sms-tab-button.active {
    color: #3a6e35;
    border-bottom-color: #3a6e35;
    font-weight: bold;
}

.sms-tab-content {
    display: none;
    padding: 20px 0;
}

.sms-tab-content.active {
    display: block;
}

.recipients-preview {
    margin: 20px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.recipients-preview h5 {
    color: #3a6e35;
    margin-bottom: 10px;
}

.recipients-preview p {
    font-weight: bold;
    margin-bottom: 10px;
}

.char-count {
    text-align: right;
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

.status-message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    font-weight: bold;
}

.status-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-message ul {
    margin-top: 10px;
    margin-left: 20px;
    font-weight: normal;
}

.secondary-btn {
    background-color: #6c757d;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    margin-right: 10px;
}

.secondary-btn:hover {
    background-color: #5a6268;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-row .form-group.half-width {
    flex: 1;
}

textarea {
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
}

/* Make SMS message boxes wider on large screens */
@media (min-width: 768px) {
    #send-sms textarea {
        min-width: 600px;
        max-width: 100%;
    }
}

@media (min-width: 1024px) {
    #send-sms textarea {
        min-width: 800px;
        max-width: 100%;
    }
}

#send-sms .help-text {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

#send-sms h4 {
    color: #3a6e35;
    margin-bottom: 15px;
}

/* ==================== TEE SHEET VIEW STYLES ==================== */

/* View toggle buttons */
.view-controls {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.view-toggle {
    display: flex;
    gap: 10px;
}

/* Weather widget in bookings view */
.weather-widget {
    background-color: white;
    border-radius: 8px;
    padding: 12px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.weather-widget-loading {
    color: #666;
    font-size: 0.9rem;
}

.weather-widget-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.weather-widget-icon {
    font-size: 2rem;
}

.weather-widget-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.weather-widget-temp {
    font-size: 1.1rem;
    font-weight: bold;
    color: #3a6e35;
}

.weather-widget-high {
    font-size: 0.9rem;
    color: #666;
}

.view-btn {
    padding: 10px 20px;
    border: 2px solid #3a6e35;
    background-color: white;
    color: #3a6e35;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background-color: #f0f7ef;
}

.view-btn.active {
    background-color: #3a6e35;
    color: white;
}

/* View containers */
.view-container {
    display: none;
}

.view-container.active {
    display: block;
}

/* Tee sheet header */
.tee-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.weather-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.weather-icon {
    font-size: 2.5rem;
}

.weather-details {
    display: flex;
    flex-direction: column;
}

.weather-temp {
    font-size: 1.5rem;
    font-weight: bold;
    color: #3a6e35;
}

.weather-high {
    font-size: 1rem;
    font-weight: 500;
    color: #2d5629;
}

.weather-desc {
    font-size: 0.9rem;
    color: #666;
}

/* Date selector */
.tee-sheet-date-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-nav-btn {
    padding: 8px 16px;
    background-color: #3a6e35;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.date-nav-btn:hover {
    background-color: #2d5629;
}

#tee-sheet-date {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    min-width: 150px;
}

/* Tee sheet grid */
.tee-sheet-grid {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tee-sheet-table {
    width: 100%;
}

.tee-sheet-header-row {
    display: grid;
    grid-template-columns: 120px 1fr 1fr;
    background-color: #3a6e35;
    color: white;
    font-weight: bold;
    border-bottom: 2px solid #2d5629;
}

.tee-sheet-header-row > div {
    padding: 15px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.tee-sheet-header-row > div:last-child {
    border-right: none;
}

.time-header {
    background-color: #2d5629;
}

.course-header {
    font-size: 1.1rem;
}

.tee-sheet-row {
    display: grid;
    grid-template-columns: 120px 1fr 1fr;
    border-bottom: 1px solid #e0e0e0;
    min-height: 60px;
    position: relative;
}

.tee-sheet-row:hover {
    background-color: #f9f9f9;
}

/* Subtle indicator for current timeslot */
.tee-sheet-row.current-timeslot {
    background-color: rgba(58, 110, 53, 0.04);
    border-left: 4px solid #3a6e35;
}

.tee-sheet-row.current-timeslot .time-cell {
    background-color: rgba(58, 110, 53, 0.08);
    font-weight: 600;
}

.tee-sheet-row.current-timeslot:hover {
    background-color: rgba(58, 110, 53, 0.06);
}

.time-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background-color: #f5f5f5;
    border-right: 2px solid #e0e0e0;
    font-weight: 500;
    color: #333;
}

.time-weather {
    font-size: 1.2rem;
    cursor: help;
}

.course-cell {
    padding: 10px;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
    align-content: flex-start;
    cursor: pointer;
    min-height: 60px;
}

.course-cell:hover {
    background-color: rgba(58, 110, 53, 0.03);
}

.course-cell:last-child {
    border-right: none;
}

.front-9 {
    background-color: #f8fdf8;
}

.back-9 {
    background-color: #fefef8;
}

/* Empty slot indicator */
.empty-slot {
    width: 100%;
    padding: 12px;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
    border: 2px dashed #ddd;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
}

.empty-slot:hover {
    color: #3a6e35;
    border-color: #3a6e35;
    background-color: rgba(58, 110, 53, 0.05);
}

/* Booking cards in tee sheet */
.booking-card {
    background-color: white;
    border: 2px solid #3a6e35;
    border-radius: 6px;
    padding: 8px 12px;
    flex: 1;
    min-width: 200px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.booking-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    border-color: #2d5629;
    background-color: #f8fdf8;
}

.booking-card-content {
    flex: 1;
    min-width: 0;
}

.booking-card-delete {
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #dc3545;
    opacity: 0.6;
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.booking-card-delete:hover {
    opacity: 1;
    background-color: rgba(220, 53, 69, 0.1);
    transform: scale(1.1);
}

.booking-card-delete:active {
    transform: scale(0.95);
}

.booking-card-delete svg {
    display: block;
}

.booking-name {
    font-weight: bold;
    color: #3a6e35;
    font-size: 0.95rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.booking-details {
    display: flex;
    gap: 10px;
    font-size: 0.85rem;
    color: #666;
}

.booking-players {
    display: inline-flex;
    align-items: center;
}

.booking-players::before {
    content: '👥';
    margin-right: 4px;
}

.booking-holes {
    display: inline-flex;
    align-items: center;
    color: #3a6e35;
    font-weight: 500;
}

/* Loading and error states */
.tee-sheet-loading,
.tee-sheet-error {
    padding: 40px;
    text-align: center;
    font-size: 1.1rem;
    color: #666;
}

.tee-sheet-error {
    color: #d32f2f;
}

/* Responsive design for tee sheet */
@media (max-width: 768px) {
    .view-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .weather-widget {
        width: 100%;
    }
    
    .tee-sheet-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .tee-sheet-date-selector {
        flex-direction: column;
        width: 100%;
    }
    
    .date-nav-btn {
        width: 100%;
    }
    
    #tee-sheet-date {
        width: 100%;
    }
    
    .tee-sheet-header-row,
    .tee-sheet-row {
        grid-template-columns: 80px 1fr 1fr;
    }
    
    .time-cell {
        font-size: 0.85rem;
    }
    
    .booking-card {
        min-width: 120px;
        padding: 6px 8px;
    }
    
    .booking-name {
        font-size: 0.85rem;
    }
    
    .booking-details {
        font-size: 0.75rem;
    }
    
    .weather-icon {
        font-size: 2rem;
    }
    
    .weather-temp {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .tee-sheet-header-row,
    .tee-sheet-row {
        grid-template-columns: 70px 1fr;
    }
    
    .course-header:last-child,
    .course-cell.back-9 {
        display: none;
    }
    
    .view-toggle {
        flex-direction: column;
    }
    
    .view-btn {
        width: 100%;
    }
}

/* Weather Tab Styles */
.weather-container {
    margin-top: 20px;
}

.weather-current-section {
    margin-bottom: 30px;
}

.current-weather-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 30px;
    align-items: center;
}

.current-weather-icon {
    font-size: 4rem;
}

.current-weather-details h5 {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.current-weather-temp {
    font-size: 3rem;
    font-weight: bold;
    margin: 10px 0;
}

.current-weather-desc {
    font-size: 1.2rem;
    opacity: 0.95;
}

.current-weather-extra {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: right;
}

.weather-extra-item {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

.weather-extra-item span:first-child {
    opacity: 0.8;
    font-size: 0.9rem;
}

.weather-extra-item span:last-child {
    font-weight: bold;
    font-size: 1.1rem;
}

/* Weather Tabs */
.weather-tabs {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    border-bottom: 2px solid #e0e0e0;
}

.weather-tab-button {
    padding: 12px 24px;
    background: none;
    border: none;
    color: #666;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.weather-tab-button:hover {
    color: #3a6e35;
    background-color: #f5f5f5;
}

.weather-tab-button.active {
    color: #3a6e35;
    border-bottom-color: #3a6e35;
}

.weather-tab-content {
    display: none;
    padding: 20px 0;
}

.weather-tab-content.active {
    display: block;
}

/* Forecast Grid */
.forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.forecast-day-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.forecast-day-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.forecast-day-card.today {
    border: 2px solid #3a6e35;
    background: #f0f8f0;
}

.forecast-date {
    font-weight: bold;
    color: #3a6e35;
    margin-bottom: 8px;
}

.forecast-day {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.forecast-icon {
    font-size: 2.5rem;
    margin: 10px 0;
}

.forecast-temp {
    font-size: 1.3rem;
    font-weight: bold;
    margin: 10px 0;
}

.forecast-temp-range {
    font-size: 0.9rem;
    color: #666;
}

.forecast-desc {
    font-size: 0.85rem;
    color: #888;
    margin-top: 8px;
}

/* Hourly Forecast */
.hourly-controls {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hourly-controls label {
    font-weight: 500;
}

.hourly-controls input[type="date"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.hourly-forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.hourly-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
}

.hourly-time {
    font-weight: 500;
    color: #3a6e35;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.hourly-icon {
    font-size: 2rem;
    margin: 8px 0;
}

.hourly-temp {
    font-size: 1.2rem;
    font-weight: bold;
}

.hourly-desc {
    font-size: 0.75rem;
    color: #888;
    margin-top: 5px;
}

/* Radar View */
.radar-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
}

.radar-control-btn {
    padding: 8px 16px;
    background: #3a6e35;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.radar-control-btn:hover:not(:disabled) {
    background: #2d5428;
}

.radar-control-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.radar-info {
    margin-left: auto;
    font-size: 0.9rem;
    color: #666;
}

.radar-map-container {
    width: 100% !important;
    height: 600px !important;
    min-height: 600px !important;
    border-radius: 8px;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    display: block !important;
}

#radar-map {
    width: 100% !important;
    height: 100% !important;
}

.radar-legend {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.radar-legend h5 {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #666;
}

.legend-gradient {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-gradient span {
    font-size: 0.85rem;
    color: #666;
}

.gradient-bar {
    flex: 1;
    height: 20px;
    background: linear-gradient(to right, 
        rgba(0, 180, 255, 0.3),
        rgba(0, 220, 180, 0.5),
        rgba(50, 255, 100, 0.6),
        rgba(255, 255, 0, 0.7),
        rgba(255, 200, 0, 0.8),
        rgba(255, 100, 0, 0.9),
        rgba(255, 0, 0, 1)
    );
    border-radius: 4px;
}

/* Loading Spinner */
.loading-spinner {
    padding: 40px;
    text-align: center;
    color: #666;
}

/* Responsive Design for Weather */
@media (max-width: 768px) {
    .current-weather-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    
    .current-weather-extra {
        text-align: center;
    }
    
    .weather-extra-item {
        justify-content: center;
    }
    
    .forecast-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .hourly-forecast-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    .radar-map-container {
        height: 400px !important;
        min-height: 400px !important;
    }
    
    .weather-tabs {
        overflow-x: auto;
    }
    
    .weather-tab-button {
        white-space: nowrap;
        padding: 12px 16px;
    }
}

/* Modal Overlay Styles (alternative to .modal) */
.modal-overlay {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.close-modal:hover,
.close-modal:focus {
    color: #000;
}

/* Rain Check Button Styles */
.rain-check-button {
    background-color: #5b9bd5;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin: 2px;
}

.rain-check-button:hover {
    background-color: #4a7fb8;
}

/* Button Styles */
.primary-button {
    background-color: #3a6e35;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-right: 10px;
}

.primary-button:hover {
    background-color: #2c5327;
}

.secondary-button {
    background-color: #999;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.secondary-button:hover {
    background-color: #777;
}

/* Rain Check Status Styles */
.status-active {
    color: #3a6e35;
    font-weight: bold;
}

.status-redeemed {
    color: #999;
    text-decoration: line-through;
}

.status-expired {
    color: #d9534f;
}

/* Help Text */
.help-text {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Action Button in Tables */
.action-button {
    background-color: #3a6e35;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    margin: 2px;
}

.action-button:hover {
    background-color: #2c5327;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 20px;
        max-height: 95vh;
    }
    
    .close-modal {
        font-size: 24px;
    }
}

/* =====================================================
   Membership Tiers Styles
   ===================================================== */

/* Tier Actions */
.tier-actions {
    margin-bottom: 20px;
}

/* Tiers Grid */
.tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

/* Tier Card */
.tier-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.tier-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.tier-card.inactive {
    opacity: 0.7;
    background: #f9f9f9;
}

.tier-card-header {
    background: #3a6e35;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tier-card-header h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.tier-status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    font-weight: 600;
}

.tier-status.active {
    background: rgba(255,255,255,0.2);
    color: white;
}

.tier-status.inactive {
    background: #e0e0e0;
    color: #666;
}

.tier-card-body {
    padding: 15px;
}

.tier-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* Tier Pricing Section */
.tier-pricing {
    background: #f5f8f5;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
}

.price-row:not(:last-child) {
    border-bottom: 1px dashed #e0e0e0;
}

.price-row span {
    color: #666;
}

.price-row strong {
    color: #3a6e35;
}

/* Tier Fees Section */
.tier-fees {
    margin-bottom: 15px;
}

.tier-fees h6 {
    font-size: 13px;
    color: #333;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fee-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.fee-item {
    background: #f9f9f9;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
}

.fee-item span:first-child {
    color: #666;
}

/* Tier Season */
.tier-season {
    font-size: 13px;
    color: #666;
    padding: 10px 0;
    border-top: 1px solid #e0e0e0;
}

/* Tier Benefits */
.tier-benefits {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.tier-benefits h6 {
    font-size: 13px;
    color: #333;
    margin: 0 0 8px 0;
}

.tier-benefits ul {
    margin: 0;
    padding-left: 20px;
}

.tier-benefits li {
    font-size: 13px;
    color: #555;
    padding: 3px 0;
}

/* Tier Privileges */
.tier-privileges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.tier-privileges span {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
}

/* Tier Card Actions */
.tier-card-actions {
    padding: 12px 15px;
    background: #f5f5f5;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-edit {
    background: #4a90d9;
    color: white;
}

.btn-edit:hover {
    background: #3a7ac4;
}

.btn-delete {
    background: #d9534f;
    color: white;
}

.btn-delete:hover {
    background: #c9302c;
}

/* Tooltip Icon Styles */
.tooltip-icon {
    cursor: help;
    font-size: 14px;
    margin-left: 4px;
    opacity: 0.7;
    position: relative;
}

.tooltip-icon:hover {
    opacity: 1;
}

/* Field Hint Text */
.field-hint {
    display: block;
    font-size: 11px;
    color: #888;
    margin-top: 4px;
    font-style: italic;
}

/* Cart Pricing Note */
.cart-pricing-note {
    background: #fff9e6;
    border: 1px solid #ffdd57;
    border-radius: 6px;
    padding: 10px 12px;
    margin-top: 12px;
    font-size: 13px;
    color: #735c0f;
}

.cart-pricing-note strong {
    color: #5c4b0a;
}

.btn-primary {
    background: #3a6e35;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary:hover {
    background: #2c5327;
}

.btn-secondary {
    background: #999;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-secondary:hover {
    background: #777;
}

/* Tier Form Modal */
.modal.hidden {
    display: none !important;
}

.tier-modal {
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.modal-header h4 {
    margin: 0;
    font-size: 20px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

.modal-footer {
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Form Sections */
.form-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h5 {
    font-size: 15px;
    color: #333;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #3a6e35;
    display: inline-block;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

/* Benefits List */
.benefits-list {
    margin-bottom: 10px;
}

.benefit-item {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.benefit-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.btn-remove-benefit {
    background: #d9534f;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.btn-remove-benefit:hover {
    background: #c9302c;
}

/* Tier Subscriptions Section */
.tier-subscriptions-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.status-badge.status-active {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.status-expired {
    background: #ffebee;
    color: #c62828;
}

.status-badge.status-cancelled {
    background: #fafafa;
    color: #616161;
}

.status-badge.status-pending {
    background: #fff3e0;
    color: #ef6c00;
}

.status-badge.status-na {
    background: #f5f5f5;
    color: #9e9e9e;
}

/* Residency validation styles */
.needs-review {
    background-color: #fff8e1 !important;
}

.needs-review:hover {
    background-color: #ffecb3 !important;
}

.btn-view-proof {
    background: #1976d2;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 5px;
    font-size: 12px;
}

.btn-view-proof:hover {
    background: #1565c0;
}

#residency-proof-modal .modal-content {
    position: relative;
}

#residency-proof-modal .modal-body img {
    cursor: pointer;
    transition: transform 0.2s;
}

#residency-proof-modal .modal-body img:hover {
    transform: scale(1.02);
}

/* No data / Loading states */
.loading, .no-data, .error {
    text-align: center;
    padding: 20px;
    color: #666;
}

.error {
    color: #d9534f;
}

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
}

#no-tiers-message {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-top: 20px;
}

#no-tiers-message p {
    color: #666;
    font-size: 15px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .tiers-grid {
        grid-template-columns: 1fr;
    }
    
    .tier-modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .fee-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Role Permissions Configuration
   ========================================= */

.role-permissions-container {
    padding: 15px 0;
}

.permission-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.owner-only-notice {
    background: #e3f2fd;
    border-color: #2196F3;
    color: #1565c0;
}

.role-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.role-tab-button {
    padding: 10px 20px;
    border: none;
    background: #f5f5f5;
    color: #333;
    cursor: pointer;
    border-radius: 6px 6px 0 0;
    font-weight: 500;
    transition: all 0.2s ease;
}

.role-tab-button:hover {
    background: #e0e0e0;
}

.role-tab-button.active {
    background: #3a6e35;
    color: white;
}

.permissions-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.permissions-info p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.role-permissions-panel {
    display: none;
}

.role-permissions-panel.active {
    display: block;
}

.permissions-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.permission-category {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.permission-category-header {
    background: #f5f5f5;
    padding: 12px 15px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.permission-category-header .toggle-all {
    font-size: 12px;
    color: #3a6e35;
    cursor: pointer;
    text-decoration: underline;
}

.permission-category-header .toggle-all:hover {
    color: #2d5428;
}

.permission-items {
    padding: 10px 15px;
}

.permission-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.permission-item:last-child {
    border-bottom: none;
}

.permission-item input[type="checkbox"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.permission-item label {
    flex: 1;
    cursor: pointer;
    font-size: 14px;
    color: #444;
}

.permission-item label:hover {
    color: #3a6e35;
}

.save-permissions-btn {
    background: #3a6e35;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.save-permissions-btn:hover {
    background: #2d5428;
}

.reset-permissions-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.reset-permissions-btn:hover {
    background: #5a6268;
}

/* Hide owner-only elements for non-owners */
.owner-only {
    /* By default visible, JS will hide for non-owners */
}

.owner-only.hidden {
    display: none !important;
}

/* Responsive adjustments for permissions */
@media (max-width: 768px) {
    .role-tabs {
        flex-wrap: wrap;
    }
    
    .role-tab-button {
        flex: 1;
        min-width: 120px;
        text-align: center;
    }
    
    .permission-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* =========================================
   Reports & Analytics (Pro Feature)
   ========================================= */

.reports-controls {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.date-range-selector h4 {
    margin: 0 0 15px 0;
    color: #333;
}

.date-preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.date-preset-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.date-preset-btn:hover {
    background: #f0f0f0;
    border-color: #3a6e35;
}

.date-preset-btn.active {
    background: #3a6e35;
    color: white;
    border-color: #3a6e35;
}

.custom-date-range {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.custom-date-range .form-group {
    flex: 1;
    min-width: 150px;
}

.custom-date-range label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    color: #666;
}

.custom-date-range input[type="date"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

/* Upgrade Notice */
.upgrade-notice {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin: 20px 0;
}

.upgrade-notice .upgrade-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.upgrade-notice h4 {
    font-size: 24px;
    margin: 0 0 15px 0;
}

.upgrade-notice p {
    font-size: 16px;
    margin: 0 0 20px 0;
    opacity: 0.9;
}

.upgrade-notice .btn-primary {
    background: white;
    color: #667eea;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
}

.upgrade-notice .btn-primary:hover {
    background: #f0f0f0;
}

/* Reports Results */
.reports-results {
    margin-top: 20px;
}

/* Report Type Tabs */
.report-type-tabs {
    display: flex;
    gap: 5px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
}

.report-type-btn {
    padding: 12px 24px;
    border: none;
    background: #f5f5f5;
    color: #333;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px 6px 0 0;
    transition: all 0.2s ease;
}

.report-type-btn:hover {
    background: #e0e0e0;
}

.report-type-btn.active {
    background: #3a6e35;
    color: white;
}

/* Report Sections */
.report-section {
    animation: fadeIn 0.3s ease;
}

.report-section.hidden {
    display: none;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.report-header h4 {
    margin: 0;
    color: #333;
}

/* Summary Cards */
.report-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.summary-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.summary-label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.summary-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #3a6e35;
}

/* Chart Sections */
.report-chart-section {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.report-chart-section h5 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

.chart-container {
    min-height: 200px;
}

/* Simple Bar Chart */
.simple-bar-chart {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bar-label {
    width: 50px;
    font-size: 12px;
    color: #666;
    text-align: right;
}

.bar-container {
    flex: 1;
    height: 24px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3a6e35, #5a9e54);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.bar-value {
    width: 80px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

/* Hourly Heatmap */
.hourly-heatmap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.heatmap-cell {
    width: 60px;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 11px;
    cursor: default;
    transition: transform 0.2s ease;
}

.heatmap-cell:hover {
    transform: scale(1.1);
}

.heatmap-cell .hour-label {
    font-weight: 600;
    margin-bottom: 2px;
}

.heatmap-cell .count-label {
    font-size: 16px;
    font-weight: 700;
}

.heatmap-cell.none {
    background: #f5f5f5;
    color: #999;
}

.heatmap-cell.low {
    background: #c8e6c9;
    color: #2e7d32;
}

.heatmap-cell.medium {
    background: #81c784;
    color: white;
}

.heatmap-cell.high {
    background: #388e3c;
    color: white;
}

/* Day of Week Chart */
.dow-chart {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 200px;
    padding: 10px;
}

.dow-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50px;
}

.dow-label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-top: 8px;
}

.dow-bar-container {
    width: 40px;
    height: 150px;
    background: #f0f0f0;
    border-radius: 4px 4px 0 0;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.dow-bar-fill {
    width: 100%;
    background: linear-gradient(180deg, #3a6e35, #5a9e54);
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease;
}

.dow-count {
    font-size: 11px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

/* Report Tables */
.report-table-section {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.report-table-section h5 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
}

.report-table th,
.report-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.report-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

.report-table td {
    font-size: 14px;
    color: #444;
}

.report-table tr:hover td {
    background: #f8f9fa;
}

.report-table .no-data {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 30px;
}

/* Utilization Insights */
.utilization-insights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.insight-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.insight-icon {
    font-size: 32px;
}

.insight-content {
    display: flex;
    flex-direction: column;
}

.insight-label {
    font-size: 13px;
    color: #666;
}

.insight-value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* Loading State */
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

/* Button Sizes */
.btn-sm {
    padding: 6px 12px !important;
    font-size: 13px !important;
}

/* Responsive Reports */
@media (max-width: 768px) {
    .date-preset-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .custom-date-range {
        flex-direction: column;
    }
    
    .custom-date-range .form-group {
        width: 100%;
    }
    
    .report-type-tabs {
        flex-wrap: wrap;
    }
    
    .report-type-btn {
        flex: 1;
        min-width: 80px;
        padding: 10px 15px;
        font-size: 12px;
    }
    
    .report-summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .summary-value {
        font-size: 22px;
    }
    
    .hourly-heatmap {
        gap: 5px;
    }
    
    .heatmap-cell {
        width: 45px;
        height: 45px;
        font-size: 10px;
    }
    
    .dow-chart {
        height: 150px;
    }
    
    .dow-bar-container {
        height: 100px;
        width: 30px;
    }
    
    .dow-bar {
        width: 40px;
    }
}

/* ============================================================================
   COURSE OCCUPANCY FEATURE STYLES (Pro Feature)
   ============================================================================ */

/* Pro Feature Badge Styles */
.pro-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pro-badge-small {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 5px;
}

.pro-badge-inline {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1px 5px;
    border-radius: 6px;
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 5px;
    vertical-align: middle;
}

/* Pro Feature Section */
.pro-feature-section {
    position: relative;
}

.pro-feature-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.pro-feature-header h4 {
    margin: 0;
}

/* Upgrade Notice */
.upgrade-notice {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #667eea;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin: 20px 0;
}

.upgrade-notice.hidden {
    display: none;
}

.upgrade-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.upgrade-notice h5 {
    color: #667eea;
    margin: 0 0 10px 0;
    font-size: 18px;
}

.upgrade-notice p {
    color: #666;
    margin: 10px 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.upgrade-btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

/* Feature Description */
.feature-description {
    color: #555;
    margin-bottom: 25px;
    line-height: 1.6;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

/* Input with Unit */
.input-with-unit {
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-with-unit input {
    width: 100px;
}

.input-with-unit .unit {
    color: #666;
    font-size: 14px;
}

/* Info Box */
.info-box {
    background: #f0f7ff;
    border: 1px solid #d0e3ff;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
}

.info-box h5 {
    margin: 0 0 10px 0;
    color: #1a56db;
    font-size: 16px;
}

.info-box p {
    margin: 8px 0;
    color: #555;
}

.multiplier-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.multiplier-list li {
    display: flex;
    justify-content: space-between;
    background: white;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e0e7ff;
}

.multiplier-group {
    color: #444;
}

.multiplier-value {
    font-weight: 600;
    color: #1a56db;
}

.example-text {
    font-size: 13px;
    color: #666;
    margin-top: 15px;
}

.example-text span {
    font-weight: 600;
    color: #1a56db;
}

/* Occupancy Controls in Tee Sheet Header */
.occupancy-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(102, 126, 234, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.occupancy-controls.hidden {
    display: none;
}

.occupancy-controls .form-group {
    margin: 0;
}

.occupancy-controls .checkbox-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.occupancy-controls label {
    margin: 0;
    font-size: 13px;
    white-space: nowrap;
}

.occupancy-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.occupancy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

/* Occupancy Panel */
.occupancy-panel {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-top: 20px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.occupancy-panel.hidden {
    display: none;
}

.occupancy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.occupancy-header h4 {
    margin: 0;
    color: #333;
}

.occupancy-stats {
    display: flex;
    gap: 20px;
}

.occupancy-stats .stat {
    text-align: center;
}

.occupancy-stats .stat-value {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #667eea;
}

.occupancy-stats .stat-label {
    display: block;
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
}

/* Time Controls */
.occupancy-time-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.play-btn:hover {
    transform: scale(1.05);
}

/* Time input and slider group - stacked vertically */
.time-input-slider-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    max-width: 200px;
}

.time-input-slider-group input[type="time"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.time-slider-container {
    width: 100%;
}

.time-slider-container input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e0e0e0;
    -webkit-appearance: none;
    appearance: none;
}

.time-slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
}

.occupancy-time-controls input[type="time"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.speed-controls {
    display: flex;
    gap: 5px;
}

.speed-btn {
    padding: 6px 10px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.speed-btn:hover {
    border-color: #667eea;
}

.speed-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Course Diagram */
.occupancy-course-diagram {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    overflow-x: auto;
}

.holes-container {
    display: flex;
    gap: 8px;
    min-width: fit-content;
}

.hole {
    flex: 1;
    min-width: 50px;
    max-width: 70px;
    background: #e8f5e9;
    border: 2px solid #4caf50;
    border-radius: 8px;
    padding: 10px 5px;
    text-align: center;
    transition: all 0.3s;
}

.hole.turn-hole {
    border-color: #ff9800;
    background: #fff3e0;
}

.hole.busy {
    background: #fff9c4;
    border-color: #ffc107;
}

.hole.congested {
    background: #ffebee;
    border-color: #f44336;
}

.hole-number {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.hole-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    min-height: 30px;
}

.turn-marker {
    font-size: 10px;
    color: #ff9800;
    margin-top: 5px;
    font-weight: 500;
}

/* Group Markers */
.group-marker {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
}

.group-marker:hover {
    transform: scale(1.2);
}

.group-marker.on-pace {
    background: #4caf50;
}

.group-marker.delayed {
    background: #f44336;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(244, 67, 54, 0); }
}

/* Legend */
.occupancy-legend {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.not-started {
    background: #9e9e9e;
}

.legend-dot.on-pace {
    background: #4caf50;
}

.legend-dot.delayed {
    background: #f44336;
}

.legend-dot.finished {
    background: #2196f3;
}

/* Tee Sheet Congestion Overlay - Always visible for Pro/Enterprise */
.tee-sheet-row.congestion-low {
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.15) 0%, rgba(76, 175, 80, 0.08) 100%);
    border-left: 4px solid #4caf50;
}

.tee-sheet-row.congestion-medium {
    background: linear-gradient(90deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 193, 7, 0.1) 100%);
    border-left: 4px solid #ffc107;
}

.tee-sheet-row.congestion-high {
    background: linear-gradient(90deg, rgba(244, 67, 54, 0.2) 0%, rgba(244, 67, 54, 0.1) 100%);
    border-left: 4px solid #f44336;
}

/* Congestion hover effect - subtle enhancement */
.tee-sheet-row.congestion-low:hover {
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.25) 0%, rgba(76, 175, 80, 0.12) 100%);
}

.tee-sheet-row.congestion-medium:hover {
    background: linear-gradient(90deg, rgba(255, 193, 7, 0.3) 0%, rgba(255, 193, 7, 0.15) 100%);
}

.tee-sheet-row.congestion-high:hover {
    background: linear-gradient(90deg, rgba(244, 67, 54, 0.3) 0%, rgba(244, 67, 54, 0.15) 100%);
}

/* 9-Hole Course Specific Styles */
.holes-container.nine-hole-course {
    justify-content: center;
}

.holes-container.nine-hole-course .hole {
    min-width: 60px;
    max-width: 80px;
}

.nine-hole-note {
    margin-top: 15px;
    padding: 10px 15px;
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    border-radius: 4px;
    font-size: 13px;
    color: #e65100;
}

.turn-marker.loop-back {
    color: #9c27b0;
    font-weight: 600;
}

/* Second pass styling for 18-hole groups on 9-hole course */
.group-marker.second-pass {
    background: #9c27b0;
    border: 2px solid #7b1fa2;
    box-shadow: 0 0 4px rgba(156, 39, 176, 0.5);
}

.group-marker.second-pass.delayed {
    background: #e91e63;
    border-color: #c2185b;
}

.legend-dot.second-pass {
    background: #9c27b0;
}

/* Loop-back stat styling */
.occupancy-stats .stat.loop-back-stat .stat-value {
    color: #9c27b0;
}

.occupancy-stats .stat.loop-back-stat .stat-label {
    color: #7b1fa2;
}

/* Responsive Occupancy Styles */
@media (max-width: 768px) {
    .occupancy-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .occupancy-time-controls {
        flex-wrap: wrap;
    }
    
    .time-input-slider-group {
        max-width: 100%;
        width: 100%;
    }
    
    .time-slider-container {
        width: 100%;
    }
    
    .occupancy-stats {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .holes-container {
        gap: 4px;
    }
    
    .hole {
        min-width: 40px;
        padding: 8px 4px;
    }
    
    .hole-number {
        font-size: 12px;
    }
    
    .group-marker {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    
    .multiplier-list {
        grid-template-columns: 1fr;
    }
    
    .occupancy-legend {
        flex-wrap: wrap;
        gap: 15px;
    }
}

/* ============================================================================
   CUSTOM BRANDING FEATURE STYLES (Pro Feature)
   ============================================================================ */

/* Branding Layout */
.branding-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.branding-settings-panel {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.branding-preview-panel {
    position: sticky;
    top: 20px;
}

/* Branding Sections */
.branding-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.branding-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.branding-section h5 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 15px;
}

/* Color Pickers */
.color-pickers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.color-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.color-input-group label {
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

.color-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-input-wrapper input[type="color"] {
    width: 50px;
    height: 40px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    padding: 2px;
}

.color-input-wrapper input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 2px;
}

.color-input-wrapper input[type="color"]::-webkit-color-swatch {
    border-radius: 3px;
    border: none;
}

.color-input-wrapper input[type="text"] {
    width: 100px;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    font-family: monospace;
    text-transform: uppercase;
}

.reset-colors-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

.reset-colors-btn:hover {
    background: #5a6268;
}

/* Logo Upload */
.current-logo-display {
    margin-bottom: 15px;
}

.current-logo-display img {
    max-width: 200px;
    max-height: 80px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    background: white;
}

#no-logo-message {
    color: #999;
    font-style: italic;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 6px;
    text-align: center;
}

.logo-upload-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.logo-upload-controls input[type="file"] {
    flex: 1;
    min-width: 200px;
}

#delete-logo-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    display: none;
}

#delete-logo-btn:hover {
    background: #c82333;
}

.logo-requirements {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

/* Welcome Message */
.welcome-message-input {
    width: 100%;
}

.welcome-message-input textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    resize: vertical;
    min-height: 60px;
}

.char-count {
    font-size: 12px;
    color: #666;
    text-align: right;
    margin-top: 5px;
}

/* Preview Panel */
.branding-preview {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.preview-title {
    background: #f5f5f5;
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    border-bottom: 1px solid #e0e0e0;
}

.preview-content {
    padding: 0;
}

/* Preview Header */
.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: #3a6e35;
    border-bottom: 3px solid #3a6e35;
    transition: all 0.3s ease;
}

#preview-logo {
    display: flex;
    align-items: center;
}

#preview-logo img {
    max-height: 40px;
}

.preview-title-text {
    font-weight: 600;
    color: #ffffff;
    font-size: 16px;
}

.preview-nav {
    display: flex;
    gap: 15px;
}

.preview-nav span {
    font-size: 13px;
    color: #ffffff;
    opacity: 0.9;
}

/* Preview Body */
.preview-body {
    padding: 20px;
    background: #f8f9fa;
}

.preview-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.preview-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 15px;
}

.preview-day {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 8px 4px;
    text-align: center;
    font-size: 11px;
}

.preview-day.selected {
    background: #3a6e35;
    color: white;
    border-color: #3a6e35;
}

.preview-button {
    display: block;
    width: 100%;
    padding: 12px;
    background: #3a6e35;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: background 0.2s;
}

/* Enable/Disable Branding Toggle */
.enable-branding-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #e8f5e9;
    border-radius: 6px;
}

.enable-branding-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.enable-branding-toggle label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

/* Save Button */
.branding-save-btn {
    background: #3a6e35;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    margin-top: 15px;
}

.branding-save-btn:hover {
    background: #2d5428;
}

/* Responsive Branding */
@media (max-width: 1024px) {
    .branding-layout {
        grid-template-columns: 1fr;
    }
    
    .branding-preview-panel {
        position: static;
    }
}

@media (max-width: 768px) {
    .color-pickers {
        grid-template-columns: 1fr;
    }
    
    .color-input-wrapper {
        flex-wrap: wrap;
    }
    
    .logo-upload-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .logo-upload-controls input[type="file"] {
        min-width: 100%;
    }
}

/* ============================================================================
   AUDIT LOG STYLES
   ============================================================================ */

/* Filters */
.audit-log-filters {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.audit-log-filters .filter-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.audit-log-filters .filter-row:last-child {
    margin-bottom: 0;
}

.audit-log-filters .filter-group {
    flex: 1;
    min-width: 150px;
}

.audit-log-filters .filter-group.filter-search {
    flex: 2;
    min-width: 250px;
}

.audit-log-filters .filter-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 5px;
}

.audit-log-filters .filter-actions {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

/* Table */
.audit-log-table-container {
    overflow-x: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.audit-log-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.audit-log-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.audit-log-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
}

.audit-log-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
}

.audit-log-table tbody tr:hover {
    background: #f8f9fa;
}

.audit-log-table .no-data {
    text-align: center;
    color: #666;
    padding: 40px 15px;
    font-style: italic;
}

/* Timestamp */
.audit-timestamp {
    white-space: nowrap;
    color: #666;
    font-size: 13px;
}

/* Actor */
.audit-actor .actor-name {
    font-weight: 500;
    display: block;
}

.audit-actor .actor-role {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 4px;
}

.badge-owner {
    background: #7c3aed;
    color: white;
}

.badge-admin {
    background: #2563eb;
    color: white;
}

.badge-manager {
    background: #059669;
    color: white;
}

.badge-staff {
    background: #6b7280;
    color: white;
}

/* Action */
.audit-action .event-category {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-right: 8px;
    font-weight: 600;
}

.badge-category-booking {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-category-member {
    background: #dcfce7;
    color: #166534;
}

.badge-category-pricing {
    background: #fef3c7;
    color: #b45309;
}

.badge-category-config {
    background: #f3e8ff;
    color: #7c3aed;
}

.badge-category-scheduling {
    background: #ffedd5;
    color: #c2410c;
}

.badge-category-rain_check {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-category-communication {
    background: #fce7f3;
    color: #be185d;
}

.badge-category-admin {
    background: #fee2e2;
    color: #dc2626;
}

.badge-category-support {
    background: #f0fdf4;
    color: #15803d;
}

.audit-action .event-description {
    color: #374151;
}

/* Entity */
.audit-entity .entity-name {
    display: block;
    font-weight: 500;
}

.audit-entity .entity-type {
    font-size: 12px;
    color: #666;
}

/* Pagination */
.audit-log-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.pagination-info {
    color: #666;
    font-size: 14px;
}

.pagination-info .retention-note {
    color: #999;
    font-size: 12px;
    margin-left: 10px;
}

.pagination-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pagination-controls .page-indicator {
    padding: 0 15px;
    color: #666;
}

/* Detail Modal */
.audit-detail-modal {
    max-width: 700px;
    width: 90%;
}

.audit-detail-header {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.audit-detail-header h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.audit-detail-header .timestamp {
    color: #666;
    font-size: 13px;
}

.audit-detail-meta {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

.audit-detail-meta .meta-item {
    display: flex;
    margin-bottom: 8px;
}

.audit-detail-meta .meta-item:last-child {
    margin-bottom: 0;
}

.audit-detail-meta label {
    font-weight: 600;
    color: #666;
    width: 120px;
    flex-shrink: 0;
}

.audit-detail-changes h5,
.audit-detail-metadata h5 {
    font-size: 14px;
    margin: 0 0 10px 0;
    color: #374151;
}

.changes-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.changes-table th,
.changes-table td {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.changes-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.changes-table .field-name {
    font-weight: 500;
    width: 25%;
}

.changes-table .old-value,
.changes-table .new-value {
    width: 37.5%;
}

.changes-table tr.changed .old-value {
    background: #fee2e2;
}

.changes-table tr.changed .new-value {
    background: #dcfce7;
}

.changes-table .empty-value {
    color: #999;
}

.audit-detail-metadata pre {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 12px;
    max-height: 200px;
}

/* Upgrade Notice */
.audit-log-upgrade-notice {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    margin: 20px 0;
}

.audit-log-upgrade-notice .upgrade-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.audit-log-upgrade-notice h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
    color: #333;
}

.audit-log-upgrade-notice p {
    color: #666;
    margin: 0 0 10px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.audit-log-upgrade-notice .btn {
    margin-top: 20px;
}

/* Loading Indicator */
.audit-log-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .audit-log-filters .filter-row {
        flex-direction: column;
    }
    
    .audit-log-filters .filter-group {
        min-width: 100%;
    }
    
    .audit-log-filters .filter-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .audit-log-pagination {
        flex-direction: column;
        text-align: center;
    }
    
    .audit-log-table {
        font-size: 12px;
    }
    
    .audit-log-table th,
    .audit-log-table td {
        padding: 8px 10px;
    }
}
