/* =============================================================================
 * Savage Golf Betting Tracker - Simplex Theme
 * =============================================================================
 * 
 * This stylesheet implements the Bootswatch Simplex theme for the Savage Golf
 * Betting Tracker application. Simplex is "Mini and minimalist" with clean,
 * modern styling perfect for professional applications.
 * 
 * Features:
 * - Mobile-first responsive design
 * - Bootswatch Simplex theme colors and styling
 * - Clean, minimalist interface
 * - Modern typography and spacing
 * - Professional, fresh appearance
 * 
 * Copyright (c) 2025 Daniel Savage
 * Licensed under Proprietary License
 * 
 * Theme: Bootswatch Simplex (https://bootswatch.com/simplex/)
 * All rights reserved.
 * =============================================================================
 */

/* Alpha Release Banner */
.alpha-banner {
    background: linear-gradient(135deg, var(--warning-color), var(--warning-hover));
    color: var(--simplex-dark);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--warning-hover);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 1;
}

.alpha-banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.alpha-badge {
    background: var(--simplex-dark);
    color: var(--warning-color);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.alpha-message {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Responsive adjustments for the banner */
@media (max-width: 480px) {
    .alpha-banner {
        padding: 0.5rem 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .alpha-banner-content {
        gap: 0.375rem;
    }
    
    .alpha-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
    
    .alpha-message {
        font-size: 0.8rem;
    }
}

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

:root {
    /* Simplex Theme Colors - Based on Bootswatch Simplex */
    --simplex-primary: #d9230f;
    --simplex-primary-hover: #b71c0c;
    --simplex-secondary: #6c757d;
    --simplex-secondary-hover: #545b62;
    --simplex-success: #198754;
    --simplex-success-hover: #146c43;
    --simplex-info: #0dcaf0;
    --simplex-info-hover: #3dd5f3;
    --simplex-warning: #ffc107;
    --simplex-warning-hover: #ffcd39;
    --simplex-danger: #dc3545;
    --simplex-danger-hover: #bb2d3b;
    --simplex-light: #f8f9fa;
    --simplex-dark: #212529;
    
    /* Main Color Mappings */
    --primary-color: var(--simplex-primary);
    --primary-hover: var(--simplex-primary-hover);
    --secondary-color: var(--simplex-secondary);
    --secondary-hover: var(--simplex-secondary-hover);
    --success-color: var(--simplex-success);
    --success-hover: var(--simplex-success-hover);
    --warning-color: var(--simplex-warning);
    --warning-hover: var(--simplex-warning-hover);
    --danger-color: var(--simplex-danger);
    --danger-hover: var(--simplex-danger-hover);
    --info-color: var(--simplex-info);
    --info-hover: var(--simplex-info-hover);
    --neutral-color: var(--simplex-secondary);
    --neutral-hover: var(--simplex-secondary-hover);
    
    /* Background and Surface Colors */
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --card-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --card-border: 1px solid #dee2e6;
    
    /* Text Colors */
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #6c757d;
    
    /* Border Colors */
    --border-color: #dee2e6;
    --border-hover: #adb5bd;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
    background: var(--bg-color);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.5;
    font-weight: 400;
    margin: 0;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 24px;
}

/* Header Styles - Simplex Theme */
header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0;
    background: transparent;
    color: white;
    border-radius: var(--radius-lg);
    margin: 0 -1rem 2rem -1rem;
    min-height: 120px;
    position: relative;
    overflow: hidden;
}

header h1 {
    font-size: calc(1.375rem + 1.5vw);
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    color: #ffffff;
}

.subtitle {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 0;
    opacity: 0.9;
}

/* Header Layout */
.header-content {
    position: relative;
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-left {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-left .logo {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-lg);
}

.header-right {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 9998;
}

/* Burger Menu Styles */
.burger-menu {
    position: relative;
}



.burger-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 32px;
    transition: all 0.3s ease;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.burger-btn:hover {
    opacity: 0.8;
}

.burger-line {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-btn.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-btn.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-btn.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Burger Dropdown */
.burger-dropdown {
    position: fixed;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.burger-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.burger-menu-items {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.burger-menu-item {
    width: 100%;
    background: none;
    border: none;
    padding: 12px 16px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background-color 0.2s ease;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.burger-menu-item:hover {
    background-color: var(--neutral-color);
}

.burger-menu-item .menu-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.burger-menu-item .menu-text {
    flex: 1;
}

/* Side Games Modal */
.side-games-modal-content {
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    width: 95%;
}

.side-games-content {
    max-width: 100%;
    margin: 0 auto;
}

.intro-text {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.game-info-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.game-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.game-info-header {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.game-info-header h3,
.game-info-header h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.4rem;
}

.game-info-content p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.game-info-content p:last-child {
    margin-bottom: 0;
}

.side-games-footer {
    background: var(--simplex-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 2rem;
}

.side-games-footer h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.side-games-footer ul {
    margin: 0;
    padding-left: 1.5rem;
}

.side-games-footer li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* About Modal */
.about-modal-content {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.about-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.about-section:last-of-type {
    border-bottom: none;
}

.about-section h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.about-section p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.about-section ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.about-section li {
    margin-bottom: 0.25rem;
    line-height: 1.5;
}

.about-footer {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--simplex-light);
    border-radius: var(--radius-md);
}

.about-footer em {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Mobile responsiveness for Side Games modal */
@media (max-width: 768px) {
    .side-games-modal-content {
        max-width: 95%;
        max-height: 90vh;
        margin: 5vh auto;
        padding: 1rem;
    }
    
    .game-info-card {
        margin-bottom: 1rem;
        padding: 1rem;
    }
    

}

/* Card Styles - Simplex Theme */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--card-shadow);
    border: var(--card-border);
    transition: all 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card h2 {
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: calc(1.325rem + 0.9vw);
    font-weight: 500;
    line-height: 1.2;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.card h3 {
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: calc(1.3rem + 0.6vw);
    font-weight: 500;
    line-height: 1.2;
}

/* Form Styles - Simplex Theme */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 1rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: #fff;
    background-image: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-group input:focus,
.form-group select:focus {
    color: var(--text-primary);
    background-color: #fff;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(217, 35, 15, 0.25);
}

/* Player Inputs */
.players-section {
    margin-bottom: 32px;
}

.player-count {
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(220, 38, 38, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.player-count label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.player-count select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 500;
    background: white;
    color: var(--text-primary);
    cursor: pointer;
}

.player-count select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.player-count select:invalid {
    border-color: var(--warning-color);
}

.player-count select:invalid + .player-inputs {
    opacity: 0.5;
}

.player-count-help {
    display: block;
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-style: italic;
}

.player-inputs {
    margin-bottom: 20px;
}

.player-input {
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.player-input.hidden {
    display: none;
}

.player-input input {
    width: 100%;
    font-size: 1.125rem;
    font-weight: 500;
}

/* Games Section */
.games-section {
    margin-bottom: 32px;
}

.game-selection {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.game-option {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

.game-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.game-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.15);
}

.game-option:hover::before {
    transform: scaleX(1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-size: 1.125rem;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    margin-right: 16px;
    position: relative;
    transition: all 0.3s ease;
    background: white;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: bold;
}

.bet-amount {
    margin-top: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.bet-amount label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bet-amount input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.bet-amount input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Team Selection */
.team-selection {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.team-selection > label {
    display: block;
    margin-bottom: 16px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.team-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.team-input {
    display: flex;
    flex-direction: column;
}

.team-input label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.team-input select {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    background: white;
}

.team-input select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Button Styles - Simplex Theme */
.btn {
    padding: 0.375rem 0.75rem;
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-primary);
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    display: inline-block;
}

.btn:hover {
    color: var(--text-primary);
}

.btn:focus {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(217, 35, 15, 0.25);
}

.btn-large {
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    border-radius: var(--radius-md);
    width: 100%;
    margin-bottom: 1rem;
}

.btn-primary {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    color: #fff;
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-secondary {
    color: #fff;
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    color: #fff;
    background-color: var(--secondary-hover);
    border-color: var(--secondary-hover);
}

.btn-warning {
    color: #000;
    background-color: var(--warning-color);
    border-color: var(--warning-color);
}

.btn-warning:hover {
    color: #000;
    background-color: var(--warning-hover);
    border-color: var(--warning-hover);
}

.btn-success {
    color: #fff;
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-success:hover {
    color: #fff;
    background-color: var(--success-hover);
    border-color: var(--success-hover);
}

.btn-info {
    color: #000;
    background-color: var(--info-color);
    border-color: var(--info-color);
}

.btn-info:hover {
    color: #000;
    background-color: var(--info-hover);
    border-color: var(--info-hover);
}

.btn-danger {
    color: #fff;
    background-color: var(--danger-color);
    border-color: var(--danger-color);
}

.btn-danger:hover {
    color: #fff;
    background-color: var(--danger-hover);
    border-color: var(--danger-hover);
}

.btn-orange {
    color: #fff;
    background-color: #ff8c00;
    border-color: #ff8c00;
}

.btn-orange:hover {
    color: #fff;
    background-color: #e67e00;
    border-color: #e67e00;
}

/* Game Navigation */
.game-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 16px;
}

.game-nav-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    text-align: left;
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: var(--text-primary);
}

.game-nav-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(255, 255, 255, 0.3);
}

.game-nav-btn.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(29, 78, 216, 0.1) 100%);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.2);
}

.game-nav-btn .game-icon {
    font-size: 28px;
    margin-right: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.game-nav-btn .game-name {
    font-size: 20px;
    font-weight: 700;
    flex: 1;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

.game-nav-btn .game-status {
    font-size: 14px;
    opacity: 0.8;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
}

/* Hole Navigation */
.hole-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.hole-display {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    flex: 1;
    letter-spacing: -0.025em;
}

.hole-navigation button {
    min-width: 140px;
    font-weight: 600;
}

.hole-navigation #completeGame {
    background: var(--success-color, #28a745);
    border-color: var(--success-color, #28a745);
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.hole-navigation #completeGame:hover {
    background: var(--success-hover, #218838);
    border-color: var(--success-hover, #218838);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.hole-navigation button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Game Descriptions */
.game-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.game-description {
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.game-description p {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.game-description p:last-child {
    margin-bottom: 0;
}

.game-description strong {
    color: var(--text-primary);
    font-weight: 600;
}







.game-info-tooltip h4 {
    margin-bottom: 12px;
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.game-info-tooltip p {
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

.game-info-tooltip p:last-child {
    margin-bottom: 0;
}

.game-info-tooltip strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Game Pages */
.game-page {
    display: none;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
}

.page-header h2 {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.game-actions {
    margin-bottom: 32px;
}

.game-history {
    margin-bottom: 32px;
}

.game-history h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    font-weight: 600;
}

.game-summary {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-color);
}

.game-summary h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    font-weight: 600;
}

/* Combined Total Page */
.combined-summary {
    margin-bottom: 40px;
}

.game-breakdown {
    display: grid;
    gap: 28px;
}

.breakdown-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-color);
}

.breakdown-section h4 {
    margin-bottom: 20px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    font-weight: 600;
}

/* Game Action Items */
.game-action-item {
    background: white;
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
    border-left: 4px solid var(--primary-color);
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.game-action-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.game-action-item.success {
    border-left-color: var(--success-color);
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.game-action-item.fail {
    border-left-color: var(--danger-color);
    background: linear-gradient(135deg, #fef2f2 0%, #fef2f2 100%);
}

.game-action-item.neutral {
    border-left-color: var(--neutral-color);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.game-action-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 16px;
}

.game-action-player {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.125rem;
}

.game-action-hole {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.game-action-result {
    font-weight: 600;
    font-size: 1rem;
}

.game-action-result.success {
    color: var(--success-color);
}

.game-action-result.fail {
    color: var(--danger-color);
}

.game-action-result.neutral {
    color: var(--text-muted);
}

/* Delete Button */
.btn-delete {
    background: none;
    border: none;
    color: var(--danger-color);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    flex-shrink: 0;
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.1);
}

.btn-delete:hover {
    background: var(--danger-color);
    color: white;
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.btn-delete:active {
    transform: scale(0.95);
}

/* Summary Items */
.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.summary-item:hover {
    background: rgba(99, 102, 241, 0.05);
    margin: 0 -12px;
    padding: 12px;
    border-radius: var(--radius-sm);
}

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

.summary-player {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.summary-amount {
    font-weight: 700;
    font-size: 1.125rem;
}

.summary-amount.positive {
    color: var(--success-color);
}

.summary-amount.negative {
    color: var(--danger-color);
}

.summary-amount.neutral {
    color: var(--text-muted);
}

.game-summary-section {
    margin-bottom: 24px;
}

.game-summary-section:last-child {
    margin-bottom: 0;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

/* Ensure Wolf modal is properly positioned */
#wolfModal.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 500px;
    color: var(--text-primary);
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    padding: 1.5rem;
    animation: modalSlideIn 0.3s ease-out;
    margin: auto;
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: calc(1.3rem + 0.6vw);
    font-weight: 500;
    line-height: 1.2;
    color: var(--text-primary);
    text-align: center;
}

.modal-buttons {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.modal-buttons .btn {
    flex: 1;
}

/* New Game Section */
.new-game-section {
    text-align: center;
    margin-top: 40px;
}

.new-game-section .btn {
    padding: 20px 40px;
    font-size: 18px;
    border-radius: var(--radius-lg);
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 20px;
    }
    
    .card {
        padding: 24px;
        margin-bottom: 20px;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    
    header {
        min-height: 100px;
    }
    
    .header-content {
        height: 100px;
    }
    
    .header-left .logo {
        height: 100px;
    }
    
    .header-right {
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
        z-index: 9998;
    }
    
    .hole-navigation {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        flex-wrap: wrap;
    }
    
    .hole-navigation button {
        min-width: auto;
        width: 100%;
    }
    
    .hole-navigation #completeGame {
        order: 3;
        margin-top: 10px;
    }
    
    .modal-content {
        width: 95%;
        padding: 24px;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .page-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .page-header .btn {
        width: 100%;
    }
    
    .team-inputs {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Hover effects for interactive elements */
.player-input:hover {
    transform: translateX(4px);
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    transition: transform 0.3s ease;
}

/* Final Results Page */
.final-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 32px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.final-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 12px;
    letter-spacing: -0.025em;
}

.final-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.final-game-section {
    margin-bottom: 32px;
    padding: 24px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.final-game-section h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.final-game-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.final-game-summary {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border-color);
}

.final-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

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

.final-summary-item:hover {
    background: rgba(99, 102, 241, 0.05);
    margin: 0 -12px;
    padding: 12px;
    border-radius: var(--radius-sm);
}

.final-summary-player {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.125rem;
}

.final-summary-amount {
    font-weight: 700;
    font-size: 1.25rem;
}

.final-summary-amount.positive {
    color: var(--success-color);
}

.final-summary-amount.negative {
    color: var(--danger-color);
}

.final-summary-amount.neutral {
    color: var(--text-muted);
}

.final-combined {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid var(--primary-color);
}

.payment-instructions {
    background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
    border: 2px solid var(--warning-color);
}

.payment-instructions h3 {
    border-bottom-color: var(--warning-color);
}

.payment-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.payment-item {
    background: white;
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.payment-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.payment-recipient {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--success-color);
}

.payment-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.payment-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.payment-from {
    font-weight: 600;
    color: var(--danger-color);
    min-width: 80px;
}

.payment-arrow {
    color: var(--text-muted);
    font-weight: 700;
}

.payment-to {
    font-weight: 600;
    color: var(--success-color);
    min-width: 80px;
}

.payment-amount {
    font-weight: 700;
    color: var(--text-primary);
    margin-left: auto;
}

.no-payments {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.final-actions {
    margin-top: 40px;
    text-align: center;
}

/* Copyright Footer */
.copyright-footer {
    margin-top: 60px;
    padding: 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: var(--radius-lg);
}

.copyright-footer p {
    margin: 8px 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

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

.copyright-footer a:hover {
    text-decoration: underline;
}

.footer-note {
    font-style: italic;
    opacity: 0.8;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* Game Selection Styles */
.game-selection {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.game-option {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    background: white;
    transition: all 0.2s ease;
}

.game-option:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.game-option.compact {
    padding: 16px;
    border-radius: var(--radius-md);
}

.game-option.compact .game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.game-option.compact .game-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.game-option.compact .game-bet-input input {
    width: 80px;
    padding: 6px 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    text-align: center;
}

.game-option.compact .game-description-collapsible {
    margin-top: 8px;
}

.game-option.compact .game-description-collapsible details {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.game-option.compact .game-description-collapsible summary {
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
    padding: 4px 0;
}

.game-option.compact .game-description-collapsible summary:hover {
    color: var(--primary-color);
}

.game-option.compact .game-description-collapsible p {
    margin: 8px 0 0 0;
    line-height: 1.4;
}

/* Quick Actions Dashboard */
.quick-actions-dashboard {
    margin: 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-actions-dashboard h3 {
    color: white;
    margin-bottom: 8px;
    margin-top: 0;
    font-size: 1.1rem;
    text-align: center;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.quick-action-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.quick-action-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.quick-action-header .game-icon {
    font-size: 1.2rem;
}

.quick-action-header .game-name {
    font-weight: 600;
    flex: 1;
}

.quick-action-header .game-status {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--neutral-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
}

.quick-action-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    background: white;
}

.quick-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

/* Responsive adjustments for quick actions */
@media (max-width: 768px) {
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .game-option.compact .game-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .game-option.compact .game-bet-input input {
        width: 100%;
    }
}













