﻿/* ========================================
   BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overscroll-behavior: none;  /* Prevent iOS rubber-band bounce on the root */
    height: 100%;
}

:root {
    /* Brand Colors (matching v1 screenshots) */
    --brand-green: #27ae60;
    --brand-blue: #3b82f6;
    --brand-orange: #f59e0b;
    --brand-red: #ef4444;
    
    /* Primary colors updated to match v1 */
    --primary: #3b82f6;
    --secondary: #f59e0b;
    
    /* Light Mode Colors */
    --bg-primary-light: #ffffff;
    --bg-secondary-light: #f8fafc;
    --bg-card-light: #f8fafc;
    --text-primary-light: #1e293b;
    --text-primary-light-02: rgba(30, 41, 59, 0.2);
    --text-primary-light-04: rgba(30, 41, 59, 0.4);
    --text-primary-light-06: rgba(30, 41, 59, 0.6);
    --text-primary-light-08: rgba(30, 41, 59, 0.8);
    --text-secondary-light: #64748b;
    --border-light: #e2e8f0;
    
    /* Dark Mode Colors */
    --bg-primary-dark: #0f172a;
    --bg-secondary-dark: #1e293b;
    --bg-card-dark: #1e293b;
    --text-primary-dark: #f1f5f9;
    --text-primary-dark-02: rgba(241, 245, 249, 0.2);
    --text-primary-dark-04: rgba(241, 245, 249, 0.4);
    --text-primary-dark-06: rgba(241, 245, 249, 0.6);
    --text-primary-dark-08: rgba(241, 245, 249, 0.8);
    --text-secondary-dark: #94a3b8;
    --border-dark: #334155;
    
    /* Backwards compatibility */
    --white: #ffffff;
    --gray: #666666;
    --gray-light: #cccccc;
    --gray-lighter: #f5f5f5;
    
    /* Spacing */
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 28px;
    --space-8: 32px;
	--space-10: 40px;
    
    /* Typography */
    --text-xs: 0.875rem;
    --text-sm: 1rem;
    --text-base: 1.25rem;
    --text-lg: 1.25rem;
    --text-xl: 1.5rem;
    --text-2xl: 1.875rem;
    --text-3xl: 2rem;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* ===== iOS PWA OVERSCROLL FIX =====
   iOS Safari ignores overscroll-behavior on the document.
   When running as an installed PWA (standalone), lock body to viewport
   so the rubber-band bounce cannot shift content off-screen.
   #app uses height:100% instead of min-height:100vh so it never
   exceeds the fixed body and creates scrollable overflow. */
@media (display-mode: standalone) {
    html, body {
        position: fixed;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
    #app {
        height: 100%;
        min-height: unset;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Default to Light Mode */
body {
    overscroll-behavior: none;  /* Works on Android; iOS handled above */
    /* touch-action: manipulation disables the iOS double-tap-to-zoom gesture
       while still allowing panning and pinch-to-zoom on individual elements
       that opt in (e.g. the hole map). Eliminates the "accidentally zoomed
       the whole app" trap when a user double-taps a button. */
    touch-action: manipulation;
    height: 100%;
    --bg-primary: var(--bg-primary-light);
    --bg-secondary: var(--bg-secondary-light);
    --bg-card: var(--bg-card-light);
    --text-primary: var(--text-primary-light);
	--text-primary-02: var(--text-primary-light-02);
	--text-primary-04: var(--text-primary-light-04);	
	--text-primary-06: var(--text-primary-light-06);
	--text-primary-08: var(--text-primary-light-08);
	--text-secondary: var(--text-secondary-light);
    --border-color: var(--border-light);
    
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.2s, color 0.2s;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

/* Dark Mode */
body.dark-mode {
    --bg-primary: var(--bg-primary-dark);
    --bg-secondary: var(--bg-secondary-dark);
    --bg-card: var(--bg-card-dark);
    --text-primary: var(--text-primary-dark);
	--text-primary-02: var(--text-primary-dark-02);
	--text-primary-04: var(--text-primary-dark-04);
	--text-primary-06: var(--text-primary-dark-06);
	--text-primary-08: var(--text-primary-dark-08);
    --text-secondary: var(--text-secondary-dark);
    --border-color: var(--border-dark);
}

#app {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    height: 100%;
    display: flex;
    flex-direction: column;
    overscroll-behavior: none;
}

/* ========================================
   HEADER
   ======================================== */
header {
    /*background: var(--bg-card);
    border-bottom: 2px solid var(--border-color);*/
    padding: var(--space-2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 0;
    transition: background-color 0.2s, border-color 0.2s;
}

.header-brand {
    display: flex;
    align-items: center;
}

.header-brand img {
    display: block;
    transition: opacity 0.2s;
}

.theme-toggle {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-2);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
    /*font-size: var(--text-sm);*/
    font-weight: 600;
    transition: all 0.15s;
}

.theme-toggle:hover {
    background-color: var(--bg-secondary);
}

.theme-icon {
    font-size: var(--text-sm);
}

main {
    flex: 1;
    /*padding: var(--space-2);*/
}

/* ========================================
   MODAL SYSTEM
   ======================================== */
.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: 1000;
    padding: calc(var(--space-4) + env(safe-area-inset-top, 0px)) var(--space-4) calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
}

.modal-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.2);
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
    width: 100%;
    animation: modalEnter 0.2s ease-out;
}

.modal-small {
    max-width: 400px;
}

.modal-medium {
    max-width: 600px;
}

.modal-large {
    max-width: 800px;
}

@keyframes modalEnter {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    font-size: var(--text-xl);
    color: var(--primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    line-height: 1;
}

.modal-close:hover {
    background: var(--bg-secondary);
}

.modal-body {
    padding: var(--space-6);
}

.modal-footer {
    display: flex;
    gap: var(--space-4);
    justify-content: flex-end;
    padding: var(--space-6);
    border-top: 1px solid var(--border-color);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    padding: 12px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 40px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--primary);
}

.btn-success {
    background: var(--brand-green);
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: var(--brand-red);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-warning {
    background: var(--brand-orange);
    color: white;
}

.btn-warning:hover {
    background: #d97706;
}

.btn-warning:active {
    background: #b45309;
}

.btn-my-bag {
    background: var(--brand-orange);
    color: white;
    font-weight: 600;
    margin-bottom: 12px;
}

.btn-my-bag:hover {
    background: #ea580c;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(249, 115, 22, 0.3);
}

.btn-large {
    padding: 16px 32px;
    font-size: 20px;
}

.btn-block {
    width: 100%;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================
   FORMS
   ======================================== */
.form-group {
    margin-bottom: var(--space-4);
}

label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    font-size: var(--text-sm);
    margin-bottom: var(--space-2);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: var(--space-4);
    color: var(--text-secondary);
    font-size: var(--text-lg);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: var(--space-2);
    /*padding-left: calc(var(--space-4) * 3);*/
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--text-base);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: all 0.15s;
	padding-left: 16px;
}


input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--bg-card);
}

input::placeholder {
    color: var(--text-secondary);
}

/* ========================================
   LOGIN VIEW
   ======================================== */
.login-view {
    max-width: 400px;
    margin: 0 auto;
    padding: var(--space-8) var(--space-4);
}

.welcome-section {
    text-align: center;
    margin-bottom: var(--space-10);
}

.welcome-section h1 {
    font-size: var(--text-2xl);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.welcome-text {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.6;
}

.sponsor-section {
    background-color: var(--bg-card-dark);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    text-align: center;
    margin-bottom: var(--space-3);
}

.sponsor-label {
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-bottom: var(--space-4);
}

.sponsor-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.sponsor-image {
    max-width: 200px;
    height: auto;
    opacity: 0.9;
}

.login-form-card {
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-4);
}

.login-links {
    text-align: center;
    margin-top: var(--space-2);
    font-size: var(--text-sm);
}

.login-links .text-secondary {
    color: var(--text-secondary);
    margin-right: var(--space-2);
}

.link-primary {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.link-primary:hover {
    text-decoration: underline;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: var(--space-4);
}

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

.loading-overlay p {
    color: white;
    font-size: var(--text-lg);
    font-weight: 600;
}

.error-message {
    background-color: rgba(239, 68, 68, 0.1);
    border: 2px solid var(--brand-red);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-top: var(--space-6);
    color: var(--brand-red);
    font-size: var(--text-sm);
    font-weight: 600;
    text-align: center;
}

.info-message {
    border: 2px solid var(--brand-green);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-top: var(--space-6);
    color: var(--brand-green);
    font-size: var(--text-sm);
    font-weight: 600;
    text-align: center;
}

/* ========================================
   WELCOME VIEW
   ======================================== */
.welcome-view {
    max-width: 480px;
    margin: 0 auto;
    padding: var(--space-4);
    text-align: center;
}

.success-icon-large {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-8);
    color: var(--brand-green);
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.welcome-message {
    margin-bottom: var(--space-8);
}

.welcome-message h1 {
    font-size: var(--text-2xl);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.welcome-subtitle {
    font-size: var(--text-base);
    color: var(--text-secondary);
}

.user-info {
    padding: var(--space-4) 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.info-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: var(--text-base);
}

.welcome-actions {
    margin: var(--space-8) 0;
}

.welcome-actions button {
    margin-bottom: var(--space-4);
}

.coming-soon-notice {
    background-color: rgba(59, 130, 246, 0.1);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-top: var(--space-8);
}

.coming-soon-notice p {
    color: var(--text-primary);
    font-size: var(--text-sm);
    line-height: 1.6;
    margin: 0;
}

.coming-soon-notice strong {
    color: var(--primary);
}

/* ========================================
   HOME VIEW (existing styles preserved)
   ======================================== */
.home-container {
    text-align: center;
    padding: var(--space-8) var(--space-4);
}

.home-welcome {
    margin-bottom: var(--space-6);
}

.stat-card {
    background: var(--bg-card);
    padding: var(--space-6);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--border-color);
}

.stat-value {
    font-size: var(--text-3xl);
    font-weight: bold;
    color: var(--primary);
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--gray);
    text-transform: uppercase;
}

/* ========================================
   UTILITIES
   ======================================== */
.hidden {
    display: none !important;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 640px) {
    .login-view,
    .welcome-view {
        padding: var(--space-4);
    }
    
    .sponsor-section,
    .login-form-card {
        padding: var(--space-4);
    }
}

/* ========================================
   WELCOME VIEW - STREAMLINED
   ======================================== */
.welcome-view {
    max-width: 480px;
    margin: 0 auto;
    padding: var(--space-4);
}

.welcome-header {
    text-align: center;
    margin-bottom: 50px;
}

.welcome-header h1 {
    font-size: var(--text-xl);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    font-weight: 700;
}

.welcome-subtitle {
    font-size: var(--text-base);
    color: var(--text-secondary);
}

/* Quick Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-3);
}

.stat-box {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-6);
    text-align: center;
}

.stat-value {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* My Bag Button - Regular button height with stat-box styling */
.btn-stat-style {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 12px;
    font-size: 20px;
    text-align: center;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: var(--space-3);
    margin-bottom: var(--space-3);
    display: block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.btn-stat-style:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-box .bag-count {
    color: var(--primary);
    font-weight: 700;
}

/* Actions */
.secondary-actions {
    margin-top: var(--space-4);
}

.secondary-actions button {
    margin-bottom: var(--space-2);
}

.secondary-actions button:last-child {
    margin-bottom: 0;
}

/* ========================================
   ACCOUNT LOCKOUT MESSAGES
   ======================================== */
/* Warning message - for remaining attempts */
.warning-message {
    background-color: rgba(245, 158, 11, 0.1);
    border: 2px solid var(--brand-orange);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-top: var(--space-6);
    color: #92400e;
    font-size: var(--text-sm);
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.warning-icon {
    font-size: 20px;
    flex-shrink: 0;
}

/* Dark mode warning */
body.dark-mode .warning-message {
    background-color: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
}

/* Lockout message - for account locked */
.lockout-message {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.15) 100%);
    border: 2px solid var(--brand-red);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-top: var(--space-6);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.lockout-icon {
    font-size: 48px;
    animation: lockPulse 2s ease-in-out infinite;
}

@keyframes lockPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.lockout-text {
    color: var(--brand-red);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
}

.lockout-countdown {
    background-color: #fff;
    color: var(--brand-red);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 16px;
    font-family: 'Courier New', monospace;
    margin-top: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Dark mode lockout */
body.dark-mode .lockout-message {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.2) 0%, rgba(220, 38, 38, 0.3) 100%);
    border-color: #ef4444;
}

body.dark-mode .lockout-text {
    color: #fca5a5;
}

body.dark-mode .lockout-countdown {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fca5a5;
}

/* Success message - for successful login */
.success-message {
    background-color: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--brand-green);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-top: var(--space-6);
    color: #166534;
    font-size: var(--text-sm);
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.success-icon {
    font-size: 20px;
    flex-shrink: 0;
}

body.dark-mode .success-message {
    background-color: rgba(22, 163, 74, 0.15);
    border-color: #22c55e;
    color: #86efac;
}

/* ========================================
   EDITABLE HANDICAP MODAL
   Add these styles to the END of your existing styles.css
   ======================================== */

/* Make handicap stat clickable */
.hcp-editable {
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

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

/* Modal Container - Full Screen Overlay */
.hcp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px) 0;
}

/* Dark Overlay Background */
.hcp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1;
}

/* Modal Content Box */
.hcp-modal-content {
    position: relative;

    z-index: 2;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    max-width: 400px;
    width: 98%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: modalSlideIn 0.3s ease;
}

/* Modal Animation */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Modal Header */
.modal-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hcp-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 600;
}

/* Close Button */
.hcp-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    line-height: 1;
}

.hcp-modal-close:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

/* Modal Body */
.hcp-modal-body {
    padding: 10px;
}

/* Form Group */
.hcp-form-group {
    margin-bottom: 16px;
}

.hcp-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* Input Field */
.hcp-form-input {
    width: 100%;
    padding: 14px 8px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.2s ease;
    font-weight: 500;
}

.hcp-form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Error Message */
.hcp-error-message {
    padding: 12px 16px;
    background-color: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--brand-red);
    border-radius: 4px;
    color: var(--brand-red);
    margin-top: 12px;
    font-size: 0.9rem;
}

/* Modal Footer */
.hcp-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Button Loader */
.btn-loader {
    display: inline-block;
}

.btn-loader::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

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

/* Dark Mode Adjustments */
body.dark-mode .hcp-modal-overlay {
    background-color: rgba(0, 0, 0, 0.75);
}

body.dark-mode .hcp-modal-content {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

body.dark-mode .hcp-error-message {
    background-color: rgba(239, 68, 68, 0.15);
}

/* Responsive - Mobile */
@media (max-width: 640px) {
    .hcp-modal {
        padding: 0px;
    }
    
    .hcp-modal-content {
        max-width: 100%;
    }
    
    .hcp-modal-header {
        padding: 16px;
    }
    
    .hcp-modal-header h2 {
        font-size: 1.3rem;
    }
    
    .hcp-modal-body {
        padding: 10px;
    }
    
    .hcp-modal-footer {
        flex-direction: column-reverse;
        padding: 16px 20px;
    }
    
    .hcp-modal-footer .btn {
        width: 100%;
        margin: 0;
    }
}

/* Ensure modal appears above everything */
.hcp-modal {
    z-index: 99999 !important;
}

/* ========================================
   CLICKABLE STAT BOXES
   Add this to your existing handicap CSS
   ======================================== */

/* Generic clickable stat box styling */
.stat-clickable {
    cursor: pointer;

    transition: all 0.2s ease;
    position: relative;
}

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

/* Optional: Add a subtle indicator on hover */
.stat-clickable:hover::after {
    content: '👆';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Remove old hcp-editable class if it exists */
.hcp-editable {
    /* This is replaced by stat-clickable */
}

/* ========================================
   ROUND SETUP MODAL
   Add these styles to your styles.css
   ======================================== */

/* Round Modal Container - Full Screen Overlay */
.round-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(20px + env(safe-area-inset-top, 0px)) 20px calc(20px + env(safe-area-inset-bottom, 0px));
}

/* Dark Overlay Background */
.round-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1;
}

/* Modal Content Box */
.round-modal-content {
    position: relative;
    z-index: 2;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: modalSlideIn 0.3s ease;
}

/* Modal Header */
.round-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 10;
}

.round-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 600;
}

/* Close Button */
.round-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    line-height: 1;
}

.round-modal-close:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

/* Modal Body */
.round-modal-body {
    padding: 24px;
}

/* Form Group */
.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* Form Input/Select */
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-input option {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Players Container */
.players-container {
    margin-top: 20px;
}

/* Player Row - 4 Columns: Name, HCP, Gender, Teebox */
.player-row {
    display: grid;
    grid-template-columns: 2fr 0.8fr 1fr 1.5fr;
    gap: 0px;
    margin-bottom: 12px;
    padding: 12px;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.player-input-group,
.hcp-input-group,
.gender-input-group,
.teebox-input-group {
    display: flex;
    flex-direction: column;
}

.player-input-group label,
.hcp-input-group label,
.gender-input-group label,
.teebox-input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

/* Readonly inputs */
.player-name-input[readonly],
.hcp-input[readonly] {
    background-color: var(--bg-secondary);
    cursor: not-allowed;
    opacity: 0.8;
}

/* HCP Input Styling */
.hcp-input {
    text-align: center;
}

/* Error Message */
.error-message {
    padding: 12px 16px;
    background-color: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--brand-red);
    border-radius: 4px;
    color: var(--brand-red);
    margin-top: 16px;
    font-size: 0.9rem;
}

/* Modal Footer */
.round-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    position: sticky;
    bottom: 0;
    background: var(--bg-card);
}

/* Dark Mode Adjustments */
body.dark-mode .round-modal-overlay {
    background-color: rgba(0, 0, 0, 0.75);
}

body.dark-mode .round-modal-content {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

body.dark-mode .error-message {
    background-color: rgba(239, 68, 68, 0.15);
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .round-modal-content {
        max-width: 100%;
    }
    
    /* 2x2 grid on tablet */
    .player-row {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }
    
    .player-input-group {
        grid-column: 1 / -1;
    }
}

/* Responsive - Mobile */
@media (max-width: 640px) {
    .round-modal {
        padding: 10px;
    }
    
    .round-modal-content {
        max-width: 100%;
        max-height: 95vh;
    }
    
    .round-modal-header {
        padding: 16px 20px;
    }
    
    .round-modal-header h2 {
        font-size: 1.3rem;
    }
    
    .round-modal-body {
        padding: 20px;
    }
    
    /* Stack all fields on mobile */
    .player-row {
        grid-template-columns: 1fr;
        gap: 0px;
    }
    
    .round-modal-footer {
        flex-direction: column-reverse;
        padding: 16px 20px;
    }
    
    .round-modal-footer .btn {
        width: 100%;
        margin: 0;
    }
}

/* Scrollbar styling for modal content */
.round-modal-content::-webkit-scrollbar {
    width: 8px;
}

.round-modal-content::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.round-modal-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.round-modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}


/**
 * Custom Searchable Dropdown CSS
 * Add this to your style.css file
 */

/* Container for the custom dropdown */
#club-select-container {
    position: relative;
    width: 100%;
}

/* Search input field - matches your form-input style */
#club-search-input {
    width: 100%;
    /* Your existing form-input styles will apply */
}

/* Dropdown list container */
.custom-dropdown {
    position: absolute;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-top: 4px;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Individual dropdown options */
.dropdown-option {
    padding: 12px 16px;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dropdown-option:hover {
    background-color: #4a5568;
}

.dropdown-option:active {
    background-color: #3182ce;
}

/* No results message */
.no-results {
    padding: 12px 16px;
    color: #a0aec0;
    text-align: center;
    font-style: italic;
}

/* Scrollbar styling for dropdown */
.custom-dropdown::-webkit-scrollbar {
    width: 8px;
}

.custom-dropdown::-webkit-scrollbar-track {
    background: #1a202c;
    border-radius: 4px;
}

.custom-dropdown::-webkit-scrollbar-thumb {
    background: #4a5568;
    border-radius: 4px;
}

.custom-dropdown::-webkit-scrollbar-thumb:hover {
    background: #718096;
}

/* Light mode support (if needed) */
@media (prefers-color-scheme: light) {
    .custom-dropdown {
        background-color: #ffffff;
        border-color: #e2e8f0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .dropdown-option {
        color: #2d3748;
    }
    
    .dropdown-option:hover {
        background-color: #f7fafc;
    }
    
    .dropdown-option:active {
        background-color: #3182ce;
        color: #ffffff;
    }
    
    .no-results {
        color: #718096;
    }
    
    .custom-dropdown::-webkit-scrollbar-track {
        background: #f7fafc;
    }
    
    .custom-dropdown::-webkit-scrollbar-thumb {
        background: #cbd5e0;
    }
    
    .custom-dropdown::-webkit-scrollbar-thumb:hover {
        background: #a0aec0;
    }
}

/**
 * Scorecard View CSS
 * Add this to your style.css file
 */

/* ========================================
   PLAYER SELECTION STYLES
   Add this to your styles.css
   ======================================== */

/* Player Select Container */
.player-select-container {
    position: relative;
    width: 100%;
    margin-bottom: var(--space-2);
}

.player-search-input {
    width: 100%;
    padding: var(--space-2);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    background: var(--bg-card);
    color: var(--text-primary);
    transition: border-color 0.2s;
}

.player-search-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Player Info Display */
.player-name-display {
    padding: var(--space-2);
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-3);
}

.player-name-display strong {
    color: var(--primary);
    font-size: var(--text-lg);
}

.player-info-row {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-2);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-3);
}

.player-info-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.info-label {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: var(--text-base);
    color: var(--text-primary);
    font-weight: 600;
}

/* Player Dropdown (same as club dropdown) */
.custom-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.dropdown-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.15s;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover {
    background-color: var(--bg-secondary);
}

.dropdown-option:active {
    background-color: var(--primary);
    color: white;
}

.no-results {
    padding: 12px 16px;
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
}

/* Teebox Input Group */
.teebox-input-group {
    width: 100%;
}

.teebox-select {
    width: 100%;
    padding: var(--space-2);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 0.2s;
}

.teebox-select:focus {
    outline: none;
    border-color: var(--primary);
}

.teebox-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Player Row Spacing */
.player-row {
    margin-bottom: var(--space-6);
    padding: var(--space-4);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.player-label {
    font-weight: 600;
    font-size: var(--text-lg);
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.player-inputs {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

/* GPS Tracking Checkbox */
.gps-tracking-container {
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--brand-blue);
}

.checkbox-label span {
    font-size: 14px;
    color: var(--text-primary);
}

.checkbox-label input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .player-info-row {
        flex-direction: column;
        gap: var(--space-3);
    }
    
    .player-info-item {
        border-bottom: 1px solid var(--border-color);
        padding-bottom: var(--space-2);
    }
    
    .player-info-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* ========================================
   PLAYER SELECTION STYLES
   Add this to your styles.css
   ======================================== */

/* Player Select Container */
.player-select-container {
    position: relative;
    width: 100%;
    margin-bottom: var(--space-3);
}

.player-search-input {
    width: 100%;
    padding: var(--space-2);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    background: var(--bg-card);
    color: var(--text-primary);
    transition: border-color 0.2s;
}

.player-search-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Player Info Display */
.player-name-display {
    padding: var(--space-2);
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 0px;
}

.player-name-display strong {
    color: var(--primary);
    font-size: 20px;
}

.player-info-row {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-2);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-3);
}

.player-info-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.info-label {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: var(--text-base);
    color: var(--text-primary);
    font-weight: 600;
}

/* Player Dropdown (same as club dropdown) */
.custom-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.dropdown-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.15s;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover {
    background-color: var(--bg-secondary);
}

.dropdown-option:active {
    background-color: var(--primary);
    color: white;
}

.no-results {
    padding: 12px 16px;
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
}

/* Teebox Input Group */
.teebox-input-group {
    width: 100%;
}

.teebox-select {
    width: 100%;
    padding: var(--space-2);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 0.2s;
}

.teebox-select:focus {
    outline: none;
    border-color: var(--primary);
}

.teebox-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Player Row Spacing */
.player-row {
    margin-bottom: var(--space-6);
    padding: var(--space-4);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.player-label {
    font-weight: 600;
    font-size: var(--text-lg);
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.player-inputs {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .player-info-row {
        flex-direction: column;
        gap: var(--space-3);
    }
    
    .player-info-item {
        border-bottom: 1px solid var(--border-color);
        padding-bottom: var(--space-2);
    }
    
    .player-info-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* ========================================
   PROFESSIONAL PLAYER INFO DISPLAY
   Added for simplified, clean UI
   ======================================== */

/* Player Info Line - Simplified Display */
.player-info-line {
    font-size: 20px;
    color: #94a3b8;
    margin: 4px 0;
    font-weight: 400;
    padding: 8px 0;
}

.dark-mode .player-info-line {
    color: #cbd5e1;
}

/* Playing HCP Display - Green Accent */
.player-playing-hcp {
    font-size: 20px;
    padding: 6px 10px;
    background: rgba(76, 175, 80, 0.08);
    border-left: 3px solid #4CAF50;
    border-radius: 4px;
    margin-top: 8px;
    font-weight: 500;
    color: #2e7d32;
}

.dark-mode .player-playing-hcp {
    background: rgba(76, 175, 80, 0.12);
    border-left-color: #66bb6a;
    color: #81c784;
}

/* Player Name Display - Bold Header */
.player-name-display strong {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    display: block;
    margin-bottom: 4px;
}

.dark-mode .player-name-display strong {
    color: #f1f5f9;
}

/* Improved Teebox Select Dropdown */
.teebox-select {
    width: 100%;
    margin-top: 10px;
    padding: 11px 14px;
    font-size: 20px;
    font-weight: 500;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    background: #ffffff;
    color: #1e293b;
    transition: all 0.2s ease;
    cursor: pointer;
}

.teebox-select:hover {
    border-color: #cbd5e1;
}

.teebox-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

.dark-mode .teebox-select {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

.dark-mode .teebox-select:hover {
    border-color: #475569;
}

.dark-mode .teebox-select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.08);
}

/* Player Label - Small Caps */
.player-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #64748b;
    margin-bottom: 10px;
    display: block;
}

.dark-mode .player-label {
    color: #94a3b8;
}

/* Player Row - Card Style */
.player-row {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 14px;
    transition: all 0.2s ease;
}

.player-row:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.dark-mode .player-row {
    background: #1e293b;
    border-color: #334155;
}

.dark-mode .player-row:hover {
    border-color: #475569;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Improved Player Inputs Container */
.player-inputs {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

/* Player Search Input - Better Focus */
.player-search-input {
    padding: 11px 14px;
    font-size: 14px;
    border-radius: 6px;
    border: 1.5px solid #e2e8f0;
    transition: all 0.2s ease;
}

.player-search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

.dark-mode .player-search-input {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

.dark-mode .player-search-input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.08);
}

/* Teebox Input Group */
.teebox-input-group {
    margin-top: 4px;
}

/* ========================================
   SCORECARD PLAYER DISPLAY
   Clean 3-line format styling
   ======================================== */

/* Player Card - Scorecard View */
.player-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.player-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

.dark-mode .player-card {
    background: #1e293b;
    border-color: #334155;
}

.dark-mode .player-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border-color: #475569;
}

/* Player Header - Name Display */
.player-header h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.dark-mode .player-header h3 {
    color: #f1f5f9;
}

/* Player Info Container */
.player-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Player Info Line - Scorecard */
.player-info-line {
    font-size: 16px;
    color: #64748b;
    font-weight: 400;
    line-height: 1;
}

.dark-mode .player-info-line {
    color: #94a3b8;
}

/* views/scorecard.css */

/* ===== DARK MODE SUPPORT ===== */
:root {
    /* Light mode (default) */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f3f4f6;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --blue-primary: #3b82f6;
    --blue-dark: #2563eb;
    --blue-light: #dbeafe;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1f2937;
        --bg-secondary: #374151;
        --bg-tertiary: #4b5563;
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
        --border-color: #4b5563;
        --blue-primary: #3b82f6;
        --blue-dark: #2563eb;
        --blue-light: #1e3a8a;
    }
}

/* ===== SCORECARD CONTAINER ===== */
/* ========================================
   SCORECARD VIEW - NEW LAYOUT
   Multi-player scorecard with navigation
   ======================================== */
.scorecard-container {
    max-width: 428px;
    margin: 0px auto;
    background: var(--bg-primary);
	border: 1px var(--border);
    /*min-height: calc(100vh - 16px);*/
    display: flex;
    flex-direction: column;
    color: var(--text-primary);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: visible;  /* Changed from hidden to allow dropdown to show */
	padding: 8px;
}

/* ===== HEADER ===== */
/* Header wrapper for dropdown positioning */
.header-wrapper {
    position: relative;  /* Anchor point for dropdown absolute positioning */
}

.scorecard-header {
    position: relative;  /* Needed for dropdown absolute positioning */
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-dark) 100%);
    color: white;
    padding: 8px;
    border-radius: 12px 12px 0 0;
}

.header-line-1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.blurred {
    filter: blur(3px);
}

.club-name {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.dropdown-icon {
    font-size: 20px;
    cursor: pointer;
}

.header-line-2 {
    font-size: 15px;
    opacity: 0.95;
}

/* ===== QUICK ENTRY TOGGLE ===== */
.quick-entry-toggle-container {
    display: flex;
    align-items: right;
	gap: 12px;
}

.quick-entry-toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.toggle-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary-dark);
    white-space: nowrap;
}

.toggle-checkbox {
    display: none; /* Hide the actual checkbox */
}

.toggle-slider {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 30px;
    background-color: var(--text-primary-dark-02);
    border-radius: 24px;
    transition: background-color 0.3s ease;
    border: 2px solid var(--text-primary-dark-04);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background-color: var(--text-primary-dark-08);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle-checkbox:checked + .toggle-slider {
    background-color: var(--brand-green);
    border-color: var(--brand-green);
}

.toggle-checkbox:checked + .toggle-slider::before {
    transform: translateX(20px);
}

/* Active/pressed state */
.toggle-slider:active {
    transform: scale(0.95);
}


/* ===== PLAYER NAVIGATION ===== */
.player-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.player-info {
    flex: 1;
    text-align: left;
    margin: 4px 8px;
}

.player-nav-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-right: 8px;
}

.nav-btn {
    width: 40px;
    height: 40px;
    background: var(--brand-orange);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.nav-btn:active {
    background: var(--brand-orange);
    transform: scale(0.95);
}

.nav-btn:disabled {
    background: var(--brand-orange);
    color: white;
    cursor: not-allowed;
    opacity: 0.2;
    box-shadow: none;
}

.nav-btn:disabled:active {
    transform: none;
}

.player-name {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.player-details {
    font-size: 18px;
    color: var(--text-secondary);
}

/* ===== NINE TABS ===== */
.nine-tabs {
    display: flex;
    width: 100%;
    height: 32px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.tab.inactive {
    background: var(--bg-primary);
    color: var(--text-secondary);
}

.tab.active {
    background: var(--blue-primary);
    color: white;
    border-bottom-color: var(--blue-dark);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tab:active {
    transform: scale(0.98);
}

/* ===== HOLE TABLE ===== */
.hole-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-primary);
    table-layout: fixed;
    border-radius: 0px 0px 12px 12px;
    overflow: hidden;
    margin: 0px 0px 8px 0px;
}

/* Column widths */
.col-hole {
    width: 12%;
}

.col-par {
    width: 11%;
}

.col-si {
    width: 11%;
}

.col-ags {
    width: 16%;
}

.col-score {
    width: 18%;
}

.col-ans {
    width: 16%;
}

.col-pts {
    width: 16%;
}

/* First 4 columns - subtle background */
.hole-table thead th.col-hole,
.hole-table thead th.col-par,
.hole-table thead th.col-si,
.hole-table thead th.col-ags,
.hole-table tbody td.col-hole,
.hole-table tbody td.col-par,
.hole-table tbody td.col-si,
.hole-table tbody td.col-ags {
    background: rgba(59, 130, 246, 0.05);
}

body.dark-mode .hole-table thead th.col-hole,
body.dark-mode .hole-table thead th.col-par,
body.dark-mode .hole-table thead th.col-si,
body.dark-mode .hole-table thead th.col-ags,
body.dark-mode .hole-table tbody td.col-hole,
body.dark-mode .hole-table tbody td.col-par,
body.dark-mode .hole-table tbody td.col-si,
body.dark-mode .hole-table tbody td.col-ags {
    background: rgba(59, 130, 246, 0.1);
}

/* Table header */
.hole-table thead th {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 18px;
    /*font-weight: bold;*/
    padding: 2px 4px;
    border-bottom: 2px solid var(--border-color);
    text-align: center;
}

/* MAX AGS header - two lines, slightly smaller font */
.hole-table thead th.col-ags {
    font-size: 14px;
    line-height: 1.4;
}

/* Table cells */
.hole-table tbody td {
    padding: 2px 4px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    font-size: 22px;
    line-height: 1.6;
}

/* Hole rows - clickable */
.hole-row {
    cursor: pointer;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid var(--border-color);
}

.hole-row:hover {
    background-color: var(--bg-secondary);
}

.hole-row:active {
    background-color: var(--bg-tertiary);
}

/* Score column - larger, bold */
.col-score {
    font-weight: bold;
    font-size: 22px;
}

/* ===== SCORE COLOR CODING - GOLF GAMEBOOK STYLE ===== */

.score-empty {
    color: var(--text-secondary);
}

/* EAGLE OR BETTER: Orange Circle + white text */
.score-eagle {
    background: #FF9500;  /* Orange */
    color: white;
    font-weight: bold;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* BIRDIE: Red Circle + white text */
.score-birdie {
    background: #EF4444;  /* Red */
    color: white;
    font-weight: bold;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* PAR: No special styling - uses default cell background */
.score-par {
    /* No special styling for PAR */
}

/* BOGEY: Light Blue Square + white text */
.score-bogey {
    background: #60A5FA;  /* Light Blue */
    color: white;
    font-weight: bold;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* DOUBLE BOGEY OR WORSE: Dark Blue Square + white text */
.score-double {
    background: #1E40AF;  /* Dark Blue */
    color: white;
    font-weight: bold;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/*SCRATCH : Black Square + white text */
.score-scratch {
    background: #000000;  /* Dark Blue */
    color: white;
    font-weight: bold;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}
/* ===== TOTAL ROWS ===== */

/* OUT/IN row - Blue with white text */
.row-out td {
    background: #3b82f6 !important;
    color: white !important;
    font-weight: bold;
    padding: 4px 4px;
    text-align: center;
    font-size: 20px;
    border-bottom: 1px solid var(--border-color);
}

/* First 4 columns of OUT/IN row keep blue background */
.row-out td.col-hole,
.row-out td.col-par,
.row-out td.col-si,
.row-out td.col-ags {
    background: #3b82f6 !important;
}

/* TOT row - Green with white text */
.row-total td {
    background: var(--brand-green) !important;
    color: white !important;
    font-weight: bold;
    padding: 4px 4px;
    text-align: center;
    font-size: 20px;
}

/* First 4 columns of TOT row keep green background */
.row-total td.col-hole,
.row-total td.col-par,
.row-total td.col-si,
.row-total td.col-ags {
    background: var(--brand-green) !important;
}

/* Dark mode - same colors (gamebook indicators work in both light and dark) */
body.dark-mode .row-out td {
    background: #3b82f6 !important;
    color: white !important;
}

body.dark-mode .row-total td {
    background: var(--brand-green) !important;
    color: white !important;
}

/* Dark mode - gamebook indicators work as-is (no changes needed) */
body.dark-mode .score-eagle {
    background: #FF9500;
    color: white;
}

body.dark-mode .score-birdie {
    background: #EF4444;
    color: white;
}

body.dark-mode .score-bogey {
    background: #60A5FA;
    color: white;
}

body.dark-mode .score-double {
    background: #1E40AF;
    color: white;
}

/* ===== ACTION BUTTONS ===== */
.action-buttons {
    display: flex;
    gap: 10px;
    /* Bottom padding also includes safe-area-inset-bottom so the bottom row
       of buttons (e.g. CLOSE on the rankings modal) is never hidden behind
       the Android gesture navigation bar or the iOS home indicator. */
    padding: 10px 4px calc(10px + env(safe-area-inset-bottom)) 4px;
	border-radius: 0px 0px 12px 12px;
    /*background: var(--bg-primary);*/
}

.btn {
    flex: 1;
    height: 40px;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: scale(0.98);
}

.btn-cancel {
    background: #6b7280;
    color: white;
}

.btn-cancel:active {
    background: #4b5563;
}

.btn-finish {
    background: var(--brand-green);
    color: white;
}

.btn-finish:active {
    background: var(--brand-green);
}

/* ===== RANKINGS LINK ===== */
.rankings-section {
    padding: 8px;
    background: var(--bg-primary);
    border-radius: 0 0 12px 12px;
    text-align: center;
}

.rankings-link {
    color: var(--blue-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.rankings-link:hover {
    color: var(--blue-dark);
    text-decoration: underline;
}

.rankings-link:active {
    transform: scale(0.98);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 375px) {
    .player-name {
        font-size: 17px;
    }

    .player-details {
        font-size: 16px;
    }

    .nav-btn {
        width: 38px;
        height: 38px;
    }

    .hole-table tbody td {
        padding: 4px 2px;
        font-size: 15px;
    }

    .col-score {
        font-size: 15px;
    }
}

@media (min-width: 428px) {
    .scorecard-container {
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    }
}

/* ===== ENSURE ONE-SCREEN FIT ===== */
@media (max-height: 667px) {
    /* iPhone SE / small screens */
    .scorecard-header {
        padding: 8px 12px;
    }
    
    .header-line-1 {
        margin-bottom: 1px;
    }
    
    .club-name {
        font-size: 20px;
    }
    
    .header-line-2 {
        font-size: 14px;
    }
    
    .player-nav {
        padding: 6px 12px;
    }
    
    .player-name {
        font-size: 17px;
    }
    
    .player-details {
        font-size: 16px;
    }
    
    .nine-tabs {
        height: 32px;
    }
    
    .hole-table tbody td {
        padding: 2px 4px;
        font-size: 15px;
    }

    .row-out td,
    .row-total td {
        padding: 4px 4px;
        font-size: 15px;
    }
    
    .action-buttons {
        padding: 8px 12px;
        gap: 8px;
    }
    
    .btn {
        height: 40px;
        font-size: 15px;
    }
    
    .rankings-section {
        padding: 8px;
    }
    
    .rankings-link {
        font-size: 15px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in-right {
    animation: slideInRight 0.3s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.3s ease-out;
}
/* ========================================
   HISTORICAL ROUNDS - DROPDOWN MENU
   ======================================== */

/* Dropdown icon rotation */
.dropdown-icon {
    transition: transform 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.dropdown-icon.open {
    transform: rotate(180deg);
}

/* Rounds dropdown menu */
.rounds-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: none;
    max-height: 400px;
    overflow-y: auto;
    z-index: 9999;  /* Very high z-index to ensure it's on top */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: dropdownSlideDown 0.2s ease-out;
}

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

/* Dropdown item */
.dropdown-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.15s ease;
}

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

.dropdown-item:hover {
    background-color: var(--bg-secondary);
}

.dropdown-item.active {
    background-color: var(--bg-tertiary);
    border-left: 3px solid var(--blue-primary);
}

.dropdown-item-date {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.dropdown-item-course {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.dropdown-item-score {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Header positioning for dropdown */
.header-wrapper {
    cursor: pointer;  /* Show clickable cursor for dropdown trigger */
}

.historical-rounds .scorecard-header {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* Allow dropdown to overflow container in historical rounds */
.historical-rounds.scorecard-container {
    overflow: visible;
}

/* Loading and error states */
.loading-container,
.error-container,
.no-rounds-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: var(--space-6);
    text-align: center;
}

.loading-container p,
.error-container h2,
.no-rounds-container h2 {
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.error-container p,
.no-rounds-container p {
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
}

/* Historical rounds specific styling */
.historical-rounds .hole-row {
    cursor: default;
}

.historical-rounds .hole-row:hover {
    background-color: transparent;
}

/* Responsive dropdown */
@media (max-height: 667px) {
    .rounds-dropdown {
        max-height: 300px;
    }
    
    .dropdown-item {
        padding: 10px 14px;
    }
    
    .dropdown-item-date {
        font-size: 15px;
    }
    
    .dropdown-item-course {
        font-size: 13px;
    }
    
    .dropdown-item-score {
        font-size: 12px;
    }
}

/* No data message for rounds without hole data */
.no-data-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: var(--space-6);
    text-align: center;
}


.no-data-message p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* ========================================
   MY BAG MODAL STYLES
   Matches HCP modal styling
   Add this to your styles.css
   ======================================== */

/* Bag Modal Content - Wider than HCP modal for club grid.
   max-height accounts for safe-area-inset-bottom so the SAVE/CANCEL buttons
   never fall behind the Android nav bar / iOS home indicator. */
.bag-modal-content {
    max-width: 98%x !important;
    max-height: calc(90vh - env(safe-area-inset-bottom, 48px));
    display: flex;
    flex-direction: column;
}

/* Modal Body - Reduce padding and make scrollable */
.bag-modal-content .hcp-modal-body {
    padding: 10px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* Modal Subtitle */
.modal-subtitle {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

/* Bag Count Display */
.bag-count-display {
    text-align: center;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.bag-count-display span {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Success Message (matches error message styling from HCP) */
.bag-success-message {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid #22c55e;
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 12px;
    color: #22c55e;
    font-weight: 600;
    text-align: center;
}

/* Club Grid Container */
.club-grid-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Scrollbar styling for modal body */
.bag-modal-content .hcp-modal-body::-webkit-scrollbar {
    width: 8px;
}

.bag-modal-content .hcp-modal-body::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.bag-modal-content .hcp-modal-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.bag-modal-content .hcp-modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Club Type Section */
.club-type-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 12px;
}

.club-type-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Club Buttons Grid */
.club-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 8px;
}

/* Individual Club Button */
/* Individual Club Button */
.club-btn {
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.club-btn:hover {
    /* No color change on hover - keep it simple */
}

/* Selected Club Button - Orange */
.club-btn.selected {
    background: var(--brand-orange);
    color: white;
    border-color: var(--brand-orange);
    font-weight: 700;
}

.club-btn.selected:hover {
    background: var(--brand-orange);
    border-color: var(--brand-orange);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .bag-modal-content {
        max-width: 98% !important;
        max-height: 95vh;
    }

    .club-buttons-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
        gap: 6px;
    }

    .club-btn {
        padding: 8px;
        font-size: 16px;
        min-height: 40px;
    }
}

@media (max-width: 480px) {
    .club-buttons-grid {
        grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
        gap: 6px;
    }

    .club-btn {
        padding: 6px;
        font-size: 18px;
        min-height: 36px;
    }
}

.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 30px;
  background: #var(--text-primary);
  outline: none;
  opacity: 0.7;
  -webkit-transition: .2s;
  transition: opacity .2s;
}

.slider:hover {
  opacity: 1;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 30px;
  height: 30px;
  background: var(--brand-green);
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 30px;
  height: 30px;
  background: var(--brand-green);
  cursor: pointer;
}

/* Dark Mode Adjustments */
body.dark-mode .bag-success-message {
    background: rgba(34, 197, 94, 0.15);

/* Dark Mode Adjustments */
body.dark-mode .bag-success-message {
    background: rgba(34, 197, 94, 0.15);
}

body.dark-mode .club-btn {
    box-shadow: none;
}

body.dark-mode .club-btn:hover {
    /* No hover effect in

/* ========================================
   SHOT DETAILS MODAL — reuses My Bag pattern (.hcp-modal + .bag-modal-content):
   fixed header + footer; only .hcp-modal-body scrolls. Cosmetic overrides only.
   ======================================== */
.shot-details-content .modal-header { justify-content: center; }
.shot-details-content .modal-header h2 { letter-spacing: 1px; text-transform: uppercase; }
.shot-details-content .hcp-modal-body { padding: 6px; background: #ffffff; }
