/* Google Fonts - consistent with landing.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@600;700;800&display=swap');

/* 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;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-heading: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

    /* Marketing Suite */
    .marketing-suite-shell {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .marketing-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        border-bottom: 1px solid #dce3e8;
        padding-bottom: 10px;
    }

    .marketing-tab {
        border: 1px solid #cfd8df;
        background: #fff;
        color: #254135;
        border-radius: 6px;
        padding: 8px 12px;
        font-weight: 600;
        cursor: pointer;
    }

    .marketing-tab.active {
        background: #1f6f4a;
        border-color: #1f6f4a;
        color: #fff;
    }

    .marketing-suite-view {
        min-height: 360px;
    }

    .marketing-stat-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
        margin-bottom: 16px;
    }

    .marketing-stat,
    .marketing-panel,
    .marketing-list-item,
    .marketing-upgrade,
    .marketing-error {
        background: #fff;
        border: 1px solid #dfe7ec;
        border-radius: 8px;
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    }

    .marketing-stat {
        padding: 16px;
    }

    .marketing-stat-value {
        font-size: 1.8rem;
        line-height: 1;
        font-weight: 800;
        color: #173c2a;
    }

    .marketing-stat-label {
        color: #64748b;
        margin-top: 6px;
        font-size: .92rem;
    }

    .marketing-dashboard-grid,
    .marketing-two-column {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 16px;
    }

    .marketing-panel {
        padding: 16px;
        margin-bottom: 16px;
    }

    .marketing-panel-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 12px;
    }

    .marketing-panel-header h4,
    .marketing-panel-header h5 {
        margin: 0;
        color: #173c2a;
    }

    .marketing-pill {
        border-radius: 999px;
        background: #e7edf2;
        color: #475569;
        padding: 4px 9px;
        font-size: .82rem;
        font-weight: 700;
    }

    .marketing-pill.active {
        background: #dcfce7;
        color: #166534;
    }

    .marketing-table-wrap {
        overflow-x: auto;
    }

    .marketing-table {
        width: 100%;
        border-collapse: collapse;
    }

    .marketing-table th,
    .marketing-table td {
        border-bottom: 1px solid #e5ebef;
        padding: 10px;
        text-align: left;
        vertical-align: top;
    }

    .marketing-table th {
        color: #475569;
        font-size: .85rem;
        text-transform: uppercase;
    }

    .marketing-table span,
    .marketing-list-item span,
    .marketing-list-meta {
        color: #64748b;
        font-size: .88rem;
    }

    .marketing-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .marketing-campaign-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .marketing-list-item {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 12px;
        align-items: center;
        padding: 12px;
    }

    .marketing-list-item strong,
    .marketing-list-item span {
        display: block;
    }

    .marketing-toolbar,
    .marketing-form-actions,
    .marketing-test-email {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
        margin-bottom: 12px;
    }

    .marketing-toolbar select,
    .marketing-test-email input {
        min-width: 240px;
    }

    .marketing-empty,
    .marketing-loading {
        color: #64748b;
        padding: 14px;
        border: 1px dashed #cbd5e1;
        border-radius: 8px;
        background: #f8fafc;
    }

    .marketing-error,
    .marketing-upgrade {
        padding: 18px;
    }

    .marketing-error {
        border-color: #fecaca;
        background: #fff5f5;
        color: #991b1b;
    }

    .marketing-checkbox {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 8px 0 14px;
        font-weight: 600;
    }

    .marketing-switch-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        max-width: 320px;
        margin: 8px 0 14px;
        font-weight: 600;
    }

    .marketing-switch {
        position: relative;
        display: inline-flex;
        width: 48px;
        height: 28px;
        flex: 0 0 auto;
    }

    .marketing-switch input {
        position: absolute;
        inset: 0;
        opacity: 0;
        cursor: pointer;
        margin: 0;
    }

    .marketing-switch-track {
        width: 100%;
        height: 100%;
        border-radius: 999px;
        background: #cbd5e1;
        transition: background .16s ease;
    }

    .marketing-switch-track::after {
        content: '';
        position: absolute;
        top: 4px;
        left: 4px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 1px 3px rgba(15, 23, 42, .25);
        transition: transform .16s ease;
    }

    .marketing-switch input:checked + .marketing-switch-track {
        background: #1f6f4a;
    }

    .marketing-switch input:checked + .marketing-switch-track::after {
        transform: translateX(20px);
    }

    .marketing-switch input:focus-visible + .marketing-switch-track {
        outline: 2px solid #4f8f45;
        outline-offset: 2px;
    }

    .marketing-ses-status {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 10px;
        margin-bottom: 14px;
    }

    .marketing-ses-status div {
        border: 1px solid #e5ebef;
        border-radius: 8px;
        padding: 10px;
    }

    .marketing-ses-status span,
    .marketing-ses-status strong {
        display: block;
    }

    .marketing-ses-status .ok {
        color: #166534;
    }

    .marketing-ses-status .bad {
        color: #b45309;
    }

    .marketing-code {
        white-space: pre-wrap;
        background: #0f172a;
        color: #e2e8f0;
        border-radius: 8px;
        padding: 12px;
        max-height: 220px;
        overflow: auto;
    }

    .marketing-sender-summary,
    .marketing-delivery-status {
        border: 1px solid #dbe5ea;
        border-radius: 8px;
        padding: 12px;
        margin-bottom: 14px;
        background: #f8fbf9;
    }

    .marketing-sender-summary span,
    .marketing-delivery-status span,
    .marketing-delivery-status small {
        display: block;
        color: #64748b;
    }

    .marketing-sender-summary strong,
    .marketing-delivery-status strong {
        display: block;
        color: #06332f;
        overflow-wrap: anywhere;
    }

    .marketing-delivery-status.ready {
        border-color: #bbf7d0;
        background: #f0fdf4;
    }

    .marketing-delivery-status.needs-setup {
        border-color: #fde68a;
        background: #fffbeb;
    }

    .marketing-card-preview {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 420px));
        gap: 14px;
        justify-content: start;
        align-items: start;
    }

    .marketing-card-canvas-frame {
        background: #fff;
        border: 1px solid #dfe7ec;
        border-radius: 8px;
        padding: 14px;
        max-width: 780px;
        box-shadow: 0 14px 34px rgba(15, 23, 42, .16);
    }

    .marketing-business-card-canvas {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 6px;
    }

    .mk-card-print {
        width: 100%;
        max-width: 420px;
        aspect-ratio: 1.75 / 1;
        border: 1px solid #d5dee5;
        border-radius: 8px;
        padding: 18px;
        background: linear-gradient(135deg, #ffffff, #eef7f1);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        color: #173c2a;
        overflow: hidden;
        box-sizing: border-box;
    }

    .mk-card-back {
        background: #173c2a;
        color: #fff;
    }

    .mk-card-course {
        font-weight: 800;
        letter-spacing: 0;
        text-transform: uppercase;
    }

    .mk-card-name {
        font-size: 1.35rem;
        font-weight: 800;
    }

    .mk-card-title,
    .mk-card-contact,
    .mk-card-booking,
    .mk-card-promo {
        font-size: .9rem;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .mk-card-back .mk-card-booking {
        font-weight: 700;
    }

    .mk-card-promo {
        font-weight: 800;
        margin-top: 8px;
    }

    body.dark-mode .marketing-tab,
    body.dark-mode .marketing-stat,
    body.dark-mode .marketing-panel,
    body.dark-mode .marketing-list-item,
    body.dark-mode .marketing-empty,
    body.dark-mode .marketing-loading {
        background: #1e293b;
        border-color: #334155;
        color: #e2e8f0;
    }

    body.dark-mode .marketing-panel-header h4,
    body.dark-mode .marketing-panel-header h5,
    body.dark-mode .marketing-stat-value {
        color: #f8fafc;
    }

    body.dark-mode .marketing-tab.active {
        background: #2f855a;
        border-color: #2f855a;
    }

    @media (max-width: 720px) {
        .marketing-list-item {
            grid-template-columns: 1fr;
        }

        .marketing-toolbar select,
        .marketing-test-email input {
            min-width: 0;
            width: 100%;
        }
    }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Wider container for admin pages */
body.admin-page .container {
    max-width: 1400px;
}

/* Admin panel breaks out of container for full-width sidebar */
body.admin-page main {
    padding: 0;
    margin: 0;
}

body.admin-page #login-section,
body.admin-page #forgot-password-section,
body.admin-page #reset-password-section {
    max-width: 400px;
    margin: 40px auto;
    padding: 0 20px;
}

body.admin-page #admin-panel {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* 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, opacity 0.3s ease;
}

/* Hide header until branding is loaded to prevent flash of default content */
header.header-loading, #site-header.header-loading {
    opacity: 0;
}

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;
}

/* Admin page compact fixed header */
body.admin-page header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 102;
    padding: 10px 0;
}

body.admin-page header h1 {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

body.admin-page header p {
    font-size: 0.85rem;
}

body.admin-page main {
    padding-top: var(--header-height, 150px);
}

/* Admin header bar: logo (left) | title (center) | weather (right) */
body.admin-page .admin-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.admin-header-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.admin-header-logo .logo-wordmark {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    line-height: 1;
}

.admin-header-logo .logo-wordmark .book,
.admin-header-logo .logo-wordmark .tee {
    color: #ffffff;
}

.admin-header-logo .logo-wordmark .a {
    color: #8be58b;
}

body.admin-page .admin-header-title {
    flex: 1 1 auto;
    text-align: center;
    min-width: 0;
}

.admin-header-weather {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 120px;
    color: var(--brand-header-text, #ffffff);
}

.admin-header-weather-loading {
    font-size: 0.8rem;
    opacity: 0.85;
}

.admin-header-weather-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-header-weather-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.admin-header-weather-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    text-align: right;
}

.admin-header-weather-temp {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.1;
}

.admin-header-weather-meta {
    font-size: 0.75rem;
    opacity: 0.9;
    line-height: 1.1;
}

/* 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: 300px;
    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: 24px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0,0,0,0.05);
}

/* Compact Date Selector */
.date-selector-compact {
    margin-bottom: 0;
}

.date-selector-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f8faf8 0%, #ffffff 100%);
    border: 2px solid #d0d9cf;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.date-selector-header:hover {
    border-color: #3a6e35;
    box-shadow: 0 2px 8px rgba(58, 110, 53, 0.12);
}

.date-selector-header:active {
    transform: scale(0.99);
}

.date-selector-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3a6e35;
}

.date-selector-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.date-selector-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.date-selector-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d5829;
}

.date-selector-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3a6e35;
    transition: transform 0.3s ease;
}

.date-selector-arrow.expanded {
    transform: rotate(180deg);
}

/* Calendar Wrapper - Collapsible */
#calendar-wrapper {
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.35s ease;
}

#calendar-wrapper.calendar-collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

#calendar-wrapper.calendar-expanded {
    max-height: 400px;
    opacity: 1;
    margin-top: 16px;
}

/* Mobile styles for date selector */
@media (max-width: 480px) {
    .date-selector-header {
        padding: 12px 14px;
        gap: 10px;
    }
    
    .date-selector-icon {
        font-size: 1.25rem;
    }
    
    .date-selector-value {
        font-size: 1rem;
    }
    
    #calendar-wrapper.calendar-expanded {
        max-height: 350px;
    }
}

#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: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    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: 14px 10px;
    min-height: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 8px;
    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, 0 0 12px rgba(58, 110, 53, 0.4);
    color: #ffffff;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Skeleton Shimmer Placeholders for Time Slots */
@keyframes shimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

@keyframes slotFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.time-slot-skeleton {
    min-height: 48px;
    border-radius: 8px;
    background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
    background-size: 800px 100%;
    animation: shimmer 1.5s infinite ease-in-out;
}

.time-slot.slot-animate-in {
    animation: slotFadeIn 0.3s ease-out forwards;
    opacity: 0;
}

/* Legend */
.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 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, textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px !important;
    background-color: #fff;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 16px top 50%;
    background-size: 12px auto;
    padding-right: 40px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 24px;
    min-width: 24px;
    height: 24px;
    min-height: 24px;
    flex-shrink: 0;
    accent-color: var(--brand-primary);
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
}

button {
    background-color: #3a6e35;
    color: white;
    border: none;
    padding: 12px 20px;
    min-height: 48px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

button:hover:not(:disabled) {
    background-color: #2c5329;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

button:active:not(:disabled) {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

button:disabled {
    background-color: #999;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    #submit-button, #sim-submit-btn {
        width: 100%;
        height: 54px;
        font-size: 1.1rem;
        margin-top: 10px;
    }
}

/* 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;
}

/* Guest Booking Message */
.guest-booking-message {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid #90caf9;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.guest-booking-message p {
    margin: 0;
    color: #1565c0;
    font-size: 0.95rem;
    font-weight: 500;
}

/* 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 {
    display: flex;
    align-items: center;
    justify-content: center;
}

.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 */
.cancel-booking-container {
    margin: 1rem 0;
    text-align: center;
}

.cancel-booking-link {
    color: #d32f2f;
    font-size: 0.9rem;
    text-decoration: underline;
}

.cancel-booking-link:hover {
    color: #b71c1c;
}

.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 {
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-copied-message {
    display: block;
    margin-top: 0.75rem;
    color: #2e7d32;
    font-weight: 500;
}

/* Virtual Scorecard Button */
.scorecard-container {
    margin-top: 1.5rem;
    text-align: center;
}

.scorecard-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.3);
}

.scorecard-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.4);
}

.scorecard-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(46, 125, 50, 0.3);
}

.scorecard-button .scorecard-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.scorecard-hint {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

/* 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 - Enhanced UI */
#payment-info.payment-section {
    margin: 24px 0;
    background: linear-gradient(135deg, #f8faf8 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #e0e8df;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(58, 110, 53, 0.08);
}

/* Payment Summary */
.payment-summary {
    padding: 20px;
    background: #f8faf8;
    border-bottom: 1px solid #e8efe7;
}

.payment-summary-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.payment-summary-header .payment-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3a6e35;
}

.payment-summary-header .payment-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #5a5a5a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-amount {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.payment-amount .currency {
    font-size: 1.5rem;
    font-weight: 500;
    color: #3a6e35;
}

.payment-amount #total-cost {
    font-size: 2.25rem;
    font-weight: 700;
    color: #2d5829;
    line-height: 1;
}

/* Discount Info Styling */
.discount-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.discount-info .original-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
}

.discount-info .discount-badge {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Deposit Breakdown */
.deposit-breakdown {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #e0e0e0;
}

.deposit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.deposit-row .deposit-label {
    font-size: 0.95rem;
    color: #555;
}

.deposit-row .deposit-amount {
    font-size: 1.1rem;
    font-weight: 600;
}

.deposit-row.deposit-due .deposit-amount {
    color: #2e7d32;
}

.deposit-row.balance-due .deposit-amount {
    color: #666;
}

/* Deposit Confirmation Styles */
.deposit-confirmation-info {
    background-color: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.deposit-confirmation-info p {
    margin: 5px 0;
}

.deposit-instructions {
    background-color: #fff3e0;
    border: 1px solid #ffcc80;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.deposit-instructions h4 {
    margin: 0 0 10px 0;
    color: #e65100;
    font-size: 1rem;
}

.deposit-instructions p {
    margin: 0;
    line-height: 1.5;
    color: #555;
}

/* Deposit Indicator in Admin Booking List */
.deposit-paid-indicator {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.deposit-badge {
    display: inline-block;
    background-color: #1976d2;
    color: white;
    font-size: 0.65rem;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.deposit-paid-indicator .balance-text {
    font-size: 0.85rem;
    color: #e65100;
}

/* Payment Card Section */
.payment-card-section {
    padding: 20px;
    background: #ffffff;
    /* Ensure card section doesn't constrain Stripe element */
    overflow: visible;
    box-sizing: border-box;
}

.payment-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.payment-card-header .card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3a6e35;
}

.payment-card-header .card-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.payment-card-hint {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 16px;
    margin-top: 0;
}

/* Optional payment hint styling */
.payment-card-hint.payment-optional-note {
    color: #5a7d55;
    font-style: italic;
    background: #f0f7ef;
    padding: 10px 12px;
    border-radius: 6px;
    border-left: 3px solid #3a6e35;
}

/* Stripe Card Input Styling */
.stripe-card-input {
    padding: 14px 16px;
    background: #ffffff;
    border: 2px solid #d0d9cf;
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    /* Ensure full width for Stripe iframe */
    width: 100%;
    box-sizing: border-box;
}

/* Ensure Stripe iframe takes full width */
.stripe-card-input iframe {
    width: 100% !important;
}

.stripe-card-input:focus-within {
    border-color: #3a6e35;
    box-shadow: 0 0 0 3px rgba(58, 110, 53, 0.15);
}

/* Payment Security Note */
.payment-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed #e0e8df;
    font-size: 0.8rem;
    color: #888;
}

.payment-security-note .lock-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

/* Promo Highlight Animation */
.time-slot.promo-highlight {
    animation: promo-pulse 2s ease-in-out infinite;
    border-color: #ff6b6b;
}

@keyframes promo-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(255, 107, 107, 0); }
}

/* Promo Toast Notification */
.promo-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #3a6e35 0%, #2d5829 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(58, 110, 53, 0.3);
    z-index: 10000;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.promo-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.promo-toast-icon {
    font-size: 1.25rem;
}

.promo-toast-text {
    font-weight: 600;
}

/* Legacy fallback for non-enhanced payment info */
#payment-info:not(.payment-section) {
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* Payment Section Mobile Responsiveness */
@media (max-width: 480px) {
    #payment-info.payment-section {
        margin: 16px 0;
        border-radius: 10px;
    }
    
    .payment-summary {
        padding: 16px;
    }
    
    .payment-amount #total-cost {
        font-size: 1.875rem;
    }
    
    .payment-card-section {
        padding: 16px 12px;
    }
    
    .payment-card-hint {
        font-size: 0.85rem;
    }
    
    .stripe-card-input {
        padding: 12px 10px;
        /* Give Stripe more room on mobile - prevents number/date overlap */
        min-height: 50px;
    }
    
    .payment-security-note {
        font-size: 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
}

/* Extra small screens - Stripe card input needs stacked layout */
@media (max-width: 380px) {
    .stripe-card-input {
        padding: 12px 8px;
        min-height: 50px;
    }
    
    .payment-card-section {
        padding: 14px 10px;
    }
    
    #payment-info.payment-section {
        margin: 12px 0;
    }
    
    .payment-summary {
        padding: 14px 12px;
    }
    
    .promo-toast {
        left: 10px;
        right: 10px;
        transform: translateX(0) translateY(100px);
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .promo-toast.show {
        transform: translateX(0) translateY(0);
    }
}

/* 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: 40px auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

body.admin-page #login-section h2,
body.admin-page #forgot-password-section h2,
body.admin-page #reset-password-section h2 {
    margin-top: 0;
}

.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 SIDEBAR NAVIGATION
   ============================================ */

/* Layout Container */
.admin-layout {
    display: flex;
    gap: 0;
    min-height: calc(100vh - 120px);
}

/* Sidebar - Light Theme (Default) */
.admin-sidebar {
    width: 250px;
    min-width: 250px;
    background: linear-gradient(180deg, #f8faf8 0%, #eef4ee 100%);
    border-radius: 12px 0 0 12px;
    border-right: 1px solid #d4e5d4;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: calc(100vh - 150px);
    position: sticky;
    top: 20px;
}

/* Large screen: Fixed sidebar at left edge, below header */
@media (min-width: 1200px) {
    .admin-layout {
        margin-left: 250px;
    }
    
    .admin-sidebar {
        position: fixed;
        left: 0;
        top: var(--header-height, 70px);
        height: calc(100vh - var(--header-height, 70px));
        max-height: calc(100vh - var(--header-height, 70px));
        border-radius: 0;
        z-index: 100;
    }
    
    .admin-content {
        border-radius: 0;
        max-width: calc(100vw - 250px);
        padding: 20px 30px;
    }
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #d4e5d4;
    background: #3a6e35;
}

.sidebar-header h3 {
    margin: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* Sidebar Sections */
.sidebar-section {
    border-bottom: 1px solid #e0ebe0;
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-section-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: none;
    border: none;
    color: #2d5a27;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s;
}

@media (min-width: 993px) {
    .sidebar-section-toggle:hover {
        background: rgba(58, 110, 53, 0.85);
        color: #fff;
    }
}

.section-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b8e68;
}

.section-icon svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.section-title {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
}

.section-arrow {
    font-size: 10px;
    transition: transform 0.2s;
    color: #6b8e68;
}

.sidebar-section-toggle[aria-expanded="false"] .section-arrow {
    transform: rotate(-90deg);
}

/* Section Content (Collapsible) */
.sidebar-section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(58, 110, 53, 0.03);
}

.sidebar-section-content.expanded {
    max-height: 1000px;
}

/* Navigation Items */
.sidebar-nav-item {
    width: 100%;
    display: block;
    padding: 10px 20px 10px 56px;
    background: none;
    border: none;
    color: #4a6848;
    cursor: pointer;
    text-align: left;
    font-size: 13px;
    transition: all 0.2s;
    position: relative;
}

/* Sub-grouping label within a sidebar section */
.sidebar-subheading {
    display: block;
    padding: 10px 20px 4px 36px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #8aa587;
    pointer-events: none;
    user-select: none;
}

.sidebar-subheading:first-child {
    padding-top: 8px;
}

@media (min-width: 993px) {
    .sidebar-nav-item:hover {
        background: rgba(58, 110, 53, 0.85);
        color: #fff;
    }
}

.sidebar-nav-item.active {
    background: #3a6e35;
    color: #fff;
    font-weight: 500;
}

.sidebar-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #5cb85c;
}

.sidebar-nav-item .pro-badge-inline {
    font-size: 9px;
    padding: 2px 5px;
    margin-left: 6px;
    background: linear-gradient(135deg, #f5a623 0%, #f7931e 100%);
    border-radius: 3px;
    color: #fff;
    font-weight: 600;
}

/* Sidebar Footer with Dark Mode Toggle */
.sidebar-footer {
    margin-top: auto;
    padding: 16px 20px;
    border-top: 1px solid #d4e5d4;
    background: rgba(58, 110, 53, 0.03);
}

.dark-mode-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #d4e5d4;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

@media (min-width: 993px) {
    .dark-mode-toggle:hover {
        background: #f0f5f0;
        border-color: #3a6e35;
    }
}

.dark-mode-toggle .toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #6b8e68;
}

.dark-mode-toggle .toggle-icon svg {
    width: 18px;
    height: 18px;
}

.dark-mode-toggle .toggle-label {
    flex: 1;
    font-size: 13px;
    color: #4a6848;
    text-align: left;
}

.dark-mode-toggle .toggle-switch {
    width: 40px;
    height: 22px;
    background: #ccc;
    border-radius: 11px;
    position: relative;
    transition: background 0.3s;
}

.dark-mode-toggle .toggle-switch::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* ============================================
   DARK MODE THEME
   ============================================ */

body.dark-mode .admin-sidebar {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border-right-color: #2a2a4a;
}

body.dark-mode .sidebar-header {
    background: #0f0f1a;
    border-bottom-color: #2a2a4a;
}

body.dark-mode .sidebar-section {
    border-bottom-color: #2a2a4a;
}

body.dark-mode .sidebar-section-toggle {
    color: #e0e0e0;
}

@media (min-width: 993px) {
    body.dark-mode .sidebar-section-toggle:hover {
        background: rgba(255,255,255,0.1);
        color: #e0e0e0;
    }
}

body.dark-mode .section-arrow {
    color: #888;
}

body.dark-mode .sidebar-section-content {
    background: rgba(0,0,0,0.2);
}

body.dark-mode .sidebar-nav-item {
    color: #a0a0a0;
}

body.dark-mode .sidebar-subheading {
    color: #6f8a6c;
}

@media (min-width: 993px) {
    body.dark-mode .sidebar-nav-item:hover {
        background: rgba(58, 110, 53, 0.4);
        color: #fff;
    }
}

body.dark-mode .sidebar-footer {
    border-top-color: #2a2a4a;
    background: rgba(0,0,0,0.2);
}

body.dark-mode .dark-mode-toggle {
    background: #2a2a4a;
    border-color: #3a3a5a;
}

@media (min-width: 993px) {
    body.dark-mode .dark-mode-toggle:hover {
        background: #3a3a5a;
        border-color: #5cb85c;
    }
}

body.dark-mode .dark-mode-toggle .toggle-label {
    color: #ccc;
}

body.dark-mode .dark-mode-toggle .toggle-switch {
    background: #5cb85c;
}

body.dark-mode .dark-mode-toggle .toggle-switch::after {
    transform: translateX(18px);
}

/* Dark mode content area */
body.dark-mode .admin-content {
    background: #1e1e2f;
    color: #e0e0e0;
}

body.dark-mode .tab-content {
    color: #e0e0e0;
}

body.dark-mode .card {
    background: #2a2a3d;
    border-color: #3a3a4d;
    color: #e0e0e0;
}

body.dark-mode h3, body.dark-mode h4 {
    color: #fff;
}

body.dark-mode input, 
body.dark-mode select, 
body.dark-mode textarea {
    background: #2a2a3d;
    border-color: #3a3a4d;
    color: #e0e0e0;
}

body.dark-mode table {
    background: #2a2a3d;
}

body.dark-mode th {
    background: #1a1a2e;
    color: #e0e0e0;
}

body.dark-mode td {
    border-color: #3a3a4d;
    color: #ccc;
}

body.dark-mode tr:hover {
    background: #3a3a4d;
}

/* Dark mode for form containers */
body.dark-mode #block-date-range-form,
body.dark-mode .form-container,
body.dark-mode .card-form {
    background-color: #2a2a3d;
    border-color: #3a3a4d;
}

body.dark-mode #block-times hr {
    border-top-color: #3a3a4d;
}

/* Dark mode for modals */
body.dark-mode .modal-content {
    background-color: #2a2a3d;
    color: #e0e0e0;
    border: 1px solid #3a3a4d;
}

body.dark-mode .modal-header {
    border-bottom-color: #3a3a4d;
}

body.dark-mode .modal-header h4,
body.dark-mode .modal-header h3 {
    color: #fff;
}

body.dark-mode .modal-close,
body.dark-mode .close-modal {
    color: #aaa;
}

body.dark-mode .modal-close:hover,
body.dark-mode .close-modal:hover {
    color: #fff;
}

body.dark-mode .modal-footer {
    border-top-color: #3a3a4d;
}

body.dark-mode .modal-body {
    color: #e0e0e0;
}

body.dark-mode .modal-description {
    color: #b0b0b0;
}

/* Dark mode for form sections inside modals */
body.dark-mode .form-section {
    border-bottom-color: #3a3a4d;
}

body.dark-mode .form-section h5 {
    color: #e0e0e0;
    border-bottom-color: #5cb85c;
}

/* Dark mode for participant tabs in modals */
body.dark-mode .participant-type-tabs {
    border-bottom-color: #3a3a4d;
}

body.dark-mode .participant-type-btn {
    background: #2a2a3d;
    border-color: #3a3a4d;
    color: #e0e0e0;
}

body.dark-mode .participant-type-btn:hover {
    background: #3a3a4d;
    border-color: #5cb85c;
    color: #5cb85c;
}

body.dark-mode .participant-type-btn.active {
    background: #3a6e35;
    color: #fff;
    border-color: #3a6e35;
}

/* Dark mode for member search in modals */
body.dark-mode .member-search-results {
    border-color: #3a3a4d;
    background: #1e1e2f;
}

body.dark-mode .member-search-item {
    border-bottom-color: #3a3a4d;
}

body.dark-mode .member-search-item:hover {
    background: #3a3a4d;
}

body.dark-mode .member-search-item .member-name {
    color: #e0e0e0;
}

body.dark-mode .member-search-item .member-email {
    color: #a0a0a0;
}

body.dark-mode .no-results-message,
body.dark-mode .search-hint {
    color: #a0a0a0;
}

/* Dark mode for benefit items in tier modal */
body.dark-mode .benefit-input {
    background: #2a2a3d;
    border-color: #3a3a4d;
    color: #e0e0e0;
}

/* Dark mode for audit log modal */
body.dark-mode .audit-detail-modal {
    background: #2a2a3d;
}

/* Dark mode for labels in modals */
body.dark-mode .modal-content label {
    color: #ccc;
}

/* Dark mode for tier modal specific elements */
body.dark-mode .tier-modal {
    background: #2a2a3d;
}

body.dark-mode .tier-subscriptions-section {
    border-top-color: #3a3a4d;
}

/* Dark mode for status badges in modals */
body.dark-mode .status-badge.status-active {
    background: #1e3a1e;
    color: #5cb85c;
}

body.dark-mode .status-badge.status-expired {
    background: #3a1e1e;
    color: #d9534f;
}

body.dark-mode .status-badge.status-pending {
    background: #3a2e1e;
    color: #f0ad4e;
}

body.dark-mode .status-badge.status-cancelled {
    background: #2a2a3d;
    color: #888;
}

body.dark-mode .status-badge.status-na {
    background: #2a2a3d;
    color: #666;
}

/* Dark mode for secondary buttons in modals */
body.dark-mode .btn-secondary,
body.dark-mode .secondary-btn {
    background: #3a3a4d;
    color: #e0e0e0;
    border-color: #4a4a5d;
}

body.dark-mode .btn-secondary:hover,
body.dark-mode .secondary-btn:hover {
    background: #4a4a5d;
    color: #fff;
}

/* Dark mode for tournament/league modals */
body.dark-mode .comp-section {
    background: #2a2a3d;
    border-color: #3a3a4d;
}

body.dark-mode .comp-item {
    background: #1e1e2f;
    border-color: #3a3a4d;
}

body.dark-mode .comp-item:hover {
    background: #2a2a3d;
}

body.dark-mode .comp-item-header {
    color: #e0e0e0;
}

body.dark-mode .comp-item-meta {
    color: #a0a0a0;
}

/* Dark mode for pairing cards */
body.dark-mode .pairing-card {
    background: #2a2a3d;
    border-color: #3a3a4d;
}

body.dark-mode .pairing-header {
    background: #1e1e2f;
    border-bottom-color: #3a3a4d;
}

body.dark-mode .pairing-name {
    color: #e0e0e0;
}

body.dark-mode .pairing-player {
    background: #1e1e2f;
    color: #e0e0e0;
}

body.dark-mode .pairing-player:hover {
    background: #3a3a4d;
}

body.dark-mode .player-name {
    color: #e0e0e0;
}

body.dark-mode .player-handicap {
    color: #a0a0a0;
}

body.dark-mode .pairing-empty-slot {
    border-color: #3a3a4d;
    color: #888;
}

body.dark-mode .pairings-info {
    color: #a0a0a0;
}

body.dark-mode .empty-pairings {
    color: #a0a0a0;
}

/* Dark mode for rain check modal */
body.dark-mode #rain-check-modal .modal-content,
body.dark-mode #auto-map-modal .modal-content,
body.dark-mode #tee-set-modal .modal-content {
    background: #2a2a3d;
    color: #e0e0e0;
}

body.dark-mode #tee-set-form label {
    color: #ccc;
}

body.dark-mode #tee-set-form input,
body.dark-mode #tee-set-form select {
    background: #1e1e2f;
    border-color: #3a3a4d;
    color: #e0e0e0;
}

/* Dark mode for handicap tabs */
body.dark-mode .handicap-tabs {
    border-bottom-color: #3a3a4d;
}

body.dark-mode .handicap-tab-button {
    background: #2a2a3d;
    color: #e0e0e0;
    border-color: #3a3a4d;
}

body.dark-mode .handicap-tab-button:hover {
    background: #3a3a4d;
}

body.dark-mode .handicap-tab-button.active {
    background: #3a6e35;
    color: #fff;
}

/* Dark mode for pricing rule generator modal */
body.dark-mode #rule-generator-modal .modal-content,
body.dark-mode #copy-rules-modal .modal-content {
    background: #2a2a3d;
}

body.dark-mode #rule-generator-modal label,
body.dark-mode #copy-rules-modal label {
    color: #ccc;
}

/* Dark mode for comp tabs in tournament modals */
body.dark-mode .comp-tabs {
    border-bottom-color: #3a3a4d;
}

body.dark-mode .comp-tab-button {
    background: #2a2a3d;
    color: #e0e0e0;
}

body.dark-mode .comp-tab-button:hover:not(.active) {
    background: #3a3a4d;
}

body.dark-mode .comp-tab-button.active {
    background: #3a6e35;
    color: #fff;
}

/* Dark mode for score entry modal */
body.dark-mode .scorecard-container {
    background: #1e1e2f;
}

body.dark-mode .scorecard-info {
    border-bottom-color: #3a3a4d;
}

body.dark-mode .scorecard-info .player-name {
    color: #e0e0e0;
}

body.dark-mode .scorecard-info .player-hcp {
    color: #a0a0a0;
}

body.dark-mode .scorecard-section h4 {
    color: #e0e0e0;
}

body.dark-mode .scorecard-holes {
    background: #2a2a3d;
    border-color: #3a3a4d;
}

body.dark-mode .hole-row {
    border-bottom-color: #3a3a4d;
}

body.dark-mode .hole-row .hole-num {
    color: #e0e0e0;
}

body.dark-mode .hole-score-input {
    background: #2a2a3d;
    border-left-color: #3a3a4d;
    color: #e0e0e0;
}

body.dark-mode .hole-score-input:focus {
    background: #1e3a1e;
}

body.dark-mode .hole-total {
    background: #1e1e2f;
    color: #e0e0e0;
}

body.dark-mode .hole-total span:last-child {
    background: #3a3a4d;
}

body.dark-mode .scorecard-totals {
    border-top-color: #3a3a4d;
}

body.dark-mode .total-row {
    color: #e0e0e0;
}

body.dark-mode .total-row.total-net {
    border-top-color: #3a3a4d;
    color: #5cb85c;
}

/* Dark mode for comp tabs (manage tournament view) */
body.dark-mode .comp-tab-content {
    background: #2a2a3d;
}

/* Dark mode for team modal */
body.dark-mode #create-team-modal .modal-content,
body.dark-mode #add-sub-modal .modal-content,
body.dark-mode #request-sub-modal .modal-content,
body.dark-mode #add-participant-modal .modal-content,
body.dark-mode #add-round-modal .modal-content,
body.dark-mode #generate-pairings-modal .modal-content {
    background: #2a2a3d;
    color: #e0e0e0;
}

/* Dark mode for help text and close buttons in modals */
body.dark-mode .help-text {
    color: #a0a0a0;
}

body.dark-mode .close-btn {
    color: #aaa;
}

body.dark-mode .close-btn:hover {
    color: #fff;
}

/* Dark mode for form-group and form-actions in modals */
body.dark-mode .modal-content .form-group label {
    color: #ccc;
}

body.dark-mode .modal-content .form-actions {
    border-top-color: #3a3a4d;
}

/* Dark mode for audit log detail modal */
body.dark-mode #audit-log-detail-modal .modal-content {
    background: #2a2a3d;
}

body.dark-mode #audit-log-detail-content {
    color: #e0e0e0;
}

/* Dark mode for score entry modal */
body.dark-mode #score-entry-modal .modal-content {
    background: #2a2a3d;
    color: #e0e0e0;
}

/* Dark mode for manage tournament/league modals */
body.dark-mode #manage-tournament-modal .modal-content,
body.dark-mode #manage-league-modal .modal-content {
    background: #2a2a3d;
    color: #e0e0e0;
}

/* Dark mode for configuration tabs in modals/admin panel */
body.dark-mode .config-tabs {
    border-bottom-color: #3a3a4d;
}

body.dark-mode .config-tab-button {
    background-color: #2a2a3d;
    color: #e0e0e0;
}

body.dark-mode .config-tab-button:hover {
    background-color: #3a3a4d;
}

body.dark-mode .config-tab-button.active {
    background-color: #3a6e35;
    color: #fff;
}

body.dark-mode .config-tab-content {
    color: #e0e0e0;
}

/* Dark mode for user management tabs */
body.dark-mode .user-management-tabs {
    border-bottom-color: #3a3a4d;
}

body.dark-mode .user-tab-button {
    background-color: #2a2a3d;
    color: #e0e0e0;
}

body.dark-mode .user-tab-button:hover {
    background-color: #3a3a4d;
}

body.dark-mode .user-tab-button.active {
    background-color: #3a6e35;
    color: #fff;
}

/* Dark mode for SMS tabs */
body.dark-mode .sms-tabs {
    border-bottom-color: #3a3a4d;
}

body.dark-mode .sms-tab-button {
    color: #a0a0a0;
}

body.dark-mode .sms-tab-button:hover {
    color: #5cb85c;
    background-color: #2a2a3d;
}

body.dark-mode .sms-tab-button.active {
    color: #5cb85c;
    border-bottom-color: #5cb85c;
}

/* Dark mode for recipients preview */
body.dark-mode .recipients-preview {
    background-color: #1e1e2f;
    border-color: #3a3a4d;
}

body.dark-mode .recipients-preview h5 {
    color: #5cb85c;
}

body.dark-mode .recipients-preview p {
    color: #e0e0e0;
}

body.dark-mode .char-count {
    color: #a0a0a0;
}

/* Dark mode for pricing tabs */
body.dark-mode .pricing-tabs {
    border-bottom-color: #3a3a4d;
}

body.dark-mode .pricing-tab-button {
    background-color: #2a2a3d;
    color: #e0e0e0;
}

body.dark-mode .pricing-tab-button:hover {
    background-color: #3a3a4d;
}

body.dark-mode .pricing-tab-button.active {
    background-color: #3a6e35;
    color: #fff;
}

/* Dark mode for status messages */
body.dark-mode .status-message.success {
    background-color: #1e3a1e;
    color: #5cb85c;
    border-color: #3a5a3a;
}

body.dark-mode .status-message.error {
    background-color: #3a1e1e;
    color: #d9534f;
    border-color: #5a3a3a;
}

/* Dark mode for edit booking popup (dynamically generated) */
body.dark-mode .popup-content {
    background-color: #2a2a3d !important;
    color: #e0e0e0 !important;
    border: 1px solid #3a3a4d;
}

body.dark-mode .popup-content h3 {
    color: #fff;
}

body.dark-mode .popup-content label {
    color: #ccc;
}

body.dark-mode .popup-content input,
body.dark-mode .popup-content select,
body.dark-mode .popup-content textarea {
    background-color: #1e1e2f !important;
    border-color: #3a3a4d !important;
    color: #e0e0e0 !important;
}

body.dark-mode .popup-content input[readonly] {
    background-color: #252538 !important;
}

body.dark-mode .popup-content .form-group {
    color: #e0e0e0;
}

body.dark-mode .popup-content .checkbox-group label {
    color: #ccc;
}

body.dark-mode .popup-content small {
    color: #a0a0a0;
}

body.dark-mode .popup-content .loading-message {
    color: #a0a0a0;
}

body.dark-mode .popup-buttons button[type="button"] {
    background-color: #3a3a4d !important;
    color: #e0e0e0 !important;
}

body.dark-mode .popup-buttons button[type="button"]:hover {
    background-color: #4a4a5d !important;
}

/* Main Content Area */
.admin-content {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: 0 12px 12px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* ============================================
   DUAL-PANEL WORKSPACE
   ============================================ */

/* Panel Header Bar */
.panel-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: linear-gradient(180deg, #f5f5f5 0%, #eee 100%);
    border-bottom: 1px solid #ddd;
    min-height: 44px;
}

.panel-tabs {
    display: flex;
    gap: 4px;
    flex: 1;
    overflow-x: auto;
}

.panel-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    transition: all 0.2s;
    white-space: nowrap;
    max-width: 200px;
}

.panel-tab:hover {
    background: #f0f5f0;
    border-color: #3a6e35;
}

.panel-tab.active {
    background: #3a6e35;
    color: #fff;
    border-color: #3a6e35;
}

.panel-tab-title {
    overflow: hidden;
    text-overflow: ellipsis;
}

.panel-tab-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
    opacity: 0.7;
}

.panel-tab-close:hover {
    opacity: 1;
    background: rgba(0,0,0,0.1);
}

.panel-tab.active .panel-tab-close:hover {
    background: rgba(255,255,255,0.2);
}

.panel-add-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    background: #e8f5e9;
    border: 1px solid #3a6e35;
    border-radius: 6px;
    color: #3a6e35;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

@media (max-width: 992px) {
    .panel-add-btn {
        display: none;
    }
}

.panel-add-btn:hover {
    background: #3a6e35;
    color: #fff;
}

.panel-add-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f0f0f0;
    border-color: #ccc;
    color: #999;
}

/* Panels Container */
.panels-container {
    display: flex;
    flex: 1;
    gap: 0;
    overflow: hidden;
}

.panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    position: relative;
}

.panel.hidden {
    display: none;
}

/* Panel divider when split view is active */
.panels-container.split-view .panel {
    flex: none;
}

.panels-container.split-view .panel:first-child {
    width: 50%;
}

.panels-container.split-view #panel-2 {
    flex: 1;
    min-width: 300px;
}

/* Draggable panel divider */
.panel-divider {
    width: 8px;
    background: linear-gradient(90deg, #e0e0e0 0%, #d0d0d0 50%, #e0e0e0 100%);
    cursor: col-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    transition: background 0.2s ease;
    z-index: 15;
}

.panel-divider:hover {
    background: linear-gradient(90deg, #c0c0c0 0%, #b0b0b0 50%, #c0c0c0 100%);
}

.panel-divider.dragging {
    background: linear-gradient(90deg, #3a6e35 0%, #2d5629 50%, #3a6e35 100%);
}

.panel-divider-handle {
    width: 4px;
    height: 40px;
    background: #999;
    border-radius: 2px;
    transition: background 0.2s ease, height 0.2s ease;
}

.panel-divider:hover .panel-divider-handle {
    background: #666;
    height: 60px;
}

.panel-divider.dragging .panel-divider-handle {
    background: #fff;
    height: 80px;
}

.panel-divider.hidden {
    display: none;
}

/* Disable iframe pointer events during panel resize to prevent mouse capture */
body.panel-resizing iframe {
    pointer-events: none !important;
}

.panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Panel 2 Content Styles */
.panel-2-view {
    padding: 20px;
    text-align: center;
}

/* Panel 2 iframe (real interactive content) */
#panel-content-2 {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#panel-2-content {
    flex: 1;
    min-height: 0;
    position: relative;
}

.panel-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #fff;
}

.panel-2-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.panel-2-header h3 {
    margin: 0;
    color: #3a6e35;
    font-size: 1.4rem;
}

.panel-2-subtab {
    display: inline-block;
    margin-top: 5px;
    padding: 3px 10px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 12px;
    font-size: 0.85rem;
}

.panel-2-body {
    padding: 30px 20px;
}

.panel-2-info {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.panel-2-actions .btn-secondary {
    padding: 10px 20px;
    border: 1px solid #3a6e35;
    background: white;
    color: #3a6e35;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.panel-2-actions .btn-secondary:hover {
    background: #3a6e35;
    color: white;
}

/* Tab content within panels */
.panel-content .tab-content {
    display: none;
}

.panel-content .tab-content.active {
    display: block;
}

/* Dark Mode Panel Styles */
body.dark-mode .panel-header-bar {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border-bottom-color: #2a2a4a;
}

body.dark-mode .panel-tab {
    background: #2a2a3d;
    border-color: #3a3a4d;
    color: #ccc;
}

body.dark-mode .panel-tab:hover {
    background: #3a3a4d;
    border-color: #5cb85c;
}

body.dark-mode .panel-tab.active {
    background: #3a6e35;
    color: #fff;
    border-color: #3a6e35;
}

body.dark-mode .panel-add-btn {
    background: #2a2a3d;
    border-color: #3a6e35;
    color: #5cb85c;
}

body.dark-mode .panel-add-btn:hover {
    background: #3a6e35;
    color: #fff;
}

/* Dark mode panel divider */
body.dark-mode .panel-divider {
    background: linear-gradient(90deg, #2a2a3d 0%, #3a3a4d 50%, #2a2a3d 100%);
}

body.dark-mode .panel-divider:hover {
    background: linear-gradient(90deg, #3a3a4d 0%, #4a4a5d 50%, #3a3a4d 100%);
}

body.dark-mode .panel-divider.dragging {
    background: linear-gradient(90deg, #3a6e35 0%, #2d5629 50%, #3a6e35 100%);
}

body.dark-mode .panel-divider-handle {
    background: #666;
}

body.dark-mode .panel-divider:hover .panel-divider-handle {
    background: #888;
}

/* Embedded panel mode (used by split-view iframes) */
body.embedded-panel header,
body.embedded-panel .admin-sidebar,
body.embedded-panel #sidebar-toggle,
body.embedded-panel #sidebar-overlay,
body.embedded-panel .panel-header-bar {
    display: none !important;
}

body.embedded-panel .admin-content {
    border-radius: 0;
}

body.embedded-panel .panels-container {
    display: block;
}

body.embedded-panel #panel-2 {
    display: none !important;
}

body.embedded-panel .panel-content {
    padding: 12px;
}

/* Loading spinner overlay for panel authentication */
.panel-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-color, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.panel-loading-overlay.hidden {
    display: none;
}

.panel-loading-overlay .spinner-image {
    width: 320px;
    height: 320px;
    animation: spin 1s linear infinite;
}

/* Panel 2 inline spinner (shows inside the panel while iframe loads) */
.panel-2-spinner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-color, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.panel-2-spinner .spinner-image {
    width: 240px;
    height: 240px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Prevent guided tour / checklist overlays inside embedded split-view panels */
body.embedded-panel .tour-modal-overlay,
body.embedded-panel .setup-checklist,
body.embedded-panel .shepherd-modal-overlay-container,
body.embedded-panel .shepherd-element {
    display: none !important;
}

/* Mobile Hamburger Toggle */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 80px;
    left: 15px;
    z-index: 1001;
    background: #3a6e35;
    border: none;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 24px;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Hide hamburger button when sidebar is open (mobile has separate close button) */
.sidebar-toggle.active {
    display: none;
}

/* Sidebar Overlay (Mobile) */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Legacy tab styles - keep for backward compatibility */
.admin-tabs {
    display: none; /* Hidden - replaced by sidebar */
}

.tab-content {
    display: none;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.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;
}

/* ========================================
   Payment Type Selection Styles
   ======================================== */

.payment-type-selection {
    max-width: 900px;
    margin: 0 auto;
}

.selection-header {
    text-align: center;
    margin-bottom: 32px;
}

.selection-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.selection-header h3 {
    font-size: 1.75rem;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.selection-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    margin: 0;
}

.payment-type-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.payment-type-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.payment-type-card:hover:not(.disabled) {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.payment-type-card.disabled {
    opacity: 0.7;
    background: #f8fafc;
}

.payment-type-card .card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.payment-type-card .card-icon {
    font-size: 2rem;
}

.payment-type-card .card-header h4 {
    margin: 0;
    font-size: 1.25rem;
    color: #1e293b;
    flex-grow: 1;
}

.payment-type-card .pro-badge {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.payment-type-card .card-body {
    flex-grow: 1;
    margin-bottom: 20px;
}

.payment-type-card .card-body p {
    color: #64748b;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.payment-type-card .feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.payment-type-card .feature-list li {
    padding: 6px 0;
    color: #475569;
    font-size: 0.95rem;
}

.payment-type-card .card-footer {
    margin-top: auto;
}

.payment-type-card .btn-block {
    width: 100%;
    justify-content: center;
}

.payment-type-card .upgrade-notice {
    text-align: center;
    padding: 16px;
    background: #f1f5f9;
    border-radius: 8px;
}

.payment-type-card .upgrade-notice p {
    margin: 0 0 12px 0;
    font-size: 0.9rem;
    color: #64748b;
}

.selection-note {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.selection-note p {
    margin: 0;
    color: #92400e;
    font-size: 0.95rem;
}

/* ========================================
   Billing & Subscription Management Styles
   ======================================== */

.billing-content {
    display: grid;
    gap: 24px;
    max-width: 1000px;
}

.billing-card {
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.billing-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.billing-card-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.billing-card-body {
    padding: 20px;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.status-active {
    background: #dcfce7;
    color: #166534;
}

.status-badge.status-trial {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.status-warning {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.status-inactive {
    background: #f1f5f9;
    color: #475569;
}

.status-badge.status-danger {
    background: #fee2e2;
    color: #991b1b;
}

/* Subscription Details */
.subscription-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.subscription-tier,
.subscription-price,
.subscription-period,
.subscription-renewal {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tier-label,
.price-label,
.period-label,
.renewal-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.tier-value,
.price-value,
.period-value,
.renewal-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
}

.tier-value {
    font-size: 1.25rem;
    color: #2563eb;
}

/* Cancel/Grace Notices */
.cancel-notice,
.grace-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
    margin-top: 16px;
}

.cancel-notice {
    background: #fef3c7;
    border: 1px solid #fcd34d;
}

.grace-notice {
    background: #fee2e2;
    border: 1px solid #fca5a5;
}

.notice-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notice-text strong {
    display: block;
    margin-bottom: 4px;
    color: #1e293b;
}

.notice-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #475569;
}

/* Payment Method Display */
.payment-method-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.card-icon {
    font-size: 2.5rem;
}

.card-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.card-brand {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
}

.card-number {
    font-family: 'SF Mono', Menlo, Monaco, monospace;
    color: #475569;
    font-size: 0.9rem;
}

.card-expiry {
    color: #64748b;
    font-size: 0.85rem;
}

.no-payment-method {
    padding: 20px;
    text-align: center;
    color: #64748b;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 16px;
}

/* Tier Options */
.tier-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

/* Highlight animation for scrolling to section */
.highlight-section {
    animation: highlightPulse 2s ease-out;
}

@keyframes highlightPulse {
    0% { box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.2); }
    100% { box-shadow: none; }
}

.tier-option-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
}

.tier-option-card:hover {
    border-color: #94a3b8;
}

.tier-option-card.current {
    border-color: #2563eb;
    background: #f8fafc;
}

.tier-option-card.upgrade:not(.current):hover {
    border-color: #16a34a;
}

.tier-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.tier-option-header h6 {
    margin: 0;
    font-size: 1.1rem;
    color: #1e293b;
}

.current-badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    background: #2563eb;
    color: white;
    border-radius: 999px;
    font-weight: 600;
}

.tier-option-price {
    margin-bottom: 4px;
}

.price-amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
}

.price-period {
    font-size: 0.9rem;
    color: #64748b;
}

.tier-option-annual {
    font-size: 0.85rem;
    color: #16a34a;
    margin-bottom: 16px;
}

.tier-option-features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.tier-option-features li {
    padding: 6px 0;
    color: #475569;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tier-option-features li::before {
    content: '✓';
    color: #16a34a;
    font-weight: bold;
}

.btn-tier-change {
    width: 100%;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-tier-change.btn-primary {
    background: #16a34a;
    color: white;
    border: none;
}

.btn-tier-change.btn-primary:hover {
    background: #15803d;
}

.btn-tier-change.btn-secondary {
    background: white;
    color: #475569;
    border: 1px solid #d1d5db;
}

.btn-tier-change.btn-secondary:hover {
    background: #f8fafc;
}

/* Invoices Tabs */
.invoices-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
}

.invoices-tab-btn {
    padding: 8px 16px;
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.invoices-tab-btn:hover {
    background: #f1f5f9;
}

.invoices-tab-btn.active {
    background: #2563eb;
    color: white;
}

.invoices-tab-content {
    display: none;
}

.invoices-tab-content.active {
    display: block;
}

/* Invoices Table */
.invoices-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.invoices-table th,
.invoices-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.invoices-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.invoices-table tbody tr:hover {
    background: #f8fafc;
}

.invoice-status {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.invoice-status.paid {
    background: #dcfce7;
    color: #166534;
}

.invoice-status.open {
    background: #fef3c7;
    color: #92400e;
}

.invoice-status.void,
.invoice-status.draft {
    background: #f1f5f9;
    color: #475569;
}

.btn-link {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    margin-right: 12px;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Transactions Table */
#transactions-list .transactions-table {
    width: 100%;
}

.tx-type {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tx-type.charge {
    background: #dcfce7;
    color: #166534;
}

.tx-type.credit {
    background: #dbeafe;
    color: #1e40af;
}

.tx-type.refund {
    background: #fef3c7;
    color: #92400e;
}

.tx-type.tier_change {
    background: #f3e8ff;
    color: #7c3aed;
}

.positive {
    color: #16a34a;
}

.negative {
    color: #dc2626;
}

/* Danger Card */
.danger-card {
    border-color: #fca5a5;
}

.danger-card .billing-card-header {
    background: #fef2f2;
}

.btn-danger {
    background: #dc2626;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* ========================================
   Feature Add-ons Card
   ======================================== */
.addons-card {
    border-color: #c4b5fd;
}

.addons-card .billing-card-header {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
}

.addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.addon-card {
    background: #fafafa;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.2s ease;
}

.addon-card:hover {
    border-color: #a78bfa;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
}

.addon-card.addon-active {
    border-color: #10b981;
    background: #f0fdf4;
}

.addon-card.addon-coming-soon {
    opacity: 0.6;
    pointer-events: none;
}

.addon-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.addon-icon {
    font-size: 2rem;
    line-height: 1;
}

.addon-info {
    flex: 1;
}

.addon-info h6 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

.addon-status {
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 9999px;
    background: #f3f4f6;
    color: #6b7280;
}

.addon-status.active {
    background: #dcfce7;
    color: #166534;
}

.addon-status.coming-soon {
    background: #fef3c7;
    color: #92400e;
}

.addon-description {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 1rem;
}

.addon-description p {
    margin: 0 0 0.5rem 0;
}

.addon-description ul {
    margin: 0;
    padding-left: 1.25rem;
}

.addon-description li {
    margin: 0.25rem 0;
    line-height: 1.4;
}

.addon-pricing {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.addon-tier-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.addon-tier-option:hover {
    background: #f9fafb;
}

.addon-tier-option input[type="radio"] {
    margin-top: 3px;
}

.addon-tier-option label {
    flex: 1;
    cursor: pointer;
}

.addon-tier-option label strong {
    color: #1f2937;
}

.addon-tier-option .tier-limits {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 2px;
}

.addon-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.btn-addon {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-addon.btn-primary {
    background: #7c3aed;
    color: white;
    border: none;
}

.btn-addon.btn-primary:hover {
    background: #6d28d9;
}

.btn-addon.btn-secondary {
    background: white;
    color: #7c3aed;
    border: 2px solid #7c3aed;
}

.btn-addon.btn-secondary:hover {
    background: #f5f3ff;
}

.btn-addon-remove {
    background: none;
    border: none;
    color: #dc2626;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 5px;
    margin-left: auto;
}

.btn-addon-remove:hover {
    text-decoration: underline;
}

.addon-enterprise-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.addon-enterprise-notice .notice-icon {
    font-size: 1.25rem;
}

.addon-enterprise-notice p {
    margin: 0;
    font-size: 0.9rem;
    color: #065f46;
}

/* No Data Message */
.no-data-message {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
    background: #f8fafc;
    border-radius: 8px;
}

/* Dark Mode for Billing */
body.dark-mode .billing-card {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .billing-card-header {
    background: #0f172a;
    border-color: #334155;
}

body.dark-mode .billing-card-header h5 {
    color: #f1f5f9;
}

body.dark-mode .tier-value,
body.dark-mode .price-value,
body.dark-mode .period-value,
body.dark-mode .renewal-value,
body.dark-mode .card-brand {
    color: #f1f5f9;
}

body.dark-mode .tier-option-card {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .tier-option-card:hover {
    border-color: #475569;
}

body.dark-mode .tier-option-card.current {
    background: #0f172a;
}

body.dark-mode .tier-option-header h6,
body.dark-mode .price-amount {
    color: #f1f5f9;
}

body.dark-mode .invoices-table th {
    background: #0f172a;
    color: #94a3b8;
}

body.dark-mode .invoices-table td,
body.dark-mode .invoices-table tbody tr:hover {
    background: transparent;
}

body.dark-mode .invoices-table tbody tr:hover {
    background: #334155;
}

body.dark-mode .no-data-message,
body.dark-mode .no-payment-method {
    background: #0f172a;
    color: #94a3b8;
}

/* Dark Mode for Feature Add-ons */
body.dark-mode .addons-card {
    border-color: #6d28d9;
}

body.dark-mode .addons-card .billing-card-header {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
}

body.dark-mode .addon-card {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .addon-card:hover {
    border-color: #7c3aed;
}

body.dark-mode .addon-card.addon-active {
    border-color: #10b981;
    background: #052e16;
}

body.dark-mode .addon-info h6 {
    color: #f1f5f9;
}

body.dark-mode .addon-status {
    background: #334155;
    color: #94a3b8;
}

body.dark-mode .addon-status.active {
    background: #064e3b;
    color: #6ee7b7;
}

body.dark-mode .addon-description {
    color: #94a3b8;
}

body.dark-mode .addon-pricing {
    background: #0f172a;
    border-color: #334155;
}

body.dark-mode .addon-tier-option:hover {
    background: #1e293b;
}

body.dark-mode .addon-tier-option label strong {
    color: #f1f5f9;
}

body.dark-mode .addon-tier-option .tier-limits {
    color: #94a3b8;
}

body.dark-mode .addon-enterprise-notice {
    background: #052e16;
    border-color: #064e3b;
}

body.dark-mode .addon-enterprise-notice p {
    color: #6ee7b7;
}

/* 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;
}

/* ============================================
   Survey Feature Styles
   ============================================ */

/* Survey Sub-tabs */
.survey-subtabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.survey-subtab {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: color 0.2s, border-color 0.2s;
}

.survey-subtab:hover {
    color: #333;
}

.survey-subtab.active {
    color: #2e7d32;
    border-bottom-color: #2e7d32;
    font-weight: 600;
}

/* Survey Question Card */
.survey-question-card {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    position: relative;
}

.survey-question-card .question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.survey-question-card .question-number {
    font-weight: 600;
    color: #2e7d32;
    font-size: 14px;
}

.survey-question-card .question-actions {
    display: flex;
    gap: 4px;
}

.survey-question-card .question-actions button {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px;
    color: #666;
}

.survey-question-card .question-actions button:hover {
    background: #eee;
}

.survey-question-card .question-actions button.remove-btn:hover {
    background: #ffebee;
    color: #c62828;
    border-color: #ef9a9a;
}

/* Survey Builder */
.survey-builder-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.survey-builder-section h4 {
    margin-top: 0;
    margin-bottom: 16px;
    color: #333;
}

.survey-builder-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.survey-builder-row select,
.survey-builder-row input[type="text"],
.survey-builder-row textarea {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.survey-builder-row select {
    min-width: 160px;
}

.survey-builder-row input[type="text"],
.survey-builder-row textarea {
    flex: 1;
}

/* Multiple Choice Builder */
.mc-choices-builder {
    margin-top: 8px;
    padding-left: 20px;
}

.mc-choices-builder .mc-choice-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
}

.mc-choices-builder .mc-choice-row input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.mc-choices-builder .mc-choice-row button {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px;
}

/* Survey Assignment Table */
.survey-assign-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.survey-assign-table th,
.survey-assign-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.survey-assign-table th {
    background: #f5f5f5;
    font-weight: 600;
    font-size: 13px;
    color: #555;
}

/* Survey Filter Bar */
.survey-filter-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
}

.survey-filter-bar label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.survey-filter-bar select,
.survey-filter-bar input {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

/* Survey Summary Cards */
.survey-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.summary-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.summary-card .card-value {
    font-size: 28px;
    font-weight: 700;
    color: #2e7d32;
}

.summary-card .card-label {
    font-size: 12px;
    color: #777;
    margin-top: 4px;
}

/* Survey Chart Card */
.survey-chart-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}

.survey-chart-card h4 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 15px;
    color: #333;
}

/* Chart Bar Styles */
.chart-bar-container {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 8px;
}

.chart-bar-label {
    min-width: 120px;
    font-size: 13px;
    color: #555;
    text-align: right;
}

.chart-bar-track {
    flex: 1;
    height: 24px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.chart-bar-fill {
    height: 100%;
    background: #4caf50;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.chart-bar-value {
    min-width: 40px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

/* Distribution bars */
.dist-row {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    gap: 8px;
}

.dist-label {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
}

.dist-bar-track {
    flex: 1;
    height: 20px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.dist-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.dist-count {
    min-width: 30px;
    font-size: 12px;
    color: #777;
}

/* NPS Styles */
.nps-score-display {
    font-size: 48px;
    font-weight: 800;
    text-align: center;
    margin: 12px 0;
}

.nps-breakdown {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 13px;
    color: #666;
}

.nps-breakdown span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Trend chart */
.trend-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 120px;
    padding-top: 10px;
}

.trend-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

.trend-bar-fill {
    width: 100%;
    max-width: 40px;
    background: #66bb6a;
    border-radius: 3px 3px 0 0;
    transition: height 0.3s ease;
}

.trend-bar-label {
    font-size: 10px;
    color: #999;
    margin-top: 4px;
    white-space: nowrap;
}

/* Survey Detail Modal */
.survey-detail-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.survey-detail-modal {
    background: #fff;
    border-radius: 12px;
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.survey-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid #eee;
}

.survey-detail-header h4 {
    margin: 0;
    font-size: 18px;
    color: #1a1a1a;
}

.survey-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 24px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    color: #555;
}

.survey-detail-answers {
    padding: 8px 24px 24px;
}

.survey-detail-answer {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.survey-detail-answer:last-child {
    border-bottom: none;
}

.detail-q {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.detail-a {
    font-size: 14px;
    color: #555;
}

.survey-detail-modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.survey-detail-modal-content h3 {
    margin-top: 0;
}

.survey-detail-answer {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.survey-detail-answer:last-child {
    border-bottom: none;
}

.survey-detail-answer .question-text {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.survey-detail-answer .answer-text {
    font-size: 14px;
    color: #555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .survey-subtabs {
        flex-wrap: wrap;
    }

    .survey-builder-row {
        flex-direction: column;
    }

    .survey-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .survey-summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .chart-bar-label {
        min-width: 80px;
        font-size: 11px;
    }

    .nps-breakdown {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
}

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;
}

/* Pricing Rules Toolbar */
.rules-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 15px;
    background-color: #f5f5f5;
    border-radius: 6px;
    flex-wrap: wrap;
    gap: 10px;
}

.rules-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rules-filter label {
    font-weight: 500;
    color: #555;
}

.rules-filter select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 180px;
}

.rules-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.secondary-btn {
    background-color: #fff;
    color: #4a90e2;
    border: 1px solid #4a90e2;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s;
}

.secondary-btn:hover {
    background-color: #4a90e2;
    color: #fff;
}

/* Pricing Matrix */
.pricing-matrix-section {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.pricing-matrix-section h5 {
    margin: 0;
    padding: 12px 15px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-btn {
    background: none;
    border: none;
    color: #4a90e2;
    cursor: pointer;
    font-size: 12px;
    padding: 2px 8px;
}

.pricing-matrix {
    overflow-x: auto;
    padding: 15px;
}

.pricing-matrix table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.pricing-matrix th,
.pricing-matrix td {
    padding: 8px 12px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.pricing-matrix th {
    background-color: #f9f9f9;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-matrix th:first-child {
    text-align: left;
}

.pricing-matrix td:first-child {
    text-align: left;
    font-weight: 500;
    background-color: #fafafa;
}

.pricing-matrix .tier-row-public {
    background-color: #fff9e6;
}

.pricing-matrix .guest-pass-indicator {
    font-size: 10px;
    color: #4a90e2;
    display: block;
}

.pricing-matrix .price-cell {
    font-family: monospace;
}

/* Form Section Divider */
.form-section-divider {
    display: flex;
    align-items: center;
    margin: 20px 0 15px;
    color: #666;
}

.form-section-divider span {
    padding: 0 15px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.form-section-divider::before,
.form-section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
}

/* Form Width Variants */
.two-thirds-width {
    flex: 2;
}

.third-width {
    flex: 1;
}

.quarter-width {
    flex: 1;
    min-width: 120px;
}

/* Rule Preview in Generator */
.rule-preview {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.rule-preview .preview-placeholder {
    color: #999;
    font-style: italic;
    margin: 0;
}

.rule-preview-item {
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 8px;
    font-size: 13px;
}

.rule-preview-item:last-child {
    margin-bottom: 0;
}

.rule-preview-item .rule-name {
    font-weight: 600;
    color: #333;
}

.rule-preview-item .rule-prices {
    color: #666;
    font-size: 12px;
    margin-top: 4px;
}

/* Generator Sub-options */
.gen-sub-options {
    margin-top: 10px;
    margin-left: 25px;
    padding: 10px 15px;
    background-color: #f5f5f5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gen-sub-options input[type="number"],
.gen-sub-options input[type="time"] {
    width: 80px;
    padding: 5px 8px;
}

/* Wide Modal */
.wide-modal {
    max-width: 700px;
}

.modal-description {
    color: #666;
    margin-bottom: 20px;
}

/* Pricing Rule Item with Tier Badge */
.pricing-rule-item .tier-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 10px;
}

.tier-badge.public {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.tier-badge.member {
    background-color: #e3f2fd;
    color: #1565c0;
}

.rule-details .rule-tier {
    color: #888;
    font-size: 12px;
}

.rule-details .cart-fees {
    color: #666;
}

.section-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

/* 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);
}

/* Blocked time slot styling */
.tee-sheet-row.blocked-timeslot {
    background-color: rgba(220, 53, 69, 0.06);
    position: relative;
}

.tee-sheet-row.blocked-timeslot:hover {
    background-color: rgba(220, 53, 69, 0.10);
}

.blocked-time-cell {
    background-color: rgba(220, 53, 69, 0.12) !important;
    color: #991b1b;
    font-weight: 600;
}

.blocked-cell {
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 8px,
        rgba(220, 53, 69, 0.06) 8px,
        rgba(220, 53, 69, 0.06) 16px
    );
    cursor: default;
}

.blocked-slot-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background-color: rgba(220, 53, 69, 0.10);
    border: 1px solid rgba(220, 53, 69, 0.25);
    border-radius: 6px;
    color: #991b1b;
    font-size: 0.85rem;
    font-weight: 500;
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.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, background-color 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

/* Animation for new booking cards */
.booking-card.booking-card-new {
    animation: bookingCardNew 1.5s ease-out;
}

@keyframes bookingCardNew {
    0% {
        background-color: #d4edda;
        transform: scale(1.05);
        box-shadow: 0 0 15px rgba(58, 110, 53, 0.5);
    }
    50% {
        background-color: #d4edda;
    }
    100% {
        background-color: white;
        transform: scale(1);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
}

/* Animation for updated booking cards */
.booking-card.booking-card-updated {
    animation: bookingCardUpdated 1s ease-out;
}

@keyframes bookingCardUpdated {
    0% {
        background-color: #fff3cd;
        box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
    }
    100% {
        background-color: white;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
}

.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;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.tee-sheet-loading .tee-sheet-spinner {
    width: 1000px;
    height: 1000px;
    animation: spin 1s linear infinite;
}

.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;
}

/* Centered modal variant */
.modal-content.centered-modal {
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Wide modal for manage views */
.modal-content.wide-modal {
    max-width: 900px;
    margin: 50px auto;
}

/* Participant Type Tabs */
.participant-type-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.participant-type-btn {
    padding: 10px 20px;
    border: 2px solid #ccc;
    background: #fff;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: all 0.2s;
}

.participant-type-btn:hover {
    background: #f5f5f5;
    border-color: #3a6e35;
    color: #3a6e35;
}

.participant-type-btn.active {
    background: #3a6e35;
    color: white;
    border-color: #3a6e35;
}

/* Participant Section */
.participant-section {
    display: none;
}

.participant-section.active {
    display: block;
}

/* Member Search Results */
.member-search-results {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-top: 10px;
}

.member-search-results:empty {
    border: none;
}

.member-search-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.member-search-item:hover {
    background: #f5f5f5;
}

.member-search-item:last-child {
    border-bottom: none;
}

.member-search-item .member-info {
    flex: 1;
}

.member-search-item .member-name {
    font-weight: 600;
    color: #333;
}

.member-search-item .member-email {
    font-size: 13px;
    color: #666;
}

.member-search-item .add-member-btn {
    background: #3a6e35;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.member-search-item .add-member-btn:hover {
    background: #2d5629;
}

.no-results-message {
    padding: 20px;
    text-align: center;
    color: #666;
}

.search-hint {
    padding: 15px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

.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;
}

/* Danger button */
.btn-danger {
    background: #dc3545;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-small.btn-danger {
    padding: 6px 12px !important;
    font-size: 13px !important;
}

/* Status bar for manage modal */
.status-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 20px;
}

.status-label {
    font-weight: 600;
    color: #495057;
}

.status-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

.status-actions button {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-activate {
    background: #28a745;
    color: white;
}

.btn-activate:hover {
    background: #218838;
}

.btn-complete {
    background: #17a2b8;
    color: white;
}

.btn-complete:hover {
    background: #138496;
}

.btn-schedule {
    background: #6c757d;
    color: white;
}

.btn-schedule:hover {
    background: #5a6268;
}

/* Manage tabs styling */
.manage-tab-content {
    display: none;
}

.manage-tab-content.active {
    display: block;
}

/* Rounds list styling */
#rounds-list table {
    width: 100%;
}

.round-status-scheduled {
    background: #fff3cd;
    color: #856404;
}

.round-status-active {
    background: #d4edda;
    color: #155724;
}

.round-status-completed {
    background: #d1ecf1;
    color: #0c5460;
}

/* Form actions with danger button */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.form-actions .btn-danger {
    margin-right: auto;
}

/* 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;
}

/* Small button variant for tables */
.btn-small {
    padding: 6px 12px !important;
    font-size: 13px !important;
    font-weight: 500;
}

.btn-small.btn-primary {
    background: #3a6e35;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-small.btn-primary:hover {
    background: #2d5629;
}

/* 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;
}

/* Deposits Table Styles */
.deposits-table-section {
    margin-top: 25px;
}

.deposits-table-section h5 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1rem;
}

.deposits-breakdown-table .deposit-paid {
    color: #2e7d32;
    font-weight: 600;
}

.deposits-breakdown-table .balance-due {
    color: #e65100;
    font-weight: 600;
}

.deposits-breakdown-table .balance-paid {
    color: #666;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.paid {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.pending {
    background: #fff3e0;
    color: #e65100;
}

/* 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;
}

.enterprise-badge-inline {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 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;
}

/* Occupancy Time Grid - Par-specific times */
.occupancy-time-grid {
    display: grid;
    gap: 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 10px;
    background: #fff;
}

.time-grid-header {
    display: grid;
    grid-template-columns: 120px repeat(3, 1fr);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.time-grid-row {
    display: grid;
    grid-template-columns: 120px repeat(3, 1fr);
    border-top: 1px solid #eee;
}

.time-grid-row:first-of-type {
    border-top: none;
}

.time-grid-cell {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.time-grid-cell.header-cell {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.time-grid-cell.row-label {
    background: #f8f9fa;
    font-weight: 500;
    color: #444;
    justify-content: flex-start;
    border-right: 1px solid #eee;
}

.time-grid-cell input[type="number"] {
    width: 70px;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.time-grid-cell input[type="number"]:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    outline: none;
}

.time-grid-cell input[type="number"]::-webkit-inner-spin-button,
.time-grid-cell input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
}

/* Responsive time grid */
@media (max-width: 600px) {
    .occupancy-time-grid {
        font-size: 13px;
    }
    
    .time-grid-header,
    .time-grid-row {
        grid-template-columns: 90px repeat(3, 1fr);
    }
    
    .time-grid-cell {
        padding: 8px 5px;
    }
    
    .time-grid-cell input[type="number"] {
        width: 55px;
        padding: 6px 4px;
        font-size: 13px;
    }
    
    .time-grid-cell.header-cell {
        font-size: 11px;
    }
}

/* 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 */
/* 5-level congestion: low (green), low-medium (yellow-green), medium (yellow), medium-high (orange), high (red) */
.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-low-medium {
    background: linear-gradient(90deg, rgba(139, 195, 74, 0.18) 0%, rgba(139, 195, 74, 0.09) 100%);
    border-left: 4px solid #8bc34a;
}

.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-medium-high {
    background: linear-gradient(90deg, rgba(255, 152, 0, 0.22) 0%, rgba(255, 152, 0, 0.11) 100%);
    border-left: 4px solid #ff9800;
}

.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-low-medium:hover {
    background: linear-gradient(90deg, rgba(139, 195, 74, 0.28) 0%, rgba(139, 195, 74, 0.14) 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-medium-high:hover {
    background: linear-gradient(90deg, rgba(255, 152, 0, 0.32) 0%, rgba(255, 152, 0, 0.16) 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%);
}

/* Back 9 Congestion Overlay - Right edge indicator for Pro/Enterprise */
/* Shows congestion level for back 9 portion of the course */
.course-cell.back-9.back9-congestion-low {
    background: linear-gradient(90deg, rgba(255, 254, 248, 0.5) 0%, rgba(76, 175, 80, 0.15) 70%, rgba(76, 175, 80, 0.25) 100%);
    border-right: 4px solid #4caf50;
}

.course-cell.back-9.back9-congestion-low-medium {
    background: linear-gradient(90deg, rgba(255, 254, 248, 0.5) 0%, rgba(139, 195, 74, 0.18) 70%, rgba(139, 195, 74, 0.28) 100%);
    border-right: 4px solid #8bc34a;
}

.course-cell.back-9.back9-congestion-medium {
    background: linear-gradient(90deg, rgba(255, 254, 248, 0.5) 0%, rgba(255, 193, 7, 0.2) 70%, rgba(255, 193, 7, 0.3) 100%);
    border-right: 4px solid #ffc107;
}

.course-cell.back-9.back9-congestion-medium-high {
    background: linear-gradient(90deg, rgba(255, 254, 248, 0.5) 0%, rgba(255, 152, 0, 0.22) 70%, rgba(255, 152, 0, 0.32) 100%);
    border-right: 4px solid #ff9800;
}

.course-cell.back-9.back9-congestion-high {
    background: linear-gradient(90deg, rgba(255, 254, 248, 0.5) 0%, rgba(244, 67, 54, 0.2) 70%, rgba(244, 67, 54, 0.3) 100%);
    border-right: 4px solid #f44336;
}

/* Back 9 congestion hover effect - shows congestion level on hover */
.course-cell.back-9.back9-congestion-low:hover {
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.08) 0%, rgba(76, 175, 80, 0.2) 70%, rgba(76, 175, 80, 0.35) 100%);
}

.course-cell.back-9.back9-congestion-low-medium:hover {
    background: linear-gradient(90deg, rgba(139, 195, 74, 0.1) 0%, rgba(139, 195, 74, 0.24) 70%, rgba(139, 195, 74, 0.38) 100%);
}

.course-cell.back-9.back9-congestion-medium:hover {
    background: linear-gradient(90deg, rgba(255, 193, 7, 0.12) 0%, rgba(255, 193, 7, 0.28) 70%, rgba(255, 193, 7, 0.42) 100%);
}

.course-cell.back-9.back9-congestion-medium-high:hover {
    background: linear-gradient(90deg, rgba(255, 152, 0, 0.14) 0%, rgba(255, 152, 0, 0.3) 70%, rgba(255, 152, 0, 0.45) 100%);
}

.course-cell.back-9.back9-congestion-high:hover {
    background: linear-gradient(90deg, rgba(244, 67, 54, 0.12) 0%, rgba(244, 67, 54, 0.28) 70%, rgba(244, 67, 54, 0.42) 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;
}

/* Real data vs simulated markers */
.group-marker.real-data {
    border: 2px solid #00e676;
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.5);
    animation: realDataPulse 2s infinite;
}

.group-marker.simulated {
    opacity: 0.8;
}

@keyframes realDataPulse {
    0%, 100% {
        box-shadow: 0 0 4px rgba(0, 230, 118, 0.4);
    }
    50% {
        box-shadow: 0 0 12px rgba(0, 230, 118, 0.7);
    }
}

.legend-dot.real-data {
    background: #4caf50;
    border: 2px solid #00e676;
}

.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 Upload Progress */
.logo-upload-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 13px;
    margin-top: 8px;
}

.spinner-sm {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-top-color: #3a6e35;
    border-radius: 50%;
    animation: spin-sm 0.6s linear infinite;
}

@keyframes spin-sm {
    to { transform: rotate(360deg); }
}

/* Logo Display Settings */
.logo-display-settings {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.logo-display-settings h6 {
    margin: 0 0 12px 0;
    font-size: 13px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logo-display-settings .form-group {
    margin-bottom: 12px;
}

.logo-display-settings .form-group:last-child {
    margin-bottom: 0;
}

.logo-display-settings label {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    display: block;
    margin-bottom: 6px;
}

.logo-display-settings input[type="range"] {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #ddd;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.logo-display-settings input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #3a6e35;
    border-radius: 50%;
    cursor: pointer;
}

.logo-display-settings input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #3a6e35;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.logo-display-settings small {
    color: #888;
    font-size: 11px;
}

.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;
    }
}

/* =================================================
   PRICING RULES NOTICE (Membership Tier Form)
   ================================================= */

.pricing-rules-notice {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid #90caf9;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 10px 0;
}

.pricing-rules-notice p {
    margin: 8px 0;
    color: #1565c0;
    font-size: 14px;
    line-height: 1.5;
}

.pricing-rules-notice p:first-child {
    margin-top: 0;
}

.pricing-rules-notice p:last-child {
    margin-bottom: 0;
}

.pricing-rules-notice strong {
    color: #0d47a1;
}

.pricing-rules-notice a {
    color: #1565c0;
    text-decoration: underline;
    font-weight: 600;
}

.pricing-rules-notice a:hover {
    color: #0d47a1;
}

/* Tier Card Pricing Note */
.tier-pricing-note {
    background: #f5f5f5;
    border-radius: 4px;
    padding: 8px 12px;
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

.tier-pricing-note span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* =================================================
   EMBED WIDGET CONFIGURATION
   ================================================= */

/* Pro/Enterprise Feature Notice */
.pro-feature-notice {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #667eea;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin: 20px 0;
}

.pro-feature-notice.hidden {
    display: none;
}

.pro-feature-notice .pro-feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.pro-feature-notice h4 {
    color: #667eea;
    margin: 0 0 10px 0;
    font-size: 18px;
}

.pro-feature-notice p {
    color: #666;
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.pro-feature-notice .upgrade-btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pro-feature-notice .upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Embed Code Preview */
.embed-code-preview {
    background: #1e1e2e;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    position: relative;
}

.embed-code-label {
    color: #888;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.code-snippet {
    background: transparent;
    color: #a6e3a1;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
    padding: 0;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
    overflow-x: auto;
}

.code-snippet span {
    color: #f9e2af;
}

.embed-code-preview .secondary-button {
    margin-top: 15px;
}

/* Embed Options Grid */
.embed-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin: 15px 0;
}

.embed-option {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.embed-option code {
    background: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 12px;
    display: inline-block;
}

.embed-option span {
    color: #666;
    font-size: 13px;
}

.embed-example {
    background: #1e1e2e;
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
}

.embed-example .code-snippet {
    font-size: 12px;
}
/* Embed Widget Preview */
#embed-preview-section h5 {
    margin-bottom: 8px;
}

.embed-preview-controls {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 16px 0;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 10px;
}

.preview-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.preview-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.preview-color-picker {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
}

.preview-color-picker input[type="color"] {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
}

.embed-preview-wrapper {
    margin-top: 16px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.embed-preview-background {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    padding: 40px;
    min-height: 400px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    transition: background 0.3s ease;
}

.embed-preview-background.dark-preview {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* Liquid Glass Widget Preview Styles */
.bookatee-preview-widget {
    width: 100%;
    max-width: 420px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --preview-accent: #3a6e35;
    --preview-accent-light: #5a9e54;
    --preview-text: #1a1a2e;
    --preview-text-secondary: #4a4a6a;
    --preview-glass-bg: rgba(255, 255, 255, 0.75);
    --preview-glass-border: rgba(255, 255, 255, 0.4);
}

.bookatee-preview-widget.dark-theme {
    --preview-text: #f0f0f5;
    --preview-text-secondary: #b0b0c0;
    --preview-glass-bg: rgba(30, 30, 50, 0.75);
    --preview-glass-border: rgba(255, 255, 255, 0.15);
}

.preview-widget-container {
    background: var(--preview-glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--preview-glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 24px;
    color: var(--preview-text);
    overflow: hidden;
    position: relative;
}

.preview-widget-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--preview-glass-border);
}

.preview-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--preview-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-title svg {
    width: 22px;
    height: 22px;
    fill: var(--preview-accent);
}

.preview-powered {
    font-size: 0.65rem;
    color: var(--preview-text-secondary);
    opacity: 0.7;
}

/* Preview Calendar - Embed Widget (use specific selectors to avoid conflicts) */
.bookatee-preview-widget .preview-calendar {
    display: block !important;
    grid-template-columns: none !important;
}

.bookatee-preview-widget .preview-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.bookatee-preview-widget .preview-month {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--preview-text);
}

.bookatee-preview-widget .preview-nav-buttons {
    display: flex;
    gap: 8px;
}

.bookatee-preview-widget .preview-nav-btn {
    background: var(--preview-glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--preview-glass-border);
    border-radius: 8px;
    padding: 6px 10px;
    cursor: default;
    color: var(--preview-text);
    font-size: 0.8rem;
}

.bookatee-preview-widget .preview-weekdays {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 4px;
    margin-bottom: 8px;
}

.bookatee-preview-widget .preview-weekday {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--preview-text-secondary);
    padding: 6px 0;
}

.bookatee-preview-widget .preview-days {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 4px;
}

.bookatee-preview-widget .preview-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--preview-text);
    background: transparent;
    border: none;
    padding: 0;
    cursor: default;
    transition: all 0.2s;
}

.bookatee-preview-widget .preview-day.empty {
    visibility: hidden;
}

.bookatee-preview-widget .preview-day.today {
    border: 2px solid var(--preview-accent);
    font-weight: 600;
}

.bookatee-preview-widget .preview-day.selected {
    background: var(--preview-accent);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(58, 110, 53, 0.3);
}

/* Preview Time Slots - Embed Widget */
.bookatee-preview-widget .preview-times {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--preview-glass-border);
}

.bookatee-preview-widget .preview-times-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--preview-text);
    margin-bottom: 12px;
}

.bookatee-preview-widget .preview-time-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.bookatee-preview-widget .preview-time-slot {
    background: var(--preview-glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--preview-glass-border);
    border-radius: 10px;
    padding: 10px 8px;
    text-align: center;
    cursor: default;
    transition: all 0.2s;
}

.bookatee-preview-widget .preview-time-slot .time {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--preview-text);
}

.bookatee-preview-widget .preview-time-slot .price {
    font-size: 0.75rem;
    color: var(--preview-text-secondary);
    margin-top: 2px;
}

.bookatee-preview-widget .preview-time-slot.selected {
    background: var(--preview-accent);
    border-color: var(--preview-accent);
}

.bookatee-preview-widget .preview-time-slot.selected .time,
.bookatee-preview-widget .preview-time-slot.selected .price {
    color: white;
}

/* Preview Book Button - Embed Widget */
.bookatee-preview-widget .preview-book-btn {
    width: 100%;
    margin-top: 20px;
    padding: 14px;
    background: linear-gradient(135deg, var(--preview-accent), var(--preview-accent-light));
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: default;
    box-shadow: 0 4px 16px rgba(58, 110, 53, 0.3);
    text-align: center;
}

/* Preview Options - Embed Widget */
.bookatee-preview-widget .preview-options {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bookatee-preview-widget .preview-options-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.bookatee-preview-widget .preview-option-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bookatee-preview-widget .preview-option-label {
    font-size: 0.75rem;
    color: var(--preview-text-secondary);
    font-weight: 500;
}

.bookatee-preview-widget .preview-select {
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--preview-border);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--preview-text);
    cursor: default;
}

.bookatee-preview-widget .preview-cart-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.bookatee-preview-widget .preview-cart-option {
    padding: 10px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--preview-border);
    border-radius: 8px;
    font-size: 0.8rem;
    text-align: center;
    color: var(--preview-text);
    cursor: default;
}

.bookatee-preview-widget .preview-cart-option.selected {
    background: var(--preview-accent);
    border-color: var(--preview-accent);
    color: white;
}

/* Preview Member Link - Embed Widget */
.bookatee-preview-widget .preview-member-link {
    margin-top: 12px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--preview-text-secondary);
}

.bookatee-preview-widget .preview-member-link a {
    color: var(--preview-accent);
    text-decoration: none;
}

/* Competitions Tab Sub-tabs */
.comp-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.comp-tab-button {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
    border-bottom: none;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    margin-right: 4px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.comp-tab-button:hover:not(.active) {
    background-color: #e0e0e0;
}

.comp-tab-button.active {
    background-color: #3a6e35;
    color: white;
    border-color: #3a6e35;
    font-weight: 600;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

.comp-tab-content {
    display: none;
    margin-top: 20px;
}

.comp-tab-content.active {
    display: block;
}

/* ============================================
   PAIRINGS MANAGEMENT STYLES
   ============================================ */

.pairings-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.pairings-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pairings-info {
    color: #666;
    font-size: 0.9em;
}

.pairings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.pairing-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.pairing-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pairing-header {
    background: #f5f5f5;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.pairing-name {
    font-weight: 600;
    color: #333;
}

.pairing-info {
    color: #3a6e35;
    font-size: 0.9em;
    font-weight: 500;
}

.pairing-actions {
    display: flex;
    gap: 4px;
}

.pairing-actions .btn-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.pairing-actions .btn-icon:hover {
    opacity: 1;
}

.pairing-players {
    padding: 8px;
    min-height: 100px;
}

.pairing-player {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    margin: 4px 0;
    background: #f9f9f9;
    border-radius: 4px;
    cursor: grab;
    transition: background 0.2s, transform 0.2s;
}

.pairing-player:hover {
    background: #f0f0f0;
}

.pairing-player.dragging {
    opacity: 0.5;
    transform: scale(0.98);
}

.player-drag-handle {
    color: #ccc;
    margin-right: 8px;
    cursor: grab;
}

.player-name {
    flex: 1;
    font-weight: 500;
}

.player-handicap {
    color: #666;
    font-size: 0.85em;
}

.pairing-empty-slot {
    padding: 12px;
    margin: 4px 0;
    border: 2px dashed #ddd;
    border-radius: 4px;
    text-align: center;
    color: #999;
    font-size: 0.85em;
}

.pairing-players.drag-over {
    background: #e8f5e9;
    border-radius: 4px;
}

.empty-pairings {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-pairings .empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.empty-pairings h4 {
    margin: 0 0 10px;
    color: #333;
}

.empty-pairings p {
    margin: 0;
    max-width: 400px;
    margin: 0 auto;
}

.unpaired-section {
    margin-top: 20px;
    padding: 15px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
}

.unpaired-section h4 {
    margin: 0 0 10px;
    color: #f57c00;
}

.unpaired-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.warning-box {
    background: #fff3e0;
    border: 1px solid #ffb74d;
    border-radius: 4px;
    padding: 12px;
    margin: 15px 0;
    color: #e65100;
}

.form-hint {
    display: block;
    color: #666;
    font-size: 0.85em;
    margin-top: 4px;
}

/* ============================================
   SCORING SYSTEM STYLES
   ============================================ */

.scores-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.scores-actions {
    display: flex;
    gap: 8px;
}

.scores-toggle {
    display: flex;
    gap: 15px;
}

.scores-toggle label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 0.9em;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table th {
    background: #3a6e35;
    color: white;
    padding: 10px 8px;
    text-align: left;
    font-weight: 600;
}

.leaderboard-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #eee;
}

.leaderboard-table tr.leader {
    background: #fff9e6;
}

.leaderboard-table tr.leader td {
    font-weight: 600;
}

.leaderboard-table .col-rank {
    width: 50px;
    text-align: center;
}

.leaderboard-table .col-hcp,
.leaderboard-table .col-thru,
.leaderboard-table .col-gross,
.leaderboard-table .col-net {
    width: 60px;
    text-align: center;
}

.leaderboard-table .col-name {
    min-width: 150px;
}

/* Group Progress */
.group-progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.group-progress-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px;
}

.group-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.group-progress-header .group-name {
    font-weight: 600;
}

.group-progress-header .group-hole {
    color: #3a6e35;
    font-weight: 500;
}

.progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #3a6e35;
    transition: width 0.3s ease;
}

/* ============================================
   LEAGUE SETTINGS & TEAMS - PHASE 6
   ============================================ */

.settings-section {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.settings-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}

.preset-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.preset-card {
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-card:hover {
    border-color: #3a6e35;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.preset-card.active {
    border-color: #3a6e35;
    background: #e8f5e8;
}

.preset-card h5 {
    margin: 0 0 8px 0;
    color: #333;
}

.preset-card p {
    margin: 0;
    font-size: 0.85em;
    color: #666;
}

.form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.half-width {
    flex: 1;
    min-width: 200px;
}

.third-width {
    flex: 0 0 auto;
}

/* Team Cards */
.team-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

.team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.team-header h5 {
    margin: 0;
    color: #333;
}

.team-actions {
    display: flex;
    gap: 5px;
}

.team-members {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.team-member {
    background: #e8f5e8;
    color: #3a6e35;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.9em;
}

.no-members {
    color: #999;
    font-style: italic;
}

/* Checkbox List */
.checkbox-list {
    background: white;
}

.checkbox-item {
    display: block;
    padding: 8px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.checkbox-item:hover {
    background: #f5f5f5;
}

.checkbox-item input {
    margin-right: 10px;
}

/* Sub Request Cards */
.sub-request-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.request-info {
    flex: 1;
}

.request-actions {
    display: flex;
    gap: 5px;
}

/* Info Box Variations */
.info-box-blue {
    background-color: #e7f3ff;
    border-color: #2196f3;
    color: #1565c0;
}

/* Badge Variations */
.badge-success {
    background-color: #28a745;
    color: white;
}

.badge-warning {
    background-color: #ffc107;
    color: #000;
}

.badge-primary {
    background-color: #3a6e35;
    color: white;
}

/* Score Entry Modal */
.wide-modal {
    max-width: 600px;
}

.score-entry-header {
    margin-bottom: 15px;
}

.scorecard-container {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
}

.scorecard-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.scorecard-info .player-name {
    font-size: 1.1em;
    font-weight: 600;
}

.scorecard-info .player-hcp {
    color: #666;
}

.scorecard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 500px) {
    .scorecard-grid {
        grid-template-columns: 1fr;
    }
}

.scorecard-section h4 {
    margin: 0 0 10px;
    color: #333;
    font-size: 0.95em;
}

.scorecard-holes {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.hole-header {
    display: flex;
    background: #3a6e35;
    color: white;
    font-weight: 600;
    font-size: 0.85em;
}

.hole-header .hole-num,
.hole-header .hole-score {
    padding: 6px 8px;
}

.hole-header .hole-num {
    flex: 1;
}

.hole-header .hole-score {
    width: 60px;
    text-align: center;
}

.hole-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.hole-row:last-of-type {
    border-bottom: none;
}

.hole-row .hole-num {
    flex: 1;
    padding: 6px 8px;
    font-weight: 500;
}

.hole-score-input {
    width: 60px;
    padding: 6px 8px;
    border: none;
    border-left: 1px solid #eee;
    text-align: center;
    font-size: 1em;
    -moz-appearance: textfield;
}

.hole-score-input::-webkit-outer-spin-button,
.hole-score-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.hole-score-input:focus {
    outline: none;
    background: #e8f5e9;
}

.hole-total {
    display: flex;
    background: #f0f0f0;
    font-weight: 600;
}

.hole-total span:first-child {
    flex: 1;
    padding: 8px;
}

.hole-total span:last-child {
    width: 60px;
    padding: 8px;
    text-align: center;
    background: #e0e0e0;
}

.scorecard-totals {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #ddd;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

.total-row.total-net {
    font-size: 1.2em;
    font-weight: 700;
    color: #3a6e35;
    padding-top: 10px;
    border-top: 1px solid #ddd;
    margin-top: 5px;
}

.total-value {
    font-weight: 600;
}

/* ============================================
   MOBILE ADMIN PANEL ENHANCEMENTS
   ============================================ */

/* Phase 1: Mobile Sidebar Navigation */
@media (max-width: 992px) {
    /* Show hamburger toggle */
    .sidebar-toggle {
        display: block;
    }
    
    /* Sidebar becomes slide-out drawer */
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        max-height: 100vh;
        z-index: 1000;
        border-radius: 0;
        transition: left 0.3s ease;
        padding-top: 60px;
    }
    
    .admin-sidebar.open {
        left: 0;
    }
    
    /* Show close button on mobile */
    .sidebar-close {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
    }
    
    .sidebar-header {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
    }
    
    /* Full width content */
    .admin-layout {
        flex-direction: column;
    }
    
    .admin-content {
        border-radius: 12px;
        margin-top: 50px;
    }
    
    /* Overlay active state */
    .sidebar-overlay.active {
        display: block;
    }
}

@media (max-width: 768px) {
    /* Stack filter controls vertically */
    .filter-controls {
        flex-direction: column;
        gap: 12px;
    }
    
    .filter-controls .form-group {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-controls .form-group input[type="text"],
    .filter-controls .form-group input[type="date"] {
        width: 100%;
        min-height: 44px;
        font-size: 16px; /* Prevents iOS zoom */
    }
    
    .filter-controls button {
        width: 100%;
        min-height: 44px;
    }
    
    /* View toggle buttons */
    .view-toggle {
        width: 100%;
        display: flex;
    }
    
    .view-toggle .view-btn {
        flex: 1;
        min-height: 44px;
    }
    
    /* Tab content padding */
    .tab-content {
        padding: 15px;
    }
    
    /* Admin page header adjustments */
    body.admin-page header h1 {
        font-size: 1.5rem;
    }
    
    body.admin-page .container {
        padding: 0 10px;
    }
    
    body.admin-page .admin-header-bar {
        gap: 8px;
    }
    
    .admin-header-logo .logo-wordmark {
        font-size: 1.2rem;
    }
    
    .admin-header-weather {
        min-width: auto;
    }
    
    .admin-header-weather-icon {
        font-size: 1.4rem;
    }
    
    .admin-header-weather-meta {
        display: none;
    }
}

/* Phase 2: Mobile Booking Cards */
.mobile-bookings-cards {
    display: none;
}

@media (max-width: 768px) {
    /* Hide desktop table, show mobile cards */
    .desktop-table-view {
        display: none !important;
    }
    
    .mobile-bookings-cards {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    /* Individual booking card */
    .mobile-booking-card {
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border: 1px solid #e5e7eb;
        overflow: hidden;
    }
    
    .mobile-booking-card.booking-flagged {
        border-left: 4px solid #ef4444;
    }
    
    /* Card header with name and time */
    .mobile-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 16px;
        background: #f8fafc;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .mobile-card-header .customer-name {
        font-weight: 600;
        font-size: 1rem;
        color: #1e293b;
    }
    
    .mobile-card-header .booking-time {
        font-weight: 600;
        font-size: 0.95rem;
        color: #3a6e35;
    }
    
    /* Card body with booking details */
    .mobile-card-body {
        padding: 14px 16px;
    }
    
    .mobile-card-details {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 16px;
        margin-bottom: 12px;
    }
    
    .mobile-card-detail {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    
    .mobile-card-detail .detail-label {
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #64748b;
    }
    
    .mobile-card-detail .detail-value {
        font-size: 0.9rem;
        color: #334155;
        font-weight: 500;
    }
    
    /* Status badge */
    .mobile-status-badge {
        display: inline-block;
        padding: 4px 10px;
        border-radius: 12px;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
    }
    
    .mobile-status-badge.status-requested {
        background: #fef3c7;
        color: #92400e;
    }
    
    .mobile-status-badge.status-approved {
        background: #d1fae5;
        color: #065f46;
    }
    
    .mobile-status-badge.status-checked-in {
        background: #dbeafe;
        color: #1e40af;
    }
    
    .mobile-status-badge.status-completed {
        background: #e5e7eb;
        color: #374151;
    }
    
    /* Flag badge */
    .mobile-flag-badge {
        display: inline-block;
        background: #fee2e2;
        color: #991b1b;
        padding: 2px 8px;
        border-radius: 4px;
        font-size: 0.7rem;
        font-weight: 600;
        margin-left: 8px;
    }
    
    .mobile-flag-reason {
        background: #fef2f2;
        color: #991b1b;
        padding: 8px 12px;
        border-radius: 6px;
        font-size: 0.8rem;
        margin-top: 8px;
    }
    
    /* Card footer with actions */
    .mobile-card-footer {
        display: flex;
        border-top: 1px solid #e5e7eb;
    }
    
    .mobile-card-footer button {
        flex: 1;
        padding: 12px;
        border: none;
        background: transparent;
        font-size: 0.85rem;
        font-weight: 500;
        cursor: pointer;
        min-height: 48px;
        transition: background 0.2s;
    }
    
    .mobile-card-footer button:not(:last-child) {
        border-right: 1px solid #e5e7eb;
    }
    
    .mobile-card-footer button:active {
        background: #f1f5f9;
    }
    
    .mobile-card-footer .btn-check-in {
        color: #3a6e35;
    }
    
    .mobile-card-footer .btn-edit {
        color: #2563eb;
    }
    
    .mobile-card-footer .btn-more {
        color: #64748b;
    }
    
    /* Paid indicator */
    .mobile-paid-badge {
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }
    
    .mobile-paid-badge.paid {
        color: #059669;
    }
    
    .mobile-paid-badge.unpaid {
        color: #dc2626;
    }
    
    /* Empty state */
    .mobile-bookings-empty {
        text-align: center;
        padding: 40px 20px;
        color: #64748b;
    }
    
    .mobile-bookings-empty .empty-icon {
        font-size: 3rem;
        margin-bottom: 12px;
    }
}

/* Tablet adjustments (show table with fewer columns) */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Hide less essential columns on tablet */
    #bookings-table th:nth-child(8),
    #bookings-table td:nth-child(8),
    #bookings-table th:nth-child(9),
    #bookings-table td:nth-child(9),
    #bookings-table th:nth-child(10),
    #bookings-table td:nth-child(10) {
        display: none;
    }
    
    .admin-tabs {
        flex-wrap: wrap;
    }
    
    .tab-button {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* Small mobile screens */
@media (max-width: 400px) {
    .mobile-card-details {
        grid-template-columns: 1fr;
    }
    
    .mobile-card-footer button {
        font-size: 0.8rem;
        padding: 10px 8px;
    }
    
    .tab-button {
        padding: 10px 10px;
        font-size: 12px;
    }
}

/* Mobile Options Popup (for booking actions) */
.mobile-options-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.mobile-options-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.mobile-options-menu {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 500px;
    border-radius: 16px 16px 0 0;
    padding: 8px 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    animation: slideUpMenu 0.25s ease-out;
}

@keyframes slideUpMenu {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.mobile-options-header {
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    color: #64748b;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 8px;
}

.mobile-option-btn {
    display: block;
    width: 100%;
    padding: 16px 20px;
    border: none;
    background: transparent;
    text-align: left;
    font-size: 1rem;
    color: #1e293b;
    cursor: pointer;
    transition: background 0.2s;
}

.mobile-option-btn:active {
    background: #f1f5f9;
}

.mobile-option-cancel {
    margin-top: 8px;
    border-top: 1px solid #e5e7eb;
    color: #dc2626;
    font-weight: 600;
    text-align: center;
}

/* =========================================
   Course Tees Configuration Styles
   ========================================= */

.tee-sets-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.tee-sets-table th,
.tee-sets-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.tee-sets-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #333;
}

.tee-sets-table tr:hover {
    background-color: #f9f9f9;
}

.tee-sets-table .edit-btn,
.tee-sets-table .delete-btn {
    padding: 6px 12px;
    margin-right: 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
}

.tee-sets-table .edit-btn {
    background-color: #1976d2;
    color: white;
}

.tee-sets-table .edit-btn:hover {
    background-color: #1565c0;
}

.tee-sets-table .delete-btn {
    background-color: #d32f2f;
    color: white;
}

.tee-sets-table .delete-btn:hover {
    background-color: #c62828;
}

.tee-color-badge {
    font-weight: 500;
    text-transform: capitalize;
}

.handicap-info-box {
    line-height: 1.6;
}

.handicap-info-box h5 {
    font-size: 1.1em;
}

.handicap-info-box ul li {
    margin-bottom: 5px;
}

.no-data-message {
    color: #666;
    font-style: italic;
}

.course-info-section h5,
.tee-sets-section h5 {
    margin: 0;
    color: #333;
    font-size: 1.1em;
}

/* Modal for tee set editing */
#tee-set-modal .modal-content {
    max-width: 500px;
}

#tee-set-form .form-group {
    margin-bottom: 15px;
}

#tee-set-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

#tee-set-form input[type="text"],
#tee-set-form input[type="number"],
#tee-set-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

#tee-set-form input[type="number"]::-webkit-inner-spin-button {
    opacity: 1;
}

.primary-btn {
    background-color: #3a6e35;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1em;
}

.primary-btn:hover {
    background-color: #2d5629;
}

.primary-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.secondary-btn {
    background-color: #e0e0e0;
    color: #333;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1em;
}

.secondary-btn:hover {
    background-color: #d0d0d0;
}

/* =========================================
   Handicaps Tab Styles
   ========================================= */

.handicap-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.handicap-tab-button {
    background-color: #f0f0f0;
    color: #333;
    border: none;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    font-size: 0.95em;
}

.handicap-tab-button.active {
    background-color: #3a6e35;
    color: white;
}

.handicap-tab-content {
    display: none;
    padding: 15px 0;
}

.handicap-tab-content.active {
    display: block;
}

.handicap-search-section {
    margin-bottom: 20px;
}

.search-results-dropdown {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    width: calc(100% - 2px);
}

.search-result-item {
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.search-result-item:hover {
    background-color: #f5f5f5;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item .member-name {
    font-weight: 500;
}

.search-result-item .member-info {
    color: #666;
    font-size: 0.9em;
}

.search-result-item .member-handicap {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.no-results {
    padding: 15px;
    text-align: center;
    color: #666;
}

.handicap-member-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.member-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.member-card-header h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.member-card-header .text-muted {
    color: #666;
    margin: 0;
}

.handicap-display {
    text-align: center;
    background: linear-gradient(135deg, #2e7d32, #4caf50);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
}

.handicap-index-label {
    font-size: 0.85em;
    text-transform: uppercase;
    opacity: 0.9;
}

.handicap-index-value {
    font-size: 2.5em;
    font-weight: 700;
    line-height: 1;
}

.handicap-index-value.na {
    font-size: 1.5em;
    opacity: 0.7;
}

.stat-box {
    background: #f5f5f5;
    padding: 12px 18px;
    border-radius: 6px;
    text-align: center;
}

.stat-box .stat-label {
    display: block;
    font-size: 0.85em;
    color: #666;
    margin-bottom: 5px;
}

.stat-box .stat-value {
    display: block;
    font-size: 1.4em;
    font-weight: 600;
    color: #333;
}

.manual-override-form {
    background: #fff3e0;
    border: 1px solid #ffcc80;
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
}

.manual-override-form h5 {
    margin: 0 0 15px 0;
    color: #e65100;
}

.handicap-history-section {
    margin-top: 20px;
}

.handicap-history-section h5 {
    margin: 0 0 15px 0;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #3a6e35;
}

.handicap-differentials-table,
.handicap-history-table,
.members-handicap-table {
    width: 100%;
    border-collapse: collapse;
}

.handicap-differentials-table th,
.handicap-differentials-table td,
.handicap-history-table th,
.handicap-history-table td,
.members-handicap-table th,
.members-handicap-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.handicap-differentials-table th,
.handicap-history-table th,
.members-handicap-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #333;
}

.handicap-differentials-table tr.used-differential {
    background-color: #e8f5e9;
}

.handicap-differentials-table tr.used-differential td {
    font-weight: 500;
}

.handicap-cell {
    font-weight: 700;
    color: #2e7d32;
}

.score-preview-box {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
}

.score-preview-box h5 {
    margin: 0 0 10px 0;
    color: #1565c0;
}

.preview-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

.preview-row span:last-child {
    font-weight: 600;
}

.btn-small {
    padding: 5px 10px;
    font-size: 0.85em;
    background-color: #3a6e35;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-small:hover {
    background-color: #2d5629;
}

/* ============================================
   Dynamic Pricing Styles
   ============================================ */

#dynamic-pricing-container {
    padding: 20px;
}

.dynamic-pricing-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.dynamic-pricing-header h3 {
    margin: 0;
}

/* Config Cards */
.config-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.config-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.config-card-header h4 {
    margin: 0;
}

/* Config Sections */
.config-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.config-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.config-section .section-header h4 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header.clickable {
    cursor: pointer;
    user-select: none;
}

.section-header.clickable:hover {
    opacity: 0.8;
}

.collapse-icon {
    font-size: 12px;
    transition: transform 0.2s;
}

.collapsible-content {
    transition: all 0.3s ease;
}

.collapsible-content.collapsed {
    display: none;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch.small {
    width: 40px;
    height: 22px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch.small .toggle-slider:before {
    height: 16px;
    width: 16px;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--brand-primary, #3a6e35);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.toggle-switch.small input:checked + .toggle-slider:before {
    transform: translateX(18px);
}

/* Toggle Group - Modern toggle with label above */
.toggle-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.toggle-group .toggle-label {
    font-weight: 500;
    color: var(--text-color, #333);
    font-size: 0.95rem;
}

.toggle-group .help-text {
    margin-top: 4px;
    font-size: 0.85rem;
    color: #666;
}

body.dark-mode .toggle-group .toggle-label {
    color: #e0e0e0;
}

body.dark-mode .toggle-group .help-text {
    color: #aaa;
}

/* Inline toggle for compact layouts */
.toggle-group.inline {
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.toggle-group.inline .toggle-label {
    order: 2;
}

.toggle-group.inline .toggle-switch {
    order: 1;
}

/* Weather Suggestions */
.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.no-suggestions {
    color: #666;
    font-style: italic;
    padding: 20px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 8px;
}

.suggestion-card {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid #90caf9;
    border-radius: 8px;
    padding: 15px;
}

.suggestion-weather {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.weather-icon {
    font-size: 24px;
}

.weather-condition {
    font-weight: 600;
    color: #1565c0;
}

.precip-prob {
    color: #666;
    font-size: 0.9em;
}

.suggestion-details {
    margin-bottom: 8px;
    font-size: 0.95em;
}

.suggestion-recommendation {
    margin-bottom: 8px;
}

.suggestion-recommendation .discount-value {
    font-weight: 700;
    color: #2e7d32;
    font-size: 1.1em;
}

.suggestion-reason {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 12px;
}

.suggestion-actions {
    display: flex;
    gap: 10px;
}

/* Rules List */
.rules-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.no-rules {
    color: #666;
    font-style: italic;
    padding: 20px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 8px;
}

.rule-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.2s;
}

.rule-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.rule-card.inactive {
    opacity: 0.6;
    background: #f5f5f5;
}

.rule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.rule-name {
    font-weight: 600;
    font-size: 1.05em;
}

.rule-adjustment {
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
}

.rule-adjustment.discount {
    background: #e8f5e9;
    color: #2e7d32;
}

.rule-adjustment.surge {
    background: #fff3e0;
    color: #ef6c00;
}

.rule-triggers {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 10px;
}

.rule-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.rule-status {
    font-size: 0.8em;
    padding: 2px 8px;
    border-radius: 10px;
}

.rule-status.active {
    background: #e8f5e9;
    color: #2e7d32;
}

.rule-status.inactive {
    background: #f5f5f5;
    color: #666;
}

.weather-badge,
.ab-badge {
    font-size: 0.75em;
    padding: 2px 6px;
    border-radius: 4px;
    background: #e3f2fd;
    color: #1565c0;
}

.rule-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

/* Enterprise Features Section */
.enterprise-only {
    border-left: 3px solid #9c27b0;
}

.enterprise-feature {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 15px;
}

.enterprise-feature h5 {
    margin: 0 0 8px 0;
}

.feature-status {
    color: #2e7d32;
    font-size: 0.9em;
}

/* Preview Table */
.preview-table-container {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 15px;
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
}

.preview-table th,
.preview-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.preview-table th {
    background: #f5f5f5;
    font-weight: 600;
    position: sticky;
    top: 0;
}

.preview-table td.discount {
    color: #2e7d32;
    font-weight: 600;
}

.preview-table td.surge {
    color: #ef6c00;
    font-weight: 600;
}

.preview-table td.no-data,
.preview-table td.error {
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Rule Modal */
.dp-rule-modal {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.form-fieldset {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.form-fieldset legend {
    font-weight: 600;
    padding: 0 10px;
    color: #333;
}

.days-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.days-checkboxes label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.third-width {
    flex: 1;
    min-width: 120px;
}

/* Analytics Modal */
.dp-analytics-modal {
    max-width: 700px;
}

.analytics-period-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.analytics-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.analytics-card {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.analytics-label {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 5px;
}

.analytics-value {
    font-size: 1.5em;
    font-weight: 700;
    color: #333;
}

.analytics-section {
    margin-bottom: 20px;
}

.analytics-section h4 {
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #e0e0e0;
}

.ab-test-result,
.top-rule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 8px;
}

.top-rule-item .impact.positive {
    color: #2e7d32;
}

.top-rule-item .impact.negative {
    color: #c62828;
}

/* Upgrade Notice */
.upgrade-notice {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 12px;
    margin: 20px 0;
}

.upgrade-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.upgrade-notice h4 {
    margin-bottom: 10px;
    color: #333;
}

.upgrade-notice p {
    color: #666;
    margin-bottom: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Dark mode support */
.dark-mode .config-card,
.dark-mode .config-section,
.dark-mode .rule-card {
    background: #2d2d2d;
    border-color: #404040;
}

.dark-mode .rule-card.inactive {
    background: #252525;
}

.dark-mode .suggestion-card {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    border-color: #3949ab;
}

.dark-mode .no-suggestions,
.dark-mode .no-rules {
    background: #252525;
    color: #aaa;
}

.dark-mode .preview-table th {
    background: #333;
}

.dark-mode .preview-table td {
    border-color: #404040;
}

.dark-mode .analytics-card {
    background: linear-gradient(135deg, #333 0%, #2d2d2d 100%);
}

.dark-mode .upgrade-notice {
    background: linear-gradient(135deg, #333 0%, #2d2d2d 100%);
}

/* Responsive */
@media (max-width: 768px) {
    .rule-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .rule-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .rule-actions {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .suggestion-actions {
        flex-direction: column;
    }
    
    .analytics-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .days-checkboxes {
        gap: 10px;
    }
}

.text-muted {
    color: #666;
}

/* ============================================
   Discount Pricing Display
   ============================================ */

.discount-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9em;
}

.discount-badge {
    background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Promo highlight for time slots */
.time-slot.promo-highlight {
    border: 2px solid #4caf50 !important;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
    animation: promo-glow 1.5s ease-in-out infinite;
}

@keyframes promo-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(76, 175, 80, 0.3); }
    50% { box-shadow: 0 0 20px rgba(76, 175, 80, 0.5); }
}

/* Promo toast notification */
.promo-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
}

.promo-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.promo-toast-icon {
    font-size: 1.5em;
}

.promo-toast-text {
    font-weight: 600;
    font-size: 1em;
}

/* ============================================
   Notification Settings Section
   ============================================ */

.notification-settings {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

.notification-form-group {
    margin-bottom: 15px;
}

.notification-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.notification-form-group select,
.notification-form-group input,
.notification-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.notification-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.notification-preview {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

.notification-preview h5 {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 0.9em;
    text-transform: uppercase;
}

.notification-preview-content {
    background: #fafafa;
    border-radius: 6px;
    padding: 15px;
}

.notification-history {
    margin-top: 20px;
}

.notification-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 8px;
}

.notification-history-item .stats {
    font-size: 0.85em;
    color: #666;
}

.notification-history-item .stats .success {
    color: #2e7d32;
}

.notification-history-item .stats .failure {
    color: #c62828;
}

/* Dark mode support for discount/promo */
.dark-mode .original-price {
    color: #888;
}

.dark-mode .notification-settings {
    background: #2d2d2d;
}

.dark-mode .notification-preview {
    background: #333;
    border-color: #404040;
}

.dark-mode .notification-preview-content {
    background: #252525;
}

.dark-mode .notification-history-item {
    background: #2d2d2d;
    border-color: #404040;
}

/* Course Map Hole Chart Table */
.hole-chart-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.hole-chart-table th,
.hole-chart-table td {
    padding: 8px;
    text-align: left;
    vertical-align: middle;
}

.hole-chart-table th:nth-child(1),
.hole-chart-table td:nth-child(1) {
    width: 25%;
}

.hole-chart-table th:nth-child(2),
.hole-chart-table td:nth-child(2) {
    width: 25%;
}

.hole-chart-table th:nth-child(3),
.hole-chart-table td:nth-child(3) {
    width: 25%;
}

.hole-chart-table th:nth-child(4),
.hole-chart-table td:nth-child(4) {
    width: 25%;
}

.hole-chart-table tbody tr.hole-row {
    cursor: pointer;
    display: table-row;
}

.hole-chart-table tbody tr.hole-row:hover {
    background: #f5f5f5;
}

.dark-mode .hole-chart-table tbody tr.hole-row:hover {
    background: #3a3a3a;
}

.hole-expand-icon {
    display: inline-block;
    width: 16px;
    font-size: 10px;
    color: #666;
    transition: transform 0.2s ease;
}

/* ============================================
   SIMULATOR MANAGEMENT STYLES
   ============================================ */

/* Addon Badge */
.addon-badge-inline {
    display: inline-block;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 1px 5px;
    border-radius: 6px;
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 5px;
    vertical-align: middle;
}

/* Simulator Tab Content */
.simulator-tab {
    padding: 20px;
}

.simulator-tab h3 {
    margin: 0 0 5px 0;
    color: #333;
}

.dark-mode .simulator-tab h3 {
    color: #e0e0e0;
}

/* Dashboard Grid */
.sim-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.sim-dashboard-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dark-mode .sim-dashboard-card {
    background: #2d2d2d;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.sim-dashboard-card h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dark-mode .sim-dashboard-card h4 {
    color: #aaa;
}

.sim-dashboard-card-wide {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .sim-dashboard-card-wide {
        grid-column: span 1;
    }
}

/* Stats Row */
.sim-stats-row {
    display: flex;
    gap: 20px;
    justify-content: space-around;
}

.sim-stat {
    text-align: center;
}

.sim-stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #2e7d32;
}

.sim-stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
}

.dark-mode .sim-stat-value {
    color: #4caf50;
}

.dark-mode .sim-stat-label {
    color: #999;
}

/* Bay Status Grid */
.sim-bay-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.sim-bay-card {
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sim-bay-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sim-bay-card.available {
    background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
    border: 2px solid #4caf50;
}

.sim-bay-card.occupied {
    background: linear-gradient(135deg, #ffcdd2 0%, #ef9a9a 100%);
    border: 2px solid #f44336;
}

.sim-bay-card.reserved {
    background: linear-gradient(135deg, #fff9c4 0%, #fff59d 100%);
    border: 2px solid #ffc107;
}

.sim-bay-card.maintenance {
    background: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%);
    border: 2px solid #9e9e9e;
}

.sim-bay-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.sim-bay-status {
    font-size: 11px;
    text-transform: uppercase;
}

/* Bay Kiosk Status */
.bay-kiosk-status {
    font-size: 10px;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.kiosk-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
}

.kiosk-status.connected {
    background: #c8e6c9;
    color: #2e7d32;
}

.kiosk-status.disconnected {
    background: #ffcdd2;
    color: #c62828;
}

.kiosk-status.none {
    background: #f5f5f5;
    color: #757575;
}

.dark-mode .kiosk-status.connected {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
}

.dark-mode .kiosk-status.disconnected {
    background: rgba(244, 67, 54, 0.2);
    color: #ef9a9a;
}

.dark-mode .kiosk-status.none {
    background: rgba(255,255,255,0.1);
    color: #9e9e9e;
}

/* Kiosk Device Info in Bay Modal */
.kiosk-device-info {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}

.dark-mode .kiosk-device-info {
    background: #2a2a2a;
    border-color: #3a3a3a;
}

/* Dashboard Bay Status Cards */
.sim-bay-status-card {
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sim-bay-status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sim-bay-status-card.available {
    border-color: #4caf50;
    background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e9 100%);
}

.sim-bay-status-card.occupied {
    border-color: #f44336;
    background: linear-gradient(135deg, #ffebee 0%, #fce4ec 100%);
}

.sim-bay-status-card.reserved {
    border-color: #ff9800;
    background: linear-gradient(135deg, #fff8e1 0%, #fff3e0 100%);
}

.sim-bay-status-card .bay-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.sim-bay-status-card .bay-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.sim-bay-status-card .status-badge {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.sim-bay-status-card .status-badge.available {
    background: #4caf50;
    color: #fff;
}

.sim-bay-status-card .status-badge.occupied {
    background: #f44336;
    color: #fff;
}

.sim-bay-status-card .status-badge.reserved {
    background: #ff9800;
    color: #fff;
}

.sim-bay-status-card .bay-status-body {
    font-size: 12px;
    color: #666;
}

.sim-bay-status-card .bay-customer {
    display: block;
    font-weight: 500;
    color: #333;
}

.sim-bay-status-card .bay-time {
    font-size: 11px;
    color: #888;
}

.sim-bay-status-card .bay-available-text {
    color: #4caf50;
    font-style: italic;
}

.dark-mode .sim-bay-status-card {
    background: #2a2a2a;
    border-color: #3a3a3a;
}

.dark-mode .sim-bay-status-card .bay-name {
    color: #e0e0e0;
}

.dark-mode .sim-bay-status-card .bay-status-body {
    color: #aaa;
}

.dark-mode .sim-bay-status-card .bay-customer {
    color: #fff;
}

.dark-mode .sim-bay-status-card.available {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(76, 175, 80, 0.1) 100%);
    border-color: #4caf50;
}

.dark-mode .sim-bay-status-card.occupied {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.15) 0%, rgba(244, 67, 54, 0.1) 100%);
    border-color: #f44336;
}

.dark-mode .sim-bay-status-card.reserved {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.15) 0%, rgba(255, 152, 0, 0.1) 100%);
    border-color: #ff9800;
}

/* Upcoming Bookings Styles */
.sim-upcoming-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
}

.sim-upcoming-item:hover {
    background: #f8f9fa;
}

.sim-upcoming-item:last-child {
    border-bottom: none;
}

.sim-upcoming-item .upcoming-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
    font-size: 12px;
    font-weight: 500;
    color: #333;
}

.sim-upcoming-item .time-separator {
    font-size: 10px;
    color: #999;
}

.sim-upcoming-item .upcoming-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sim-upcoming-item .upcoming-icon {
    font-size: 16px;
}

.sim-upcoming-item .upcoming-customer {
    font-weight: 500;
    color: #333;
}

.sim-upcoming-item .upcoming-bay {
    font-size: 12px;
    color: #666;
    margin-left: auto;
}

.sim-upcoming-item .upcoming-status .status-pill {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #e0e0e0;
    color: #333;
}

.sim-upcoming-item .status-pill.confirmed {
    background: #c8e6c9;
    color: #2e7d32;
}

.sim-upcoming-item .status-pill.checked_in {
    background: #bbdefb;
    color: #1565c0;
}

.dark-mode .sim-upcoming-item {
    border-bottom-color: #3a3a3a;
}

.dark-mode .sim-upcoming-item:hover {
    background: #333;
}

.dark-mode .sim-upcoming-item .upcoming-time,
.dark-mode .sim-upcoming-item .upcoming-customer {
    color: #e0e0e0;
}

.dark-mode .sim-upcoming-item .upcoming-bay {
    color: #aaa;
}

.dark-mode .sim-upcoming-item .status-pill.confirmed {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
}

.dark-mode .sim-upcoming-item .status-pill.checked_in {
    background: rgba(33, 150, 243, 0.2);
    color: #64b5f6;
}

.empty-hint {
    color: #888;
    font-style: italic;
    padding: 10px 0;
    text-align: center;
}

.kiosk-device-info .device-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
}

.kiosk-device-info .device-details {
    font-size: 12px;
    color: #666;
}

.dark-mode .kiosk-device-info .device-details {
    color: #aaa;
}

.kiosk-device-info .last-seen {
    font-size: 11px;
    color: #888;
    margin-top: 5px;
}

/* Software Applications in Bay Modal */
.software-app-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.dark-mode .software-app-row {
    background: #2a2a2a;
    border-color: #3a3a3a;
}

.software-app-inputs {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.software-app-type {
    flex: 0 0 140px;
    min-width: 120px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
}

.dark-mode .software-app-type {
    background: #333;
    border-color: #444;
    color: #fff;
}

.software-app-label {
    flex: 0 0 140px;
    min-width: 120px;
}

.software-app-path {
    flex: 1 1 250px;
    min-width: 200px;
}

.software-app-row .btn-icon {
    padding: 8px 10px;
    min-width: auto;
    flex-shrink: 0;
}

#sim-bay-software-apps-container .empty-hint {
    color: #888;
    font-size: 12px;
    font-style: italic;
    padding: 10px;
    text-align: center;
    background: #f5f5f5;
    border-radius: 6px;
    margin-bottom: 10px;
}

.dark-mode #sim-bay-software-apps-container .empty-hint {
    background: #2a2a2a;
    color: #aaa;
}

@media (max-width: 768px) {
    .software-app-inputs {
        flex-direction: column;
    }
    
    .software-app-label,
    .software-app-path {
        max-width: none;
        min-width: 0;
    }
}

.registration-key-display {
    background: #fff3e0;
    border: 2px dashed #ff9800;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    margin-top: 10px;
}

.dark-mode .registration-key-display {
    background: rgba(255, 152, 0, 0.1);
    border-color: #ff9800;
}

.registration-key-display .key-code {
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: bold;
    color: #e65100;
    letter-spacing: 3px;
    margin: 10px 0;
}

.dark-mode .registration-key-display .key-code {
    color: #ffb74d;
}

.registration-key-display .key-expires {
    font-size: 11px;
    color: #666;
}

.kiosk-installer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 6px;
    color: #1565c0;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.2s;
}

.kiosk-installer-link:hover {
    background: #bbdefb;
}

.dark-mode .kiosk-installer-link {
    background: rgba(33, 150, 243, 0.15);
    color: #64b5f6;
}

.dark-mode .kiosk-installer-link:hover {
    background: rgba(33, 150, 243, 0.25);
}

/* Quick Actions */
.sim-quick-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sim-action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #2196F3;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
}

.sim-action-btn:hover {
    background: #1976D2;
}

.dark-mode .sim-action-btn {
    background: #1976D2;
    border-color: transparent;
    color: #ffffff;
}

.dark-mode .sim-action-btn:hover {
    background: #1565C0;
}

.action-icon {
    font-size: 18px;
}

/* Upcoming Bookings */
.sim-upcoming-list {
    max-height: 250px;
    overflow-y: auto;
}

.sim-upcoming-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.dark-mode .sim-upcoming-item {
    border-bottom-color: #404040;
}

.sim-upcoming-item:last-child {
    border-bottom: none;
}

.sim-upcoming-time {
    font-weight: 600;
    color: #2e7d32;
}

.sim-upcoming-customer {
    flex: 1;
    margin-left: 15px;
}

.sim-upcoming-bay {
    font-size: 12px;
    color: #666;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 4px;
}

.dark-mode .sim-upcoming-bay {
    background: #3a3a3a;
    color: #aaa;
}

/* Toolbar */
.sim-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.dark-mode .sim-toolbar {
    background: #2a2a2a;
}

.sim-limit-info {
    font-size: 13px;
    color: #666;
}

.sim-limit-info.at-limit {
    color: #f44336;
    font-weight: 500;
}

/* Bays Grid */
.sim-bays-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.sim-bay-detail-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #4caf50;
}

.dark-mode .sim-bay-detail-card {
    background: #2d2d2d;
}

.sim-bay-detail-card.inactive {
    border-left-color: #9e9e9e;
    opacity: 0.7;
}

.sim-bay-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.sim-bay-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.sim-bay-actions {
    display: flex;
    gap: 5px;
}

.sim-bay-info {
    font-size: 13px;
    color: #666;
}

.dark-mode .sim-bay-info {
    color: #aaa;
}

.sim-bay-rate {
    font-size: 20px;
    font-weight: 700;
    color: #2e7d32;
    margin-top: 10px;
}

/* Lists */
.sim-list {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dark-mode .sim-list {
    background: #2d2d2d;
}

.sim-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.dark-mode .sim-list-item {
    border-bottom-color: #404040;
}

.sim-list-item:last-child {
    border-bottom: none;
}

.sim-list-item:hover {
    background: #f9f9f9;
}

.dark-mode .sim-list-item:hover {
    background: #333;
}

/* Simulator Tables */
.sim-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dark-mode .sim-table {
    background: #2d2d2d;
}

.sim-table th,
.sim-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.dark-mode .sim-table th,
.dark-mode .sim-table td {
    border-bottom-color: #404040;
}

.sim-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
}

.dark-mode .sim-table th {
    background: #3a3a3a;
    color: #e0e0e0;
}

.sim-table tr:hover {
    background: #fafafa;
}

.dark-mode .sim-table tr:hover {
    background: #333;
}

.sim-table .empty-message {
    text-align: center;
    color: #888;
    padding: 30px 15px;
}

/* Simulator Form Styles */
.sim-form .form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.sim-form .form-row .form-group {
    flex: 1;
    min-width: 200px;
}

/* Simulator Remove Block Button */
.sim-remove-block-btn {
    background: #f44336;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.sim-remove-block-btn:hover {
    background: #d32f2f;
}

/* Sub-tabs */
.sim-subtabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.sim-subtab-btn {
    padding: 8px 16px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    margin-bottom: -12px;
}

.sim-subtab-btn.active {
    color: #2e7d32;
    border-bottom-color: #2e7d32;
    font-weight: 500;
}

.sim-subtab-content {
    display: none;
}

.sim-subtab-content.active {
    display: block;
}

/* Payment Setup Sub-tabs */
.payment-setup-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.payment-setup-tabs button {
    padding: 10px 20px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    margin-bottom: -12px;
    transition: all 0.2s;
}

.payment-setup-tabs button:hover {
    color: #2e7d32;
}

.payment-setup-tabs button.active {
    color: #2e7d32;
    border-bottom-color: #2e7d32;
}

.payment-setup-tabs button .pro-badge {
    background: linear-gradient(135deg, #4CAF50 0%, #2e7d32 100%);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
}

.dark-mode .payment-setup-tabs {
    border-bottom-color: #555;
}

.dark-mode .payment-setup-tabs button {
    color: #aaa;
}

.dark-mode .payment-setup-tabs button:hover,
.dark-mode .payment-setup-tabs button.active {
    color: #4CAF50;
    border-bottom-color: #4CAF50;
}

.payment-setup-tab-content {
    display: none;
}

.payment-setup-tab-content.active {
    display: block;
}

/* Date Navigation */
.sim-date-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sim-nav-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.sim-nav-btn:hover {
    background: #f5f5f5;
}

.dark-mode .sim-nav-btn {
    background: #3a3a3a;
    border-color: #555;
    color: #e0e0e0;
}

.sim-date-input {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.dark-mode .sim-date-input {
    background: #3a3a3a;
    border-color: #555;
    color: #e0e0e0;
}

/* View Toggle */
.sim-view-toggle {
    display: flex;
    gap: 5px;
}

.sim-view-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    font-size: 16px;
}

.sim-view-btn:first-child {
    border-radius: 6px 0 0 6px;
}

.sim-view-btn:last-child {
    border-radius: 0 6px 6px 0;
}

.sim-view-btn.active {
    background: #2e7d32;
    border-color: #2e7d32;
    color: white;
}

.dark-mode .sim-view-btn {
    background: #3a3a3a;
    border-color: #555;
    color: #e0e0e0;
}

.dark-mode .sim-view-btn.active {
    background: #4caf50;
    border-color: #4caf50;
}

/* Filters */
.sim-filters {
    display: flex;
    gap: 10px;
}

.sim-select {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    min-width: 120px;
}

.dark-mode .sim-select {
    background: #3a3a3a;
    border-color: #555;
    color: #e0e0e0;
}

/* Calendar View */
.sim-calendar {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.dark-mode .sim-calendar {
    background: #2d2d2d;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* View Toggle Buttons */
.sim-view-toggle {
    display: flex;
    gap: 4px;
    background: #f0f0f0;
    padding: 4px;
    border-radius: 8px;
}

.dark-mode .sim-view-toggle {
    background: #3a3a3a;
}

.sim-view-btn {
    padding: 8px 14px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    color: #666;
}

.dark-mode .sim-view-btn {
    color: #aaa;
}

.sim-view-btn:hover {
    background: rgba(46, 125, 50, 0.1);
    color: #2e7d32;
}

.sim-view-btn.active {
    background: #2e7d32;
    color: white;
    box-shadow: 0 2px 6px rgba(46, 125, 50, 0.3);
}

.sim-view-content {
    display: none;
}

.sim-view-content.active {
    display: block;
}

/* ====================================
   SIMULATOR SCHEDULE GRID (Modern)
   ==================================== */
.sim-schedule-grid {
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.dark-mode .sim-schedule-grid {
    background: #2d2d2d;
    border-color: #404040;
}

/* Grid Header */
.sim-grid-header {
    display: grid;
    grid-template-columns: 80px repeat(var(--num-bays, 3), 1fr);
    background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.sim-grid-time-header {
    padding: 16px 12px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.sim-grid-bay-header {
    padding: 14px 12px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sim-grid-bay-header:last-child {
    border-right: none;
}

.sim-grid-bay-header .bay-name {
    font-weight: 600;
    font-size: 14px;
}

.sim-grid-bay-header .bay-rate {
    font-size: 12px;
    opacity: 0.85;
    font-weight: 400;
}

/* Grid Body */
.sim-grid-body {
    max-height: 600px;
    overflow-y: auto;
}

/* Grid Row */
.sim-grid-row {
    display: grid;
    grid-template-columns: 80px repeat(var(--num-bays, 3), 1fr);
    border-bottom: 1px solid #e8e8e8;
    min-height: 60px;
}

.dark-mode .sim-grid-row {
    border-bottom-color: #404040;
}

.sim-grid-row:last-child {
    border-bottom: none;
}

.sim-grid-row.peak-hour {
    background: rgba(255, 193, 7, 0.05);
}

.dark-mode .sim-grid-row.peak-hour {
    background: rgba(255, 193, 7, 0.08);
}

/* Time Column */
.sim-grid-time {
    padding: 12px 8px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    border-right: 1px solid #e8e8e8;
    background: #fafafa;
}

.dark-mode .sim-grid-time {
    background: #252525;
    border-right-color: #404040;
}

.sim-grid-time .time-label {
    font-size: 13px;
    font-weight: 500;
    color: #666;
}

.dark-mode .sim-grid-time .time-label {
    color: #aaa;
}

/* Grid Cells */
.sim-grid-cell {
    border-right: 1px solid #e8e8e8;
    min-height: 60px;
    position: relative;
    transition: all 0.2s ease;
}

.dark-mode .sim-grid-cell {
    border-right-color: #404040;
}

.sim-grid-cell:last-child {
    border-right: none;
}

/* Available Cell */
.sim-grid-cell.available {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sim-grid-cell.available:hover {
    background: rgba(46, 125, 50, 0.08);
}

.sim-grid-cell.available .add-slot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #999;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
}

.dark-mode .sim-grid-cell.available .add-slot {
    background: #3a3a3a;
    color: #777;
}

.sim-grid-cell.available:hover .add-slot {
    opacity: 1;
    background: #2e7d32;
    color: white;
}

/* Occupied Cell (part of multi-hour booking) */
.sim-grid-cell.occupied {
    display: none;
}

/* Booking Cell */
.sim-grid-cell.booking {
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: flex-start;
    grid-row: span var(--span, 1);
    min-height: calc(60px * var(--span, 1));
}

.sim-grid-cell.booking .booking-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sim-grid-cell.booking:hover .booking-content {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sim-grid-cell.booking .booking-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.sim-grid-cell.booking .booking-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.sim-grid-cell.booking .booking-customer {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sim-grid-cell.booking .booking-time-range {
    font-size: 12px;
    opacity: 0.8;
}

/* Booking Status Colors */
.sim-grid-cell.booking.confirmed .booking-content {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #2196f3;
}

.dark-mode .sim-grid-cell.booking.confirmed .booking-content {
    background: linear-gradient(135deg, #1a3a5c 0%, #1e4976 100%);
}

.sim-grid-cell.booking.checked-in .booking-content {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left: 4px solid #4caf50;
}

.dark-mode .sim-grid-cell.booking.checked-in .booking-content {
    background: linear-gradient(135deg, #1a3d1a 0%, #2d5a2d 100%);
}

.sim-grid-cell.booking.completed .booking-content {
    background: linear-gradient(135deg, #f5f5f5 0%, #eeeeee 100%);
    border-left: 4px solid #9e9e9e;
    opacity: 0.7;
}

.dark-mode .sim-grid-cell.booking.completed .booking-content {
    background: linear-gradient(135deg, #333 0%, #3a3a3a 100%);
}

.sim-grid-cell.booking.pending .booking-content {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left: 4px solid #ff9800;
}

.dark-mode .sim-grid-cell.booking.pending .booking-content {
    background: linear-gradient(135deg, #3d2e1a 0%, #5a441e 100%);
}

/* ====================================
   SIMULATOR CALENDAR VIEW (Summary)
   ==================================== */
.sim-calendar-view {
    padding: 20px;
}

.sim-calendar-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.dark-mode .sim-calendar-header {
    border-bottom-color: #404040;
}

.sim-calendar-corner {
    width: 60px;
    flex-shrink: 0;
}

.sim-calendar-day-header {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    border-radius: 10px;
    background: #f5f5f5;
    transition: all 0.2s ease;
}

.dark-mode .sim-calendar-day-header {
    background: #3a3a3a;
}

.sim-calendar-day-header.today {
    background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
    color: white;
}

.sim-calendar-day-header .day-name {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    opacity: 0.8;
}

.sim-calendar-day-header .day-number {
    display: block;
    font-size: 20px;
    font-weight: 700;
}

/* Bay Summary Cards */
.sim-calendar-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.sim-bay-summary-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e8e8e8;
}

.dark-mode .sim-bay-summary-card {
    background: #2d2d2d;
    border-color: #404040;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.bay-card-header {
    background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bay-card-name {
    font-weight: 600;
    font-size: 16px;
}

.bay-card-rate {
    font-size: 14px;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
}

.bay-card-stats {
    display: flex;
    padding: 16px 20px;
    gap: 20px;
    border-bottom: 1px solid #e8e8e8;
}

.dark-mode .bay-card-stats {
    border-bottom-color: #404040;
}

.bay-card-stats .stat {
    flex: 1;
    text-align: center;
}

.bay-card-stats .stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.dark-mode .bay-card-stats .stat-value {
    color: #e0e0e0;
}

.bay-card-stats .stat.available .stat-value {
    color: #2e7d32;
}

.bay-card-stats .stat-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    margin-top: 4px;
}

.bay-card-bookings {
    padding: 12px 16px;
    max-height: 200px;
    overflow-y: auto;
}

.bay-card-bookings .no-bookings {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 20px 0;
    margin: 0;
}

.mini-booking {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid #2196f3;
}

.dark-mode .mini-booking {
    background: #3a3a3a;
}

.mini-booking:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mini-booking.confirmed {
    border-left-color: #2196f3;
}

.mini-booking.checked_in {
    border-left-color: #4caf50;
}

.mini-booking.completed {
    border-left-color: #9e9e9e;
    opacity: 0.7;
}

.mini-booking .mini-time {
    font-weight: 600;
    font-size: 13px;
    color: #2e7d32;
    min-width: 70px;
}

.mini-booking .mini-name {
    flex: 1;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-booking .mini-type {
    font-size: 16px;
}

/* ====================================
   SIMULATOR LIST VIEW (Modern Cards)
   ==================================== */
.sim-bookings-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 0;
}

.sim-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8e8e8;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dark-mode .sim-list-item {
    background: #2d2d2d;
    border-color: #404040;
}

.sim-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.sim-list-item.confirmed {
    border-left: 4px solid #2196f3;
}

.sim-list-item.checked-in {
    border-left: 4px solid #4caf50;
}

.sim-list-item.completed {
    border-left: 4px solid #9e9e9e;
    opacity: 0.75;
}

.sim-list-item.pending {
    border-left: 4px solid #ff9800;
}

.list-item-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    padding-right: 16px;
    border-right: 1px solid #e8e8e8;
}

.dark-mode .list-item-time {
    border-right-color: #404040;
}

.list-item-time .time-start {
    font-weight: 700;
    font-size: 16px;
    color: #2e7d32;
}

.list-item-time .time-separator {
    font-size: 12px;
    color: #999;
    margin: 2px 0;
}

.list-item-time .time-end {
    font-size: 14px;
    color: #666;
}

.dark-mode .list-item-time .time-end {
    color: #999;
}

.list-item-main {
    flex: 1;
    min-width: 0;
}

.list-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.list-item-icon {
    font-size: 20px;
}

.list-item-customer {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.dark-mode .list-item-customer {
    color: #e0e0e0;
}

.list-item-bay {
    font-size: 13px;
    color: #666;
    padding: 4px 10px;
    background: #f0f0f0;
    border-radius: 20px;
    margin-left: auto;
}

.dark-mode .list-item-bay {
    background: #3a3a3a;
    color: #aaa;
}

.list-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.list-item-meta .badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: capitalize;
    font-weight: 500;
}

.list-item-meta .badge.type-simulator,
.list-item-meta .badge.type-bay_rental {
    background: #e3f2fd;
    color: #1565c0;
}

.dark-mode .list-item-meta .badge.type-simulator,
.dark-mode .list-item-meta .badge.type-bay_rental {
    background: #1a3a5c;
    color: #90caf9;
}

.list-item-meta .badge.type-lesson {
    background: #f3e5f5;
    color: #7b1fa2;
}

.dark-mode .list-item-meta .badge.type-lesson {
    background: #3d1a47;
    color: #ce93d8;
}

.list-item-meta .badge.type-event {
    background: #fff3e0;
    color: #e65100;
}

.dark-mode .list-item-meta .badge.type-event {
    background: #3d2e1a;
    color: #ffb74d;
}

.status-pill {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: capitalize;
    font-weight: 500;
}

.status-pill.confirmed {
    background: #e3f2fd;
    color: #1565c0;
}

.status-pill.checked-in {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-pill.completed {
    background: #f5f5f5;
    color: #757575;
}

.status-pill.pending {
    background: #fff3e0;
    color: #e65100;
}

.dark-mode .status-pill.confirmed {
    background: #1a3a5c;
    color: #90caf9;
}

.dark-mode .status-pill.checked-in {
    background: #1a3d1a;
    color: #81c784;
}

.dark-mode .status-pill.completed {
    background: #333;
    color: #999;
}

.dark-mode .status-pill.pending {
    background: #3d2e1a;
    color: #ffb74d;
}

.payment-pill {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: capitalize;
    font-weight: 500;
}

.payment-pill.paid {
    background: #e8f5e9;
    color: #2e7d32;
}

.payment-pill.unpaid {
    background: #ffebee;
    color: #c62828;
}

.payment-pill.partial {
    background: #fff3e0;
    color: #e65100;
}

.dark-mode .payment-pill.paid {
    background: #1a3d1a;
    color: #81c784;
}

.dark-mode .payment-pill.unpaid {
    background: #3d1a1a;
    color: #ef9a9a;
}

.dark-mode .payment-pill.partial {
    background: #3d2e1a;
    color: #ffb74d;
}

.list-item-actions {
    display: flex;
    gap: 8px;
}

.list-item-actions .action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.list-item-actions .action-btn.check-in {
    background: #e8f5e9;
    color: #2e7d32;
}

.list-item-actions .action-btn.check-in:hover {
    background: #4caf50;
    color: white;
}

.list-item-actions .action-btn.cancel {
    background: #ffebee;
    color: #c62828;
}

.list-item-actions .action-btn.cancel:hover {
    background: #f44336;
    color: white;
}

.dark-mode .list-item-actions .action-btn.check-in {
    background: #1a3d1a;
}

.dark-mode .list-item-actions .action-btn.cancel {
    background: #3d1a1a;
}

/* ========================================
   SIMULATOR BOOKING DETAILS MODAL
   ======================================== */

#sim-booking-details-modal .booking-details {
    display: flex;
    flex-direction: column;
    gap: 0;
}

#sim-booking-details-modal .detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.dark-mode #sim-booking-details-modal .detail-row {
    border-bottom-color: #404040;
}

#sim-booking-details-modal .detail-row:last-child {
    border-bottom: none;
}

#sim-booking-details-modal .detail-row .label {
    font-weight: 500;
    color: #666;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dark-mode #sim-booking-details-modal .detail-row .label {
    color: #999;
}

#sim-booking-details-modal .detail-row .value {
    font-weight: 500;
    color: #333;
    font-size: 14px;
    text-align: right;
}

.dark-mode #sim-booking-details-modal .detail-row .value {
    color: #e0e0e0;
}

#sim-booking-details-modal .detail-row .value.code {
    font-family: monospace;
    font-size: 16px;
    font-weight: 700;
    color: #2e7d32;
    background: #e8f5e9;
    padding: 4px 10px;
    border-radius: 4px;
}

.dark-mode #sim-booking-details-modal .detail-row .value.code {
    background: #1a3d1a;
    color: #81c784;
}

#sim-booking-details-modal .detail-row .value.status-confirmed {
    color: #1565c0;
}

#sim-booking-details-modal .detail-row .value.status-checked_in {
    color: #2e7d32;
}

#sim-booking-details-modal .detail-row .value.status-completed {
    color: #757575;
}

#sim-booking-details-modal .detail-row .value.status-cancelled {
    color: #c62828;
}

#sim-booking-details-modal .detail-row .value.paid {
    color: #2e7d32;
}

#sim-booking-details-modal .detail-row .value.unpaid {
    color: #c62828;
}

#sim-booking-details-modal .detail-row .value.partial {
    color: #e65100;
}

#sim-booking-details-modal .modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e8e8e8;
}

.dark-mode #sim-booking-details-modal .modal-actions {
    border-top-color: #404040;
}

#sim-booking-details-modal .modal-actions button {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

#sim-booking-details-modal .modal-actions .btn-primary {
    background: #2e7d32;
    color: white;
}

#sim-booking-details-modal .modal-actions .btn-primary:hover {
    background: #1b5e20;
}

#sim-booking-details-modal .modal-actions .btn-secondary {
    background: #e3f2fd;
    color: #1565c0;
}

#sim-booking-details-modal .modal-actions .btn-secondary:hover {
    background: #bbdefb;
}

#sim-booking-details-modal .modal-actions .btn-danger {
    background: #ffebee;
    color: #c62828;
}

#sim-booking-details-modal .modal-actions .btn-danger:hover {
    background: #ffcdd2;
}

.dark-mode #sim-booking-details-modal .modal-actions .btn-secondary {
    background: #1a3a5c;
    color: #90caf9;
}

.dark-mode #sim-booking-details-modal .modal-actions .btn-danger {
    background: #3d1a1a;
    color: #ef9a9a;
}

/* Search */
.sim-search {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
    background: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.dark-mode .sim-search {
    background: #3a3a3a;
    border-color: #555;
    color: #e0e0e0;
}

/* Commission Summary */
.sim-commission-summary {
    display: flex;
    gap: 30px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 20px;
}

.dark-mode .sim-commission-summary {
    background: #2a2a2a;
}

.sim-comm-stat {
    text-align: center;
}

.sim-comm-label {
    display: block;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.sim-comm-value {
    font-size: 24px;
    font-weight: 700;
    color: #2e7d32;
}

.sim-commission-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

/* Date Range */
.sim-date-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sim-date-range label {
    font-size: 13px;
    color: #666;
}

/* Devices Grid */
.sim-devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.sim-device-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
}

.dark-mode .sim-device-card {
    background: #2d2d2d;
}

.sim-device-status {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.sim-device-status.online {
    background: #4caf50;
    box-shadow: 0 0 8px #4caf50;
}

.sim-device-status.offline {
    background: #f44336;
}

.sim-device-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.sim-device-bay {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.sim-device-info {
    font-size: 12px;
    color: #999;
}

/* Detail Panel */
.sim-detail-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    margin: 20px auto;
}

.dark-mode .sim-detail-panel {
    background: #2d2d2d;
}

.sim-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.dark-mode .sim-detail-header {
    border-bottom-color: #404040;
}

.sim-detail-header h4 {
    margin: 0;
}

.sim-detail-body {
    padding: 20px;
}

/* Registration Code */
.sim-registration-code {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #f5f5f5;
    border-radius: 8px;
    margin: 15px 0;
}

.dark-mode .sim-registration-code {
    background: #3a3a3a;
}

.sim-registration-code span {
    font-family: monospace;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 3px;
}

/* Price Display */
.sim-price-display {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    background: #e8f5e9;
    border-radius: 8px;
}

.dark-mode .sim-price-display {
    background: #1b5e20;
}

#sim-booking-price-display {
    font-size: 24px;
    font-weight: 700;
    color: #2e7d32;
}

.dark-mode #sim-booking-price-display {
    color: #81c784;
}

/* Modal Large */
.modal-large {
    max-width: 700px;
}

/* Loading Text */
.sim-loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* ============================================
   PAYMENT SPLITS STYLES
   ============================================ */

.splits-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.splits-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.tier-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: capitalize;
}

.tier-badge.tier-basic {
    background: #e0e0e0;
    color: #666;
}

.tier-badge.tier-pro {
    background: #e3f2fd;
    color: #1565c0;
}

.tier-badge.tier-enterprise {
    background: #fce4ec;
    color: #c2185b;
}

.splits-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.toggle-label {
    font-weight: 500;
}

.toggle-help {
    font-size: 0.85rem;
    color: #888;
}

.splits-description {
    color: #666;
    margin-bottom: 25px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--brand-primary);
}

.dark-mode .splits-description {
    background: #2a2a2a;
    color: #aaa;
}

.recipients-section {
    margin-bottom: 30px;
}

.recipients-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.recipients-header h4 {
    margin: 0;
}

.total-percent {
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
}

.total-percent.valid {
    background: #e8f5e9;
    color: #2e7d32;
}

.total-percent.invalid {
    background: #ffebee;
    color: #c62828;
}

.recipients-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.recipient-card {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 15px;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: box-shadow 0.2s;
}

.recipient-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dark-mode .recipient-card {
    background: #2a2a2a;
    border-color: #444;
}

.recipient-card.inactive {
    opacity: 0.6;
}

.recipient-info {
    min-width: 200px;
}

.recipient-name {
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.primary-badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    background: var(--brand-primary);
    color: white;
    border-radius: 3px;
    text-transform: uppercase;
}

.recipient-email {
    font-size: 0.9rem;
    color: #666;
}

.dark-mode .recipient-email {
    color: #aaa;
}

.recipient-desc {
    font-size: 0.85rem;
    color: #888;
    margin-top: 4px;
}

.recipient-status {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.status-indicator {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-indicator.status-active {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-indicator.status-pending {
    background: #fff3e0;
    color: #e65100;
}

.recipient-split {
    display: flex;
    align-items: center;
    gap: 5px;
}

.split-input {
    width: 70px;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    text-align: right;
}

.dark-mode .split-input {
    background: #333;
    border-color: #555;
    color: white;
}

.recipient-actions {
    min-width: 40px;
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #c82333;
}

.splits-info {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 30px;
}

.dark-mode .splits-info {
    background: #2a2a2a;
}

.splits-info h4 {
    margin-top: 0;
    margin-bottom: 12px;
}

.splits-info ul {
    margin: 0;
    padding-left: 20px;
    color: #666;
}

.dark-mode .splits-info ul {
    color: #aaa;
}

.splits-info li {
    margin-bottom: 6px;
}

/* Upgrade Required */
.upgrade-required {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #f8f9fa, #e8eaf6);
    border-radius: 12px;
}

.dark-mode .upgrade-required {
    background: linear-gradient(135deg, #2a2a2a, #1a237e40);
}

.upgrade-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.upgrade-required h3 {
    margin-bottom: 15px;
    color: #333;
}

.dark-mode .upgrade-required h3 {
    color: #eee;
}

.upgrade-required p {
    color: #666;
    margin-bottom: 10px;
}

.dark-mode .upgrade-required p {
    color: #aaa;
}

/* Transaction History */
.transactions-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.dark-mode .transactions-section {
    border-color: #444;
}

.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.transaction-item {
    display: grid;
    grid-template-columns: 120px 100px 100px 1fr;
    gap: 15px;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.dark-mode .transaction-item {
    background: #2a2a2a;
    border-color: #444;
}

.transaction-amount {
    font-weight: 600;
}

.transaction-status {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    text-transform: capitalize;
}

.transaction-status.status-completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.transaction-status.status-pending {
    background: #fff3e0;
    color: #e65100;
}

.transaction-status.status-failed {
    background: #ffebee;
    color: #c62828;
}

.transaction-splits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.split-detail {
    font-size: 0.85rem;
    padding: 2px 8px;
    background: #f0f0f0;
    border-radius: 4px;
}

.dark-mode .split-detail {
    background: #444;
}

/* Link Box in Modal */
.link-box {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.link-box input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.link-note {
    font-size: 0.85rem;
    color: #888;
}

/* Modal Info */
.modal-info {
    padding: 12px 15px;
    background: #e3f2fd;
    border-radius: 6px;
    margin: 15px 0;
    font-size: 0.9rem;
}

.dark-mode .modal-info {
    background: #1565c030;
}

/* Input with Suffix */
.input-with-suffix {
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-with-suffix input {
    flex: 1;
}

.input-with-suffix span {
    font-weight: 500;
    color: #666;
}

.input-with-suffix .input-prefix {
    order: -1;
}

/* Deposit Settings Panel */
.deposit-settings-panel {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.dark-mode .deposit-settings-panel {
    background: #2d2d2d;
    border-color: #404040;
}

.deposit-settings-panel .form-group {
    margin-bottom: 15px;
}

.deposit-settings-panel .form-group:last-child {
    margin-bottom: 0;
}

.tiered-rule-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.tiered-rule-row input {
    text-align: center;
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: 20px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* Responsive adjustments for payment splits */
@media (max-width: 768px) {
    .recipient-card {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .recipient-status,
    .recipient-split,
    .recipient-actions {
        justify-self: start;
    }
    
    .transaction-item {
        grid-template-columns: 1fr 1fr;
    }
    
    .transaction-splits {
        grid-column: span 2;
    }
}

.loading-text {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* ============================
   KIOSK SETUP GUIDE STYLES
   ============================ */

.setup-guide-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.dark-mode .setup-guide-section {
    background: #2a2a2a;
    border-color: #444;
}

.setup-guide-section h4 {
    margin: 0 0 16px 0;
    font-size: 18px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dark-mode .setup-guide-section h4 {
    color: #fff;
}

.setup-guide-section.warning-section {
    border-color: #ff9800;
    background: #fff8e1;
}

.dark-mode .setup-guide-section.warning-section {
    background: #3d3520;
    border-color: #ff9800;
}

.warning-text {
    color: #e65100;
    font-weight: 500;
}

.dark-mode .warning-text {
    color: #ffb74d;
}

/* Setup Steps */
.setup-steps {
    list-style: none;
    padding: 0;
    counter-reset: step;
}

.setup-steps li {
    position: relative;
    padding: 16px 16px 16px 60px;
    margin-bottom: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    counter-increment: step;
}

.dark-mode .setup-steps li {
    background: #333;
}

.setup-steps li::before {
    content: counter(step);
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: #2e7d32;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.setup-steps li strong {
    display: block;
    margin-bottom: 4px;
}

.setup-steps li p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.dark-mode .setup-steps li p {
    color: #aaa;
}

.setup-steps li code {
    background: #e8e8e8;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

.dark-mode .setup-steps li code {
    background: #444;
}

/* Emergency Methods */
.emergency-methods {
    display: grid;
    gap: 16px;
}

.emergency-method {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 16px;
    border-left: 4px solid #2e7d32;
}

.dark-mode .emergency-method {
    background: #333;
}

.emergency-method h5 {
    margin: 0 0 8px 0;
    color: #2e7d32;
    font-size: 15px;
}

.dark-mode .emergency-method h5 {
    color: #66bb6a;
}

.emergency-method p {
    margin: 0 0 8px 0;
    font-size: 14px;
}

.emergency-method ul {
    margin: 8px 0;
    padding-left: 20px;
}

.emergency-method li {
    font-size: 14px;
    margin-bottom: 4px;
}

.emergency-method .note {
    font-size: 13px;
    color: #666;
    font-style: italic;
    margin-top: 8px;
}

.dark-mode .emergency-method .note {
    color: #999;
}

.emergency-method code {
    background: #e0e0e0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: inline-block;
    word-break: break-all;
}

.dark-mode .emergency-method code {
    background: #444;
}

/* Keyboard keys styling */
kbd {
    display: inline-block;
    padding: 3px 8px;
    font-size: 13px;
    font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, monospace;
    line-height: 1.4;
    color: #333;
    background: linear-gradient(180deg, #fff, #e0e0e0);
    border: 1px solid #b4b4b4;
    border-radius: 6px;
    box-shadow: inset 0 -2px 0 #b4b4b4;
}

.dark-mode kbd {
    background: linear-gradient(180deg, #444, #333);
    border-color: #555;
    color: #fff;
    box-shadow: inset 0 -2px 0 #222;
}

/* Settings Table */
.settings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.settings-table th,
.settings-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.dark-mode .settings-table th,
.dark-mode .settings-table td {
    border-color: #444;
}

.settings-table th {
    background: #f5f5f5;
    font-weight: 600;
}

.dark-mode .settings-table th {
    background: #333;
}

.settings-table .highlight-row {
    background: #e8f5e9;
}

.dark-mode .settings-table .highlight-row {
    background: #1b3d1f;
}

/* Advanced Security Details */
.advanced-security details {
    margin-bottom: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.dark-mode .advanced-security details {
    border-color: #444;
}

.advanced-security summary {
    padding: 12px 16px;
    cursor: pointer;
    background: #f9f9f9;
    font-size: 14px;
}

.dark-mode .advanced-security summary {
    background: #333;
}

.advanced-security summary:hover {
    background: #f0f0f0;
}

.dark-mode .advanced-security summary:hover {
    background: #3a3a3a;
}

.advanced-security .details-content {
    padding: 16px;
    font-size: 14px;
}

.advanced-security .details-content ul {
    margin: 8px 0;
    padding-left: 20px;
}

.advanced-security .details-content li {
    margin-bottom: 4px;
}

.advanced-security .details-content code {
    background: #e8e8e8;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.dark-mode .advanced-security .details-content code {
    background: #444;
}

/* Testing Tips */
.testing-tips {
    display: grid;
    gap: 12px;
}

.testing-tips .tip {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 8px;
    align-items: flex-start;
}

.dark-mode .testing-tips .tip {
    background: #333;
}

.testing-tips .tip-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.testing-tips .tip strong {
    display: block;
    margin-bottom: 4px;
}

.testing-tips .tip p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.dark-mode .testing-tips .tip p {
    color: #aaa;
}

.testing-tips .tip code {
    background: #e8e8e8;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

.dark-mode .testing-tips .tip code {
    background: #444;
}

/* Config Example */
.config-example {
    background: #263238;
    color: #aed581;
    padding: 16px;
    border-radius: 8px;
    font-size: 13px;
    overflow-x: auto;
    margin: 12px 0;
}

/* Kiosk Settings Form */
.kiosk-settings-form {
    max-width: 500px;
}

.kiosk-settings-form .form-group {
    margin-bottom: 16px;
}

.kiosk-settings-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.kiosk-settings-form .help-text {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.dark-mode .kiosk-settings-form .help-text {
    color: #999;
}

.input-with-button {
    display: flex;
    gap: 8px;
}

.input-with-button input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: monospace;
    text-transform: uppercase;
}

.dark-mode .input-with-button input {
    background: #333;
    border-color: #555;
    color: #fff;
}

.input-with-button .btn-secondary,
.input-with-button .btn-primary {
    white-space: nowrap;
}

/* ========================================
   BAY GROUPS ADMIN STYLES
   ======================================== */

.bay-groups-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding: 16px 0;
}

.bay-groups-container .sim-bay-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    cursor: default;
    text-align: left;
}

.dark-mode .bay-groups-container .sim-bay-card {
    background: #2d2d2d;
    border-color: #404040;
}

.bay-groups-container .sim-bay-card.inactive {
    opacity: 0.7;
}

.bay-groups-container .bay-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #1976d2 0%, #2196f3 100%);
    color: white;
}

.bay-groups-container .bay-card-header .bay-icon {
    font-size: 28px;
}

.bay-groups-container .bay-card-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    flex: 1;
}

.bay-groups-container .bay-card-header .status-badge.inactive {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.bay-groups-container .bay-card-body {
    padding: 16px;
}

.bay-groups-container .bay-description {
    color: #666;
    font-size: 14px;
    margin: 0 0 16px 0;
}

.dark-mode .bay-groups-container .bay-description {
    color: #aaa;
}

.bay-groups-container .bay-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.bay-groups-container .bay-detail {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.dark-mode .bay-groups-container .bay-detail {
    background: #363636;
}

.bay-groups-container .bay-detail .label {
    display: block;
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.bay-groups-container .bay-detail .value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.dark-mode .bay-groups-container .bay-detail .value {
    color: #e0e0e0;
}

.bay-groups-container .bay-assignments {
    background: #e3f2fd;
    border-radius: 8px;
    padding: 12px;
    font-size: 13px;
}

.dark-mode .bay-groups-container .bay-assignments {
    background: rgba(33, 150, 243, 0.15);
}

.bay-groups-container .bay-assignments .label {
    font-weight: 600;
    color: #1976d2;
}

.bay-groups-container .bay-assignments .bay-list {
    color: #555;
    margin-left: 4px;
}

.dark-mode .bay-groups-container .bay-assignments .bay-list {
    color: #bbb;
}

.bay-groups-container .bay-card-actions {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.dark-mode .bay-groups-container .bay-card-actions {
    background: #252525;
    border-top-color: #404040;
}

.bay-groups-container .bay-card-actions .btn {
    flex: 1;
}

/* Bay Group Modal Styles */
.bay-group-modal .checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.dark-mode .bay-group-modal .checkbox-group {
    background: #2d2d2d;
    border-color: #444;
}

.bay-group-modal .checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.2s;
}

.dark-mode .bay-group-modal .checkbox-item {
    background: #3a3a3a;
    border-color: #555;
}

.bay-group-modal .checkbox-item:hover {
    background: #e3f2fd;
    border-color: #2196f3;
}

.dark-mode .bay-group-modal .checkbox-item:hover {
    background: rgba(33, 150, 243, 0.15);
    border-color: #2196f3;
}

.bay-group-modal .checkbox-item input[type="checkbox"] {
    margin: 0;
}

.bay-group-modal .assigned-badge {
    display: inline-block;
    font-size: 10px;
    color: #f57c00;
    margin-left: 4px;
    font-weight: 500;
}

/* Bay Group Settings Form */
.bay-group-settings-card {
    max-width: 600px;
}

.bay-group-settings-card .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.bay-group-settings-card .checkbox-row {
    display: flex;
    gap: 24px;
    margin-top: 16px;
}

.bay-group-settings-card .checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.bay-group-settings-card .checkbox-label input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
}

/* Empty State for Bay Groups */
.bay-groups-container .empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #ddd;
}

.dark-mode .bay-groups-container .empty-state {
    background: #2d2d2d;
    border-color: #444;
}

.bay-groups-container .empty-state p {
    margin: 0 0 12px 0;
    color: #666;
}

.dark-mode .bay-groups-container .empty-state p {
    color: #aaa;
}

.bay-groups-container .empty-state p:first-child {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.dark-mode .bay-groups-container .empty-state p:first-child {
    color: #e0e0e0;
}


/* ========================================== */
/* TIERED PRICING STYLES */
/* ========================================== */

.tp-settings-card {
    margin-bottom: 20px;
}

.tp-notice {
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.tp-notice-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

.dark-mode .tp-notice-warning {
    background: #3d3420;
    border-color: #ffc107;
    color: #ffc107;
}

.tp-notice p {
    margin: 0 0 8px 0;
}

.tp-notice p:last-child {
    margin-bottom: 0;
}

/* Calculator Card */
.tp-calculator-card {
    margin-bottom: 24px;
}

.tp-calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    align-items: end;
}

.tp-calc-result-group {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.tp-calc-result-group label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
}

.tp-calc-result {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.tp-calc-result .calc-total {
    font-size: 28px;
}

.tp-calc-result .calc-error {
    font-size: 14px;
    color: #ffcccc;
}

.tp-calc-breakdown {
    margin-top: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.dark-mode .tp-calc-breakdown {
    background: #2d2d2d;
    border-color: #444;
}

.calc-breakdown-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}

.dark-mode .calc-breakdown-header {
    border-color: #444;
}

.calc-breakdown-header .rule-name {
    font-weight: 600;
    color: #2196f3;
}

.calc-line-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.calc-line-items li {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 14px;
}

.calc-line-items .item-amount {
    font-weight: 500;
    color: #27ae60;
}

/* Pricing Rules Section */
.tp-section {
    margin-bottom: 32px;
}

.tp-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
}

.dark-mode .tp-section-header {
    border-color: #444;
}

.tp-section-header h4 {
    margin: 0;
    font-size: 18px;
}

.tp-rules-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tp-rules-list .empty-state {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #ddd;
}

.dark-mode .tp-rules-list .empty-state {
    background: #2d2d2d;
    border-color: #444;
}

/* Rule Card */
.tp-rule-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.tp-rule-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dark-mode .tp-rule-card {
    background: #2d2d2d;
    border-color: #444;
}

.tp-rule-card.inactive {
    opacity: 0.6;
}

.tp-rule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.dark-mode .tp-rule-header {
    background: #252525;
    border-color: #444;
}

.tp-rule-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tp-rule-title h4 {
    margin: 0;
    font-size: 16px;
}

.tp-rule-priority {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #2196f3;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
}

.tp-rule-actions {
    display: flex;
    gap: 8px;
}

.tp-rule-body {
    padding: 16px;
}

.tp-rule-desc {
    margin: 0 0 12px 0;
    color: #666;
    font-size: 14px;
}

.dark-mode .tp-rule-desc {
    color: #aaa;
}

.tp-rule-conditions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.condition-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 16px;
    font-size: 13px;
}

.dark-mode .condition-tag {
    background: #1a3a5c;
    color: #90caf9;
}

.tp-rule-pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.dark-mode .tp-rule-pricing {
    background: #252525;
}

.pricing-item {
    text-align: center;
}

.pricing-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.dark-mode .pricing-label {
    color: #aaa;
}

.pricing-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #27ae60;
}

/* Help Card */
.tp-help-card {
    background: #e8f4fd;
    border: 1px solid #90caf9;
}

.dark-mode .tp-help-card {
    background: #1a3a5c;
    border-color: #2196f3;
}

.tp-help-content {
    font-size: 14px;
    line-height: 1.6;
}

.tp-help-content ul {
    margin: 8px 0;
    padding-left: 24px;
}

.tp-help-content li {
    margin-bottom: 4px;
}

.tp-example-calc {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    font-family: monospace;
    font-size: 13px;
    white-space: pre-line;
    margin-top: 8px;
}

.dark-mode .tp-example-calc {
    background: #1e1e1e;
    border-color: #444;
}

/* Modal Form Sections */
.form-section {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
}

.dark-mode .form-section {
    border-color: #444;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h4 {
    margin: 0 0 16px 0;
    font-size: 15px;
    color: #666;
}

.dark-mode .form-section h4 {
    color: #aaa;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-group.flex-1 { flex: 1; }
.form-group.flex-2 { flex: 2; }
.form-group.third-width { flex: 1; min-width: 100px; }

/* Day Selection */
.tp-day-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.tp-day-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tp-day-cb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.tp-day-cb:hover {
    border-color: #2196f3;
}

.tp-day-cb input:checked + span,
.tp-day-cb:has(input:checked) {
    background: #2196f3;
    border-color: #2196f3;
    color: #fff;
}

.dark-mode .tp-day-cb {
    background: #2d2d2d;
    border-color: #444;
}

.toggle-label-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 28px;
    cursor: pointer;
}

.toggle-label-inline input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* Modal Large */
.modal-lg {
    max-width: 700px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

.dark-mode .modal-actions {
    border-color: #444;
}

/* Small buttons */
.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
}

/* Status badge for inactive */
.status-badge.inactive {
    background: #f44336;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

/* ========================================
   Bay Operating Hours
   ======================================== */

#sim-bay-operating-hours {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.operating-hours-day {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.dark-mode .operating-hours-day {
    background: #2a2a2a;
    border-color: #3a3a3a;
}

.operating-hours-day .day-label {
    min-width: 90px;
    font-weight: 500;
    font-size: 14px;
}

.operating-hours-day .hours-input {
    width: 120px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.dark-mode .operating-hours-day .hours-input {
    background: #333;
    border-color: #444;
    color: #fff;
}

.operating-hours-day .hours-separator {
    color: #666;
    font-size: 13px;
}

.dark-mode .operating-hours-day .hours-separator {
    color: #aaa;
}

/* Inline toggle for hours enable/disable */
.toggle-switch.inline-toggle {
    flex-shrink: 0;
}

.operating-hours-day input[type="checkbox"]:not(:checked) ~ .day-label,
.operating-hours-day:has(input[type="checkbox"]:not(:checked)) .day-label {
    color: #999;
    text-decoration: line-through;
}

.operating-hours-day:has(input[type="checkbox"]:not(:checked)) .hours-input {
    opacity: 0.5;
    pointer-events: none;
}

@media (max-width: 600px) {
    .operating-hours-day {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .operating-hours-day .day-label {
        min-width: 80px;
    }
    
    .operating-hours-day .hours-input {
        width: 100px;
    }
}

/* ============================================================
   Website Builder Styles
   ============================================================ */

/* Status Message */
.wb-status-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wb-status-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.wb-status-message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.wb-status-message.info {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
}

body.dark-mode .wb-status-message.success {
    background: #1b3a1e;
    color: #81c784;
    border-color: #2e7d32;
}

body.dark-mode .wb-status-message.error {
    background: #3a1a1a;
    color: #ef9a9a;
    border-color: #c62828;
}

body.dark-mode .wb-status-message.info {
    background: #1a2a3a;
    color: #90caf9;
    border-color: #1565c0;
}

/* Progress Bar */
.wb-progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 24px;
    padding: 16px 8px;
    background: #f8faf8;
    border-radius: 12px;
    border: 1px solid #e8efe8;
}

body.dark-mode .wb-progress-bar {
    background: #1a2332;
    border-color: #2a3a4a;
}

.wb-progress-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #999;
    border-radius: 20px;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.wb-progress-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.wb-progress-step.active {
    color: #3a6e35;
    font-weight: 600;
}

.wb-progress-step.active span {
    background: #3a6e35;
    color: #fff;
    box-shadow: 0 2px 8px rgba(58, 110, 53, 0.3);
}

.wb-progress-step.completed {
    color: #5a9e54;
}

.wb-progress-step.completed span {
    background: #5a9e54;
    color: #fff;
}

/* Connector line between steps */
.wb-progress-step + .wb-progress-step::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: #e0e0e0;
    margin-right: 4px;
    flex-shrink: 0;
}

.wb-progress-step.active + .wb-progress-step::before,
.wb-progress-step.completed + .wb-progress-step::before {
    background: #5a9e54;
}

body.dark-mode .wb-progress-step {
    color: #666;
}

body.dark-mode .wb-progress-step span {
    background: #333;
    color: #666;
}

body.dark-mode .wb-progress-step.active {
    color: #7bc67a;
}

body.dark-mode .wb-progress-step.active span {
    background: #3a6e35;
    color: #fff;
}

body.dark-mode .wb-progress-step + .wb-progress-step::before {
    background: #333;
}

/* Steps */
.wb-step {
    animation: wb-fadeIn 0.3s ease;
}

@keyframes wb-fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mode Selection Cards */
.wb-mode-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.wb-mode-card {
    border: 2px solid #e8efe8;
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #fcfdfc;
    position: relative;
}

.wb-mode-card:hover {
    border-color: #5a9e54;
    box-shadow: 0 8px 24px rgba(58, 110, 53, 0.12);
    transform: translateY(-3px);
}

.wb-mode-card.selected {
    border-color: #3a6e35;
    background: #f0f8ef;
    box-shadow: 0 4px 16px rgba(58, 110, 53, 0.15);
}

.wb-mode-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.wb-mode-card h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #2c4a28;
}

.wb-mode-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 12px 0;
}

.wb-mode-tag {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

body.dark-mode .wb-mode-card {
    border-color: #2a3a4a;
    background: #1a2332;
}

body.dark-mode .wb-mode-card:hover {
    border-color: #5a9e54;
    box-shadow: 0 8px 24px rgba(90, 158, 84, 0.15);
}

body.dark-mode .wb-mode-card.selected {
    border-color: #5a9e54;
    background: #1a3320;
}

body.dark-mode .wb-mode-card h4 {
    color: #c0d8bc;
}

body.dark-mode .wb-mode-card p {
    color: #999;
}

body.dark-mode .wb-mode-tag {
    background: #1a3320;
    color: #7bc67a;
}

/* Forms */
.wb-form .form-group {
    margin-bottom: 16px;
}

.wb-form label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

body.dark-mode .wb-form label {
    color: #ccc;
}

/* Form Grid (2-column) */
.wb-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.wb-form-grid .form-group {
    margin-bottom: 0;
}

.wb-form-grid small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #888;
}

/* Checkbox Grid */
.wb-checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.wb-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background 0.15s;
}

.wb-checkbox:hover {
    background: #f0f8ef;
}

.wb-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3a6e35;
}

body.dark-mode .wb-checkbox:hover {
    background: #1a3320;
}

/* Required marker */
.wb-required {
    color: #e53935;
    font-weight: 700;
}

/* Info / Hint text */
.wb-info {
    font-size: 14px;
    color: #666;
    background: #f8faf8;
    padding: 10px 14px;
    border-radius: 8px;
    border-left: 3px solid #5a9e54;
    margin-bottom: 16px;
}

body.dark-mode .wb-info {
    background: #1a2a1e;
    color: #aaa;
    border-left-color: #3a6e35;
}

.wb-hint {
    font-size: 13px;
    color: #888;
    font-style: italic;
    margin-top: 8px;
}

body.dark-mode .wb-hint {
    color: #666;
}

/* Section Navigation (questionnaire tabs) */
.wb-section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
    padding: 10px;
    background: #f5f7f5;
    border-radius: 10px;
}

body.dark-mode .wb-section-nav {
    background: #1a2332;
}

.wb-section-nav button {
    background: transparent;
    border: 1px solid transparent;
    color: #666;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.wb-section-nav button:hover {
    background: #e8efe8;
    color: #3a6e35;
}

.wb-section-nav button.active {
    background: #3a6e35;
    color: #fff;
    font-weight: 600;
    border-color: #3a6e35;
}

.wb-section-nav button.completed::after {
    content: ' ✓';
    color: #5a9e54;
    font-weight: 700;
}

.wb-section-nav button.active.completed::after {
    color: #c8e6c9;
}

body.dark-mode .wb-section-nav button {
    color: #888;
}

body.dark-mode .wb-section-nav button:hover {
    background: #2a3a2e;
    color: #7bc67a;
}

body.dark-mode .wb-section-nav button.active {
    background: #3a6e35;
    color: #fff;
}

/* Questionnaire Sections */
.wb-questionnaire-section h4 {
    font-size: 16px;
    color: #2c4a28;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8f5e9;
}

body.dark-mode .wb-questionnaire-section h4 {
    color: #7bc67a;
    border-bottom-color: #2a3a2e;
}

/* Questionnaire Action Buttons */
.wb-questionnaire-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

body.dark-mode .wb-questionnaire-actions {
    border-top-color: #333;
}

/* Loading Spinner */
.wb-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e8efe8;
    border-top-color: #3a6e35;
    border-radius: 50%;
    animation: wb-spin 0.8s linear infinite;
    margin: 20px auto;
}

@keyframes wb-spin {
    to { transform: rotate(360deg); }
}

body.dark-mode .wb-loading-spinner {
    border-color: #2a3a2e;
    border-top-color: #5a9e54;
}

/* Template Grid */
.wb-template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.wb-template-card {
    border: 2px solid #e8efe8;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #fff;
}

.wb-template-card:hover {
    border-color: #5a9e54;
    box-shadow: 0 8px 24px rgba(58, 110, 53, 0.12);
    transform: translateY(-2px);
}

.wb-template-card.selected {
    border-color: #3a6e35;
    box-shadow: 0 4px 16px rgba(58, 110, 53, 0.2);
}

.wb-template-card.selected::after {
    content: '✓ Selected';
    position: absolute;
    top: 12px;
    right: 12px;
    background: #3a6e35;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.wb-template-card {
    position: relative;
}

.wb-template-preview {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 50%, #a5d6a7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.wb-template-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wb-template-info {
    padding: 16px;
}

.wb-template-info h5 {
    margin: 0 0 4px 0;
    font-size: 15px;
    color: #333;
}

.wb-template-info p {
    margin: 0;
    font-size: 13px;
    color: #888;
}

body.dark-mode .wb-template-card {
    background: #1a2332;
    border-color: #2a3a4a;
}

body.dark-mode .wb-template-card:hover {
    border-color: #5a9e54;
}

body.dark-mode .wb-template-card.selected {
    border-color: #3a6e35;
    background: #1a3320;
}

body.dark-mode .wb-template-info h5 {
    color: #ddd;
}

body.dark-mode .wb-template-info p {
    color: #888;
}

/* Template Actions */
.wb-template-actions {
    text-align: center;
    padding-top: 16px;
}

/* Preview & Published Pages List */
.wb-pages-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.wb-page-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8faf8;
    border-radius: 8px;
    border: 1px solid #e8efe8;
}

.wb-page-item .page-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.wb-page-item .page-actions a {
    color: #3a6e35;
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
}

.wb-page-item .page-actions a:hover {
    text-decoration: underline;
}

body.dark-mode .wb-page-item {
    background: #1a2332;
    border-color: #2a3a4a;
}

body.dark-mode .wb-page-item .page-name {
    color: #ddd;
}

body.dark-mode .wb-page-item .page-actions a {
    color: #7bc67a;
}

/* Preview & Published Action Groups */
.wb-preview-actions,
.wb-published-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 16px;
}

/* Asset Gallery */
.wb-asset-gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 0 8px;
}

.wb-asset-gallery-header h5 {
    margin: 0;
    font-size: 14px;
    color: #555;
}

.wb-asset-gallery-header span {
    font-weight: 400;
    color: #888;
}

body.dark-mode .wb-asset-gallery-header h5 {
    color: #ccc;
}

.wb-asset-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.wb-asset-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e8efe8;
    aspect-ratio: 1;
    background: #f5f5f5;
}

.wb-asset-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wb-asset-item .asset-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    padding: 8px;
    font-size: 11px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.2s;
}

.wb-asset-item:hover .asset-overlay {
    opacity: 1;
}

.wb-asset-item .asset-delete {
    background: #e53935;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 11px;
    cursor: pointer;
}

.wb-asset-item .asset-delete:hover {
    background: #c62828;
}

body.dark-mode .wb-asset-item {
    border-color: #2a3a4a;
    background: #1a2332;
}

.wb-empty {
    color: #999;
    font-style: italic;
    padding: 20px;
    text-align: center;
    font-size: 14px;
}

body.dark-mode .wb-empty {
    color: #666;
}

/* Upload Area */
.wb-upload-area {
    border: 2px dashed #d0ddd0;
    border-radius: 10px;
    padding: 16px;
    background: #fafcfa;
    margin-bottom: 8px;
}

body.dark-mode .wb-upload-area {
    border-color: #2a3a2e;
    background: #1a2a1e;
}

/* AI Chat Editor */
.wb-edit-chat {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: #fafcfa;
    border: 1px solid #e8efe8;
    border-radius: 10px;
    margin-bottom: 12px;
}

body.dark-mode .wb-edit-chat {
    background: #111a22;
    border-color: #2a3a4a;
}

.wb-chat-message {
    display: flex;
    max-width: 85%;
}

.wb-chat-message.wb-chat-user {
    align-self: flex-end;
}

.wb-chat-message.wb-chat-assistant {
    align-self: flex-start;
}

.wb-chat-bubble {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.wb-chat-user .wb-chat-bubble {
    background: #3a6e35;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.wb-chat-assistant .wb-chat-bubble {
    background: #e8efe8;
    color: #333;
    border-bottom-left-radius: 4px;
}

body.dark-mode .wb-chat-assistant .wb-chat-bubble {
    background: #1a2a1e;
    color: #ccc;
}

.wb-chat-role {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    opacity: 0.7;
}

.wb-chat-bubble p {
    margin: 4px 0;
}

/* Edit Form (chat input) */
.wb-edit-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.wb-edit-form input[type="text"] {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.wb-edit-form button {
    flex-shrink: 0;
    padding: 10px 20px;
}

body.dark-mode .wb-edit-form input[type="text"] {
    background: #1a2332;
    color: #eee;
    border-color: #2a3a4a;
}

/* Website Builder responsive */
@media (max-width: 768px) {
    .wb-mode-cards {
        grid-template-columns: 1fr;
    }

    .wb-form-grid {
        grid-template-columns: 1fr;
    }

    .wb-checkbox-grid {
        grid-template-columns: 1fr 1fr;
    }

    .wb-progress-bar {
        flex-wrap: wrap;
        gap: 2px;
    }

    .wb-progress-step {
        font-size: 12px;
        padding: 6px 10px;
    }

    .wb-progress-step + .wb-progress-step::before {
        display: none;
    }

    .wb-template-grid {
        grid-template-columns: 1fr;
    }

    .wb-asset-gallery {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .wb-chat-message {
        max-width: 95%;
    }

    .wb-edit-form {
        flex-direction: column;
    }

    .wb-edit-form input[type="text"],
    .wb-edit-form button {
        width: 100%;
    }

    .wb-questionnaire-actions {
        flex-direction: column;
        gap: 10px;
    }

    .wb-questionnaire-actions button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .wb-checkbox-grid {
        grid-template-columns: 1fr;
    }

    .wb-mode-card {
        padding: 20px 16px;
    }

    .wb-mode-icon {
        font-size: 32px;
    }
}

/* ═══════════════════════════════════════════════════════════ */
/* Notification Recipients Settings                          */
/* ═══════════════════════════════════════════════════════════ */

#notification-recipients-table {
    width: 100%;
    border-collapse: collapse;
}

#notification-recipients-table th {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid #e0e0e0;
    font-size: 13px;
    color: #555;
    font-weight: 600;
}

#notification-recipients-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.recipient-row:hover {
    background: #f8f9fa;
}

.recipient-clickable {
    cursor: pointer;
}

.recipient-actions-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1;
}

.btn-danger-icon:hover {
    background: #fee;
}

.text-muted {
    color: #aaa;
}

/* Schedule badges */
.schedule-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.schedule-anytime {
    background: #e8f5e9;
    color: #2e7d32;
}

.schedule-none {
    background: #fff3e0;
    color: #e65100;
}

.schedule-custom {
    background: #e3f2fd;
    color: #1565c0;
}

/* ── Schedule grid in modal ── */
.notification-schedule-grid {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.schedule-row-header {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #f5f5f5;
    font-weight: 600;
    font-size: 12px;
    color: #666;
    border-bottom: 1px solid #e0e0e0;
}

.schedule-row {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.schedule-row:last-child {
    border-bottom: none;
}

.schedule-row:hover {
    background: #fafafa;
}

.schedule-row-disabled {
    opacity: 0.45;
}

.schedule-row-disabled .schedule-start-time,
.schedule-row-disabled .schedule-end-time {
    background: #f0f0f0;
}

.schedule-col-day {
    flex: 0 0 110px;
    font-weight: 500;
    font-size: 14px;
}

.schedule-col-toggle {
    flex: 0 0 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.schedule-col-time {
    flex: 1;
    padding: 0 6px;
}

.schedule-col-time input[type="time"] {
    width: 100%;
    padding: 5px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.schedule-col-time input[type="time"]:disabled {
    background: #f0f0f0;
    color: #999;
    cursor: not-allowed;
}

/* ── Notification modal overrides ── */
#notification-recipient-modal .modal-header,
#notification-delete-confirm-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    margin-bottom: 16px;
}

#notification-recipient-modal .modal-header h4,
#notification-delete-confirm-modal .modal-header h4 {
    margin: 0;
}

#notification-recipient-modal .modal-footer,
#notification-delete-confirm-modal .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    margin-top: 8px;
}

@media (max-width: 640px) {
    .schedule-col-day {
        flex: 0 0 70px;
        font-size: 12px;
    }
    .schedule-col-toggle {
        flex: 0 0 50px;
    }
    #notification-recipient-modal .modal-content {
        max-width: 95vw;
        margin: 10px;
    }
}

/* ============================================
   ANIMATIONS & MICRO-INTERACTIONS
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
    0% { transform: scale(0.95); }
    40% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

@keyframes drawCheck {
    to { stroke-dashoffset: 0; }
}

/* Staggered entrance for main cards */
.calendar-container { animation: fadeInUp 0.5s ease-out forwards; }
.time-slots-container { animation: fadeInUp 0.5s ease-out 0.1s forwards; opacity: 0; }
.booking-form-container { animation: fadeInUp 0.5s ease-out 0.2s forwards; opacity: 0; }

/* Confirmation Checkmark Animation */
.confirmation-icon svg polyline,
.confirmation-icon svg path {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: drawCheck 0.6s ease-out 0.3s forwards;
}


/* ============================================
   FULL PAGE LOADING OVERLAY
   ============================================ */
.page-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.page-loading-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loading-logo {
    max-width: 200px;
    height: auto;
    animation: pulse 2s infinite ease-in-out;
}

.page-loading-overlay .loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(58, 110, 53, 0.2);
    border-top-color: #3a6e35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

