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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    min-height: 100vh;
    color: #333;
}

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

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Authentication Styles */
.auth-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.auth-card h1 {
    color: #2E7D32;
    margin-bottom: 10px;
    font-size: 2rem;
}

.auth-card p {
    color: #666;
    margin-bottom: 30px;
}

.auth-form h2 {
    color: #2E7D32;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.auth-switch {
    margin-top: 20px;
    font-size: 0.9rem;
}

.auth-switch a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Header with user info */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

.user-info span {
    font-weight: 600;
}

.signout-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.signout-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
}

/* Loading Styles */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    color: white;
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error and Success Messages */
.message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 500;
}

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

.message.success {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #81c784;
}

.message.info {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #64b5f6;
}

/* Tab Navigation */
.tab-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 5px;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 12px 24px;
    color: white;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
}

.tab-btn:hover {
    background: rgba(255,255,255,0.2);
}

.tab-btn.active {
    background: white;
    color: #2E7D32;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Cards */
.card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.card h2 {
    color: #2E7D32;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4CAF50;
}

button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s ease;
}

button:hover {
    background: #45a049;
}

.save-btn {
    background: #2196F3;
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 20px;
}

.save-btn:hover {
    background: #1976D2;
}

/* Scorecard */
.scorecard-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

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

.scorecard-table th {
    background: #f5f5f5;
    font-weight: 600;
}

.scorecard-table input {
    width: 60px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
}

.scorecard-summary {
    display: flex;
    justify-content: space-around;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

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

.summary-item span:first-child {
    display: block;
    font-weight: 600;
    color: #666;
    margin-bottom: 5px;
}

.summary-item span:last-child {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2E7D32;
}

/* Game History */
.game-item {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    transition: box-shadow 0.3s ease;
}

.game-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

.game-course {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2E7D32;
}

.game-date {
    color: #666;
    font-size: 0.9rem;
}

.game-score {
    font-size: 1.1rem;
    font-weight: 600;
}

.no-games {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px;
}

/* Statistics */
.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.stat-label {
    font-weight: 600;
    color: #555;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2E7D32;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .tab-nav {
        flex-direction: column;
        gap: 5px;
    }
    
    .scorecard-summary {
        flex-direction: column;
        gap: 15px;
    }
    
    .game-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Single Hole Entry Styles */
.hole-entry {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.hole-header {
    margin-bottom: 30px;
}

.hole-header h3 {
    font-size: 2rem;
    color: #2E7D32;
    margin-bottom: 15px;
}

.hole-progress {
    margin-bottom: 10px;
}

.hole-progress span {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
    display: block;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #2E7D32);
    transition: width 0.3s ease;
}

.hole-info {
    margin-bottom: 30px;
}

.par-display {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 15px 25px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
}

.par-label {
    font-size: 1.1rem;
    color: #666;
    font-weight: 600;
}

.par-value {
    font-size: 2rem;
    font-weight: bold;
    color: #2E7D32;
}

.score-entry {
    margin-bottom: 30px;
}

.score-entry label {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.score-input-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.score-input-large {
    width: 80px;
    height: 60px;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    border: 3px solid #4CAF50;
    border-radius: 10px;
    background: white;
}

.score-input-large:focus {
    outline: none;
    border-color: #2E7D32;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.score-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #4CAF50;
    color: white;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.score-btn:hover {
    background: #45a049;
    transform: scale(1.1);
}

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

.quick-scores {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.quick-score-btn {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 80px;
}

.quick-score-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.quick-score-btn.eagle {
    border-color: #2196F3;
    color: #2196F3;
}

.quick-score-btn.eagle:hover {
    background: #2196F3;
    color: white;
}

.quick-score-btn.birdie {
    border-color: #4CAF50;
    color: #4CAF50;
}

.quick-score-btn.birdie:hover {
    background: #4CAF50;
    color: white;
}

.quick-score-btn.par {
    border-color: #666;
    color: #666;
}

.quick-score-btn.par:hover {
    background: #666;
    color: white;
}

.quick-score-btn.bogey {
    border-color: #ff9800;
    color: #ff9800;
}

.quick-score-btn.bogey:hover {
    background: #ff9800;
    color: white;
}

.quick-score-btn.double-bogey {
    border-color: #f44336;
    color: #f44336;
}

.quick-score-btn.double-bogey:hover {
    background: #f44336;
    color: white;
}

.hole-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: #4CAF50;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #45a049;
    transform: translateY(-2px);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

/* Completed Scorecard Styles */
.completed-scorecard {
    text-align: center;
}

.round-complete {
    margin-bottom: 30px;
}

.round-complete h3 {
    font-size: 2rem;
    color: #4CAF50;
    margin-bottom: 10px;
}

.round-complete p {
    font-size: 1.1rem;
    color: #666;
}

.scorecard-summary-detailed {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 2px solid #e0e0e0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 1.1rem;
}

.summary-row:not(:last-child) {
    border-bottom: 1px solid #e0e0e0;
}

.score-large {
    font-size: 2rem;
    font-weight: bold;
    color: #2E7D32;
}

.score-vs-par-large {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4CAF50;
}

.hole-by-hole {
    margin-bottom: 30px;
}

.hole-by-hole h4 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 20px;
}

.holes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.hole-summary {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    transition: all 0.2s ease;
}

.hole-summary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.hole-summary.eagle {
    border-color: #2196F3;
    background: #e3f2fd;
}

.hole-summary.birdie {
    border-color: #4CAF50;
    background: #e8f5e8;
}

.hole-summary.par {
    border-color: #666;
    background: #f5f5f5;
}

.hole-summary.bogey {
    border-color: #ff9800;
    background: #fff3e0;
}

.hole-summary.double-bogey {
    border-color: #f44336;
    background: #ffebee;
}

.hole-number {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.hole-par {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
}

.hole-score {
    font-size: 1.2rem;
    font-weight: bold;
}

.round-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Course Selection Styles */
.course-search-container {
    position: relative;
    margin-bottom: 15px;
}

.course-search-container input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
}

.course-search-container input:focus {
    border-color: #4CAF50;
    outline: none;
}

.course-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.course-suggestion {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.course-suggestion:hover {
    background: #f8f9fa;
}

.course-suggestion:last-child {
    border-bottom: none;
}

.suggestion-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.suggestion-location {
    font-size: 0.9rem;
    color: #666;
}

.suggestion-rating {
    font-size: 0.8rem;
    color: #4CAF50;
    margin-top: 4px;
}

.course-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-link {
    background: none;
    border: none;
    color: #4CAF50;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-link:hover {
    color: #45a049;
}

.selected-course {
    background: #f8f9fa;
    border: 2px solid #4CAF50;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.course-info h3 {
    color: #2E7D32;
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.course-info p {
    color: #666;
    margin-bottom: 10px;
}

.course-stats {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #555;
}

.course-stats span {
    background: white;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h3 {
    color: #2E7D32;
    margin: 0;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 25px;
}

.course-categories {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.category-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.category-btn.active {
    color: #4CAF50;
    border-bottom-color: #4CAF50;
}

.category-btn:hover {
    color: #4CAF50;
}

.course-list {
    display: grid;
    gap: 15px;
}

.course-item {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.course-item:hover {
    border-color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.course-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.course-item-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.course-item-location {
    color: #666;
    font-size: 0.9rem;
}

.course-item-rating {
    background: #4CAF50;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.course-item-stats {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #555;
}

.course-item-stats span {
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
}

/* Scorecard Header */
.scorecard-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.scorecard-header h2 {
    color: #2E7D32;
    margin-bottom: 10px;
}

.scorecard-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.9rem;
    color: #666;
}

.scorecard-info span {
    background: #f8f9fa;
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

/* Enhanced Hole Entry with Course Data */
.hole-info {
    margin-bottom: 30px;
}

.hole-details {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.hole-detail {
    text-align: center;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    min-width: 80px;
}

.hole-detail-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
    display: block;
}

.hole-detail-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2E7D32;
}

.hole-yardage {
    font-size: 1.1rem;
    color: #555;
}

/* Responsive Design for Course Selection */
@media (max-width: 768px) {
    .course-actions {
        flex-direction: column;
    }
    
    .course-stats {
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .course-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .course-item-stats {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .hole-details {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .hole-detail {
        min-width: 70px;
        padding: 12px;
    }
}

/* Player Management Styles */
.players-section {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background-color: #f9f9f9;
}

.players-list {
    margin-bottom: 15px;
    min-height: 40px;
}

.player-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.player-name {
    font-weight: 500;
    color: #333;
}

.player-remove {
    background: #f44336;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.player-remove:hover {
    background: #d32f2f;
}

.add-player-form {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.add-player-form input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.players-note {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    font-style: italic;
}

/* Multiplayer Scorecard Styles */
.multiplayer-scorecard {
    overflow-x: auto;
}

.scorecard-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9rem;
}

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

.scorecard-table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.scorecard-table .hole-header {
    background-color: #e8f5e8;
    font-weight: 600;
}

.scorecard-table .player-row {
    background-color: #fafafa;
}

.scorecard-table .player-name-cell {
    text-align: left;
    font-weight: 500;
    background-color: #f0f8ff;
}

.scorecard-table .total-cell {
    background-color: #fff3cd;
    font-weight: 600;
}

.score-input {
    width: 40px;
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-align: center;
    font-size: 0.9rem;
}

.score-input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 3px rgba(76, 175, 80, 0.3);
}

.current-hole {
    background-color: #e8f5e8 !important;
}

.completed-hole {
    background-color: #f0f0f0;
}

/* Player Statistics */
.player-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.player-stat-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
}

.player-stat-card h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
}

.stat-value {
    font-weight: 600;
    color: #333;
}

/* Responsive adjustments for multiplayer */
@media (max-width: 768px) {
    .scorecard-table {
        font-size: 0.8rem;
    }
    
    .scorecard-table th,
    .scorecard-table td {
        padding: 6px 4px;
    }
    
    .score-input {
        width: 35px;
    }
    
    .add-player-form {
        flex-direction: column;
    }
    
    .player-stats {
        grid-template-columns: 1fr;
    }
}
/* Multiplayer Game History Styles */
.game-players {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

.standing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.standing-item.winner {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-color: #f39c12;
}

.standing-position {
    font-size: 1.2rem;
    font-weight: 600;
    min-width: 60px;
}

.standing-player {
    flex: 1;
    font-weight: 500;
    margin: 0 15px;
}

.standing-score {
    font-weight: 600;
    color: #333;
}

.round-complete-header {
    text-align: center;
    margin-bottom: 20px;
}

.round-complete-header h3 {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.final-standings {
    margin-bottom: 25px;
}

.completed-actions {
    text-align: center;
    margin-top: 20px;
}

/* Score coloring in completed scorecard */
.scorecard-table .eagle {
    background-color: #d4edda;
    color: #155724;
    font-weight: 600;
}

.scorecard-table .birdie {
    background-color: #cce5ff;
    color: #004085;
    font-weight: 600;
}

.scorecard-table .par {
    background-color: #f8f9fa;
    color: #495057;
}

.scorecard-table .bogey {
    background-color: #fff3cd;
    color: #856404;
}

.scorecard-table .double-bogey {
    background-color: #f8d7da;
    color: #721c24;
}
/* Custom Golf Logo Styles */
.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.golf-logo-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 10px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.golf-logo-img:hover {
    transform: scale(1.05);
}

.header-logo {
    width: 60px;
    height: 60px;
}

.header-logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo-section .golf-logo-img {
    flex-shrink: 0;
}

.header-logo-section h1 {
    margin: 0;
}

.header-logo-section p {
    margin: 5px 0 0 0;
}

/* Legacy SVG logo styles (keeping for backward compatibility) */
.golf-logo {
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.golf-logo:hover {
    transform: scale(1.05);
}

/* Animation for the golf swing */
@keyframes swing {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(-15deg); }
    100% { transform: rotate(0deg); }
}

.golf-logo:hover .golf-club {
    animation: swing 0.6s ease-in-out;
    transform-origin: 85px 35px;
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    .header-logo-section {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .header-logo-section .golf-logo-img {
        width: 50px;
        height: 50px;
    }
    
    .logo-container .golf-logo-img {
        width: 80px;
        height: 80px;
    }
    
    .header-logo-section .golf-logo {
        width: 50px;
        height: 50px;
    }
    
    .logo-container .golf-logo {
        width: 70px;
        height: 70px;
    }
}
/* Single-Click Score Button Interface */
.current-hole-info {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.current-hole-info h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.5rem;
}

.hole-details {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hole-par, .hole-yardage, .hole-handicap {
    padding: 5px 10px;
    background: white;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
}

.hole-par {
    background: #e8f5e8;
    color: #2e7d32;
}

.players-scoring {
    margin: 20px 0;
}

.player-scoring-section {
    margin-bottom: 25px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.player-scoring-section h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.1rem;
    text-align: center;
}

.score-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.score-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 8px;
    min-width: 70px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

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

.score-btn.selected {
    border-color: #4CAF50;
    background: #e8f5e8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.score-number {
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1;
}

.score-label {
    font-size: 0.75rem;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Score type specific colors */
.score-btn.eagle {
    border-color: #2196F3;
}

.score-btn.eagle.selected {
    background: #e3f2fd;
    border-color: #1976D2;
}

.score-btn.eagle .score-number {
    color: #1976D2;
}

.score-btn.birdie {
    border-color: #4CAF50;
}

.score-btn.birdie.selected {
    background: #e8f5e8;
    border-color: #388E3C;
}

.score-btn.birdie .score-number {
    color: #388E3C;
}

.score-btn.par {
    border-color: #9E9E9E;
}

.score-btn.par.selected {
    background: #f5f5f5;
    border-color: #616161;
}

.score-btn.par .score-number {
    color: #616161;
}

.score-btn.bogey {
    border-color: #FF9800;
}

.score-btn.bogey.selected {
    background: #fff3e0;
    border-color: #F57C00;
}

.score-btn.bogey .score-number {
    color: #F57C00;
}

.score-btn.double-bogey {
    border-color: #FF5722;
}

.score-btn.double-bogey.selected {
    background: #fbe9e7;
    border-color: #D84315;
}

.score-btn.double-bogey .score-number {
    color: #D84315;
}

.score-btn.triple-bogey {
    border-color: #F44336;
}

.score-btn.triple-bogey.selected {
    background: #ffebee;
    border-color: #C62828;
}

.score-btn.triple-bogey .score-number {
    color: #C62828;
}

.score-btn.not-finished {
    border-color: #607D8B;
}

.score-btn.not-finished.selected {
    background: #eceff1;
    border-color: #455A64;
}

.score-btn.not-finished .score-number {
    color: #455A64;
    font-size: 1.6rem;
}

/* Action buttons */
.scorecard-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.btn-primary.ready {
    background: #4CAF50;
    border-color: #4CAF50;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

/* Responsive design for score buttons */
@media (max-width: 768px) {
    .score-buttons {
        gap: 6px;
    }
    
    .score-btn {
        min-width: 60px;
        padding: 8px 6px;
    }
    
    .score-number {
        font-size: 1.2rem;
    }
    
    .score-label {
        font-size: 0.7rem;
    }
    
    .hole-details {
        gap: 10px;
    }
    
    .scorecard-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .score-buttons {
        gap: 4px;
    }
    
    .score-btn {
        min-width: 50px;
        padding: 6px 4px;
    }
    
    .score-number {
        font-size: 1.1rem;
    }
    
    .score-label {
        font-size: 0.65rem;
    }
}
/* Player Autocomplete Styles */
.player-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.player-suggestion {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.player-suggestion:hover {
    background-color: #f8f9fa;
}

.player-suggestion:last-child {
    border-bottom: none;
}

.suggestion-name {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 2px;
}

.suggestion-info {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Make the player input container relative for positioning */
.player-input-container {
    position: relative;
}

#player-name-input {
    width: 100%;
}

/* Enhanced player management section */
.player-management {
    margin: 20px 0;
}

.player-input-section {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.player-input-wrapper {
    flex: 1;
    position: relative;
}

.players-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.player-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #e8f5e8;
    border: 1px solid #4CAF50;
    border-radius: 20px;
    font-size: 0.9rem;
}

.player-tag.current-user {
    background: #e3f2fd;
    border-color: #2196F3;
}

.player-tag .remove-player {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.player-tag .remove-player:hover {
    background: rgba(0,0,0,0.1);
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .player-input-section {
        flex-direction: column;
        gap: 8px;
    }
    
    .players-list {
        gap: 8px;
    }
    
    .player-tag {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
}
/* Shared Games Styles */
.game-item.shared-game {
    border-left: 4px solid #2196F3;
    background: linear-gradient(to right, #f8f9ff, #ffffff);
}

.shared-game-note {
    font-size: 0.85rem;
    color: #2196F3;
    font-style: italic;
    margin-top: 2px;
}

.shared-badge {
    display: inline-block;
    background: #2196F3;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    font-weight: 500;
}

/* Player management improvements */
.player-input-wrapper {
    position: relative;
}

.add-player-form {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 15px;
}

.add-player-form .player-input-wrapper {
    flex: 1;
}

/* Game history enhancements */
.game-players {
    font-size: 0.85rem;
    color: #666;
    margin-top: 2px;
}

.game-item {
    transition: all 0.2s ease;
}

.game-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
