/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.4;
    font-size: 14px;
}

/* App Container */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.app-header {
    background: linear-gradient(135deg, #2c5530, #4a7c59);
    color: white;
    padding: 15px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-brand {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: opacity 0.3s ease;
}

.header-brand:hover {
    opacity: 0.8;
}

.header-brand i {
    margin-right: 8px;
    font-size: 1.3rem;
    color: #90ee90;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    background: rgba(44, 85, 48, 0.15);
    padding: 10px 30px;
    border-bottom: 1px solid rgba(44, 85, 48, 0.3);
}

.breadcrumb-nav .breadcrumb {
    margin: 0;
}

/* Mobile Toggle Button */
.mobile-toggle-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.mobile-toggle-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

.mobile-toggle-btn.active {
    background: rgba(144,238,144,0.2);
    border-color: #90ee90;
    color: #90ee90;
}

.mobile-toggle-btn i {
    font-size: 1rem;
}

.mobile-toggle-text {
    font-size: 0.85rem;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb-item {
    color: #2c5530;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease;
    font-weight: 500;
}

.breadcrumb-item:hover {
    color: #1a3d1f;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #4a7c59;
    font-weight: 600;
}

.breadcrumb-item:not(:last-child)::after {
    content: '>';
    margin-left: 10px;
    color: #6c757d;
    font-weight: normal;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 30px;
    background-color: #f5f7fa;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.section-header {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h1 {
    font-size: 1.8rem;
    color: #2c5530;
    margin-bottom: 5px;
}

.section-header p {
    color: #666;
    font-size: 0.95rem;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, #4a7c59, #2c5530);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2c5530, #1a3d1f);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 85, 48, 0.3);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stat-card.clickable {
    cursor: pointer;
}

.stat-card.clickable:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.stat-card.clickable:active {
    transform: translateY(-3px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a7c59, #2c5530);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.stat-icon i {
    font-size: 1.5rem;
    color: white;
}

.stat-info h3 {
    font-size: 1.8rem;
    color: #2c5530;
    margin-bottom: 5px;
}

.stat-info p {
    color: #666;
    font-size: 0.9rem;
}

/* Grids */
.teams-grid, .players-grid, .courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Cards */
.team-card, .player-card, .course-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.team-card:hover, .player-card:hover, .course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.team-card h3, .player-card h3, .course-card h3 {
    color: #2c5530;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.team-card .team-image, .player-card .player-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
    padding: 5px;
}

.team-card .team-image img, .player-card .player-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: transparent;
}

.team-card .team-image i, .player-card .player-image i {
    font-size: 1.5rem;
    color: #6c757d;
}

/* New Player Card Layout */
.player-card .player-grade {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color, #4a7c59);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.player-card .player-name {
    font-size: 1.4rem;
    font-weight: bold;
    color: #2c5530;
    margin: 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.player-card .player-parents {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.player-card .parent-name {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #495057;
    font-weight: 500;
    font-size: 0.9rem;
}

.player-card .parent-name i {
    color: #4a7c59;
    font-size: 0.9rem;
}

.player-card.archived {
    opacity: 0.6;
    position: relative;
}

.archived-stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 2rem;
    font-weight: bold;
    color: rgba(220, 53, 69, 0.5);
    z-index: 10;
    pointer-events: none;
}

.card-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 5px;
}

.card-actions .btn {
    padding: 6px 10px;
    font-size: 0.8rem;
}

/* Matches */
.matches-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.match-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.match-teams {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c5530;
}

.match-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.match-status.win {
    background-color: #d4edda;
    color: #155724;
}

.match-status.lost {
    background-color: #f8d7da;
    color: #721c24;
}

.match-status.tied {
    background-color: #fff3cd;
    color: #856404;
}

.match-status.pending {
    background-color: #cce7ff;
    color: #004085;
}

.match-status.scheduled {
    background-color: #e3f2fd;
    color: #1976d2;
}

.match-status.in-progress {
    background-color: #fff3e0;
    color: #f57c00;
}

.match-status.completed {
    background-color: #e8f5e8;
    color: #388e3c;
}

.match-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
}

/* Filters */
.filters {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.filters select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background-color: white;
}

/* Match Filters */
.match-filters {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}

.filter-group label {
    font-weight: 600;
    color: #2c5530;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.filter-group select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background-color: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-group select:focus {
    outline: none;
    border-color: #4a7c59;
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

.filter-group select:hover {
    border-color: #4a7c59;
}

/* Mobile responsive for match filters */
@media (max-width: 768px) {
    .match-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 15px;
    }
    
    .filter-group {
        min-width: auto;
        width: 100%;
    }
    
    .filter-group select {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .match-filters {
        padding: 12px;
        gap: 12px;
        margin-bottom: 15px;
    }
    
    .filter-group label {
        font-size: 0.85rem;
    }
    
    .filter-group select {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

/* Standings Table */
.standings-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.standings-table table {
    width: 100%;
    border-collapse: collapse;
}

.standings-table th,
.standings-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.standings-table th {
    background-color: #2c5530;
    color: white;
    font-weight: 600;
}

.standings-table tr:hover {
    background-color: #f8f9fa;
}

.standings-table .wlt-column {
    display: none;
}

.standings-table .desktop-only {
    display: table-cell;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.modal-content.large {
    max-width: 800px;
}

.modal-content.modal-scrollable {
    max-width: 600px;
    max-height: 90vh;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #2c5530, #4a7c59);
    color: white;
    border-radius: 12px 12px 0 0;
    flex-shrink: 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    opacity: 0.7;
}

/* Edit Modal Cards */
.edit-info-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 30px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.edit-info-card:hover {
    border-color: #4a7c59;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.edit-info-card h3 {
    color: #2c5530;
    margin-bottom: 20px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.edit-info-card h3 i {
    color: #4a7c59;
    font-size: 1.1rem;
}

.edit-info-card .form-group {
    margin-bottom: 15px;
}

.edit-info-card .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.edit-info-card .form-group:last-child {
    margin-bottom: 0;
}

/* Hide Family Contact sections in Add/Edit Player modals */
.edit-info-card h3 i.fa-users {
    display: none !important;
}

.edit-info-card:has(h3 i.fa-users) {
    display: none !important;
}

/* Fallback for browsers that don't support :has() - target by content */
.edit-info-card h3[data-section="family-contact"] {
    display: none !important;
}

.edit-info-card[data-section="family-contact"] {
    display: none !important;
}

/* Alternative approach - hide by text content matching */
.edit-info-card h3:contains("Family Contact") {
    display: none !important;
}

.edit-info-card:has(h3:contains("Family Contact")) {
    display: none !important;
}

/* Most reliable approach - hide the entire card containing Family Contact heading */
.edit-info-card:nth-child(3) {
    display: none !important;
}

/* Hide Family Contact sections in player detail view */
.player-info-card h3 i.fa-users {
    display: none !important;
}

.player-info-card:has(h3 i.fa-users) {
    display: none !important;
}

/* Target Family Contact card in player detail view by position */
.player-info-display .player-info-card:nth-child(2) {
    display: none !important;
}

/* Alternative targeting for Family Contact in player detail */
.player-info-card h3:contains("Family Contact") {
    display: none !important;
}

.player-info-card:has(h3:contains("Family Contact")) {
    display: none !important;
}

/* Modal Form Actions */
.modal-body .form-actions {
    margin: 20px 30px 30px 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-shrink: 0;
    flex-direction: row;
}

/* Force button order: Save Changes on LEFT, Cancel on RIGHT */
.modal-body .form-actions .btn-secondary {
    order: 2;
}

.modal-body .form-actions .btn-primary {
    order: 1;
}

/* Forms */
form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-row .form-group {
    margin-bottom: 0;
}


.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a7c59;
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    flex-direction: row;
}

/* Force button order: Save Changes on LEFT, Cancel on RIGHT */
.form-actions .btn-secondary {
    order: 2;
}

.form-actions .btn-primary {
    order: 1;
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4a7c59;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    animation: toastSlideIn 0.3s ease;
    max-width: 350px;
}

.toast.success {
    background-color: #28a745;
}

.toast.error {
    background-color: #dc3545;
}

.toast.info {
    background-color: #17a2b8;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Player Details */
.player-details {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
}

.player-details div {
    margin-bottom: 5px;
}

.player-grade {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: #4a7c59;
    font-weight: 500;
}

.player-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: #2c5530;
    font-weight: 500;
}

.player-parents {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e9ecef;
}

.parent-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    padding: 2px 0;
}

.parent-info:last-child {
    margin-bottom: 0;
}

.parent-name {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #495057;
    font-weight: 500;
    font-size: 0.85rem;
}

.parent-phone {
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 400;
}

/* Match Detail Content */
.match-detail-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.match-detail-section h3 {
    color: #2c5530;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.leaderboard-table th:first-child,
.leaderboard-table td:first-child {
    text-align: center;
}

.leaderboard-table th:nth-child(2),
.leaderboard-table td:nth-child(2) {
    text-align: left;
}

.leaderboard-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c5530;
}

.leaderboard-table tr:hover {
    background-color: #f8f9fa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .nav-menu {
        flex-direction: row;
        overflow-x: auto;
        padding: 0 10px;
    }
    
    .nav-item {
        white-space: nowrap;
        min-width: 120px;
        justify-content: center;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .teams-grid, .players-grid, .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .match-detail-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 2px;
    }
    
    .section-header h1 {
        font-size: 1.4rem;
    }
    
    .stat-card {
        padding: 15px;
        flex-direction: row;
        align-items: center;
    }
    
    .stat-info h3 {
        font-size: 1.5rem;
    }

    /* Compact Player Cards for Mobile */
    .player-card {
        padding: 8px 12px;
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 60px;
        max-height: 60px;
    }

    .player-card .player-image {
        width: 40px;
        height: 40px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .player-card-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 44px;
    }

    .player-card .player-name {
        font-size: 1.1rem;
        margin: 0 0 2px 0;
        line-height: 1.2;
    }

    .player-card .player-grade {
        position: static;
        background: none;
        color: #4a7c59;
        padding: 0;
        font-size: 0.7rem;
        margin: 0;
        align-self: flex-start;
    }

    .player-card .player-details {
        display: none;
    }

    .player-card .player-parents {
        display: none;
    }

    .player-card .card-actions {
        position: static;
        margin-left: auto;
        flex-shrink: 0;
    }

    /* ONLY target match detail form fields - be more specific */
    #match-detail .match-info-card {
        padding: 4px !important;
        margin-bottom: 4px !important;
    }
    
    #match-detail .match-info-row {
        padding: 2px 0 !important;
        margin-bottom: 2px !important;
    }
    
    #match-detail .match-info-row:last-child {
        margin-bottom: 0 !important;
    }
    
    #match-detail .editable-field {
        padding: 6px 8px !important;
        font-size: 0.9rem !important;
        margin-top: 2px !important;
    }
    
    /* Specific targeting for match setup form fields ONLY */
    #match-detail .match-config-section .match-info-card {
        padding: 2px !important;
        margin-bottom: 2px !important;
    }
    
    #match-detail .match-config-section .match-info-row {
        padding: 1px 0 !important;
        margin-bottom: 1px !important;
    }
    
    #match-detail .match-config-section .editable-field {
        padding: 4px 6px !important;
        margin-top: 1px !important;
    }
    
    /* Starting hole section compact - ONLY in match detail */
    #match-detail .starting-hole-section {
        margin-top: 4px !important;
        padding: 2px !important;
    }
    
    #match-detail .starting-hole-section h3 {
        font-size: 1rem !important;
        margin-bottom: 4px !important;
    }
    
    #match-detail .hole-options {
        flex-direction: row !important;
        justify-content: center;
        gap: 10px !important;
    }
    
    #match-detail .hole-option {
        flex: 1 !important;
        aspect-ratio: 1 / 1 !important;
        padding: 8px !important;
        border-radius: 8px !important;
    }
    
    #match-detail .hole-option i {
        font-size: 1.2rem !important;
        margin-bottom: 4px !important;
    }
    
    #match-detail .hole-option span {
        font-size: 1rem !important;
    }

    /* ONLY target form elements within match detail section */
    #match-detail select, 
    #match-detail input[type="date"], 
    #match-detail input[type="time"], 
    #match-detail input[type="text"] {
        margin-bottom: 2px !important;
        margin-top: 2px !important;
        padding: 4px 6px !important;
        font-size: 0.9rem !important;
    }
    
    /* Target divs around form fields ONLY in match detail */
    #match-detail div:has(select), 
    #match-detail div:has(input[type="date"]), 
    #match-detail div:has(input[type="time"]) {
        margin-bottom: 2px !important;
        padding: 2px 0 !important;
    }
    
    /* Target form groups ONLY in match detail */
    #match-detail .form-group, 
    #match-detail .field-container, 
    #match-detail .input-group {
        margin-bottom: 2px !important;
        padding: 1px 0 !important;
    }
    
    /* Target wrapper divs ONLY in match setup area */
    #match-detail .match-tab-content > div, 
    #match-detail .match-config-content > div,
    #match-detail .setup-content > div {
        margin-bottom: 2px !important;
        padding: 1px 0 !important;
    }
    
    /* Aggressive targeting ONLY within match detail */
    #match-detail .match-tab-content.active * {
        margin-bottom: 2px !important;
    }
    
    #match-detail .match-tab-content.active select,
    #match-detail .match-tab-content.active input {
        margin: 2px 0 !important;
        padding: 4px 6px !important;
    }

    /* Keep normal form styling for modals and other sections */
    .modal form {
        padding: 20px;
    }
    
    .modal .form-group {
        margin-bottom: 15px;
    }
    
    .modal .form-group input,
    .modal .form-group select,
    .modal .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
        margin-bottom: 0;
        margin-top: 0;
    }

    .app-header {
        padding: 8px 12px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .header-brand {
        font-size: 1rem;
    }

    .header-brand i {
        font-size: 1.1rem;
        margin-right: 6px;
    }

    .mobile-toggle-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
        border-radius: 6px;
    }

    .mobile-toggle-text {
        font-size: 0.75rem;
    }

    .breadcrumb-nav {
        padding: 6px 12px;
    }

    .breadcrumb {
        gap: 6px;
        flex-wrap: wrap;
    }

    .breadcrumb-item {
        font-size: 0.8rem;
    }

    .breadcrumb-item:not(:last-child)::after {
        margin-left: 6px;
        font-size: 0.7rem;
    }

    .main-content {
        padding: 10px;
        flex: 1;
        overflow-y: auto;
        background-color: #f5f7fa;
    }

    .section-header {
        margin-bottom: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .section-header p {
        font-size: 0.85rem;
    }

    .dashboard-stats {
        display: flex;
        gap: 10px;
        margin-bottom: 20px;
    }

    .stat-card {
        flex-direction: column;
        padding: 15px 5px;
        text-align: center;
        justify-content: center;
        flex: 1;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .stat-icon i {
        font-size: 1.1rem;
    }

    .stat-info h3 {
        font-size: 1.4rem;
        margin-bottom: 2px;
    }

    .stat-info p {
        font-size: 0.8rem;
    }

    .teams-grid,
    .players-grid,
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .team-card {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 5px 15px;
    }

    .team-card .team-image {
        margin-bottom: 0;
    }

    .player-card,
    .course-card {
        padding: 15px;
    }

    .team-card h3,
    .player-card h3,
    .course-card h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .dashboard-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .dashboard-standings h2,
    .recent-matches h2 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .standings-table th,
    .standings-table td {
        padding: 8px 6px;
        font-size: 0.75rem;
        text-align: center;
    }

    .standings-table .desktop-only {
        display: none;
    }

    .standings-table .wlt-column {
        display: table-cell;
    }
    .standings-table th:nth-child(2),
    .standings-table td:nth-child(2) {
        text-align: left;
    }

    .match-card {
        padding: 15px;
    }

    .match-teams {
        font-size: 1rem;
    }

    .match-status {
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    .match-info {
        font-size: 0.8rem;
        margin-top: 10px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .btn-small {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .modal-content {
        width: 95%;
        max-width: 350px;
        margin: 10% auto;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-header h2 {
        font-size: 1.2rem;
    }

    form {
        padding: 20px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .form-actions {
        margin-top: 20px;
        padding-top: 15px;
        flex-direction: column;
        gap: 10px;
    }

    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .team-header {
        padding: 15px;
        flex-direction: row;
        text-align: left;
        gap: 15px;
        margin-bottom: 0;
    }

    .team-header-image {
        width: 60px;
        height: 60px;
    }

    .team-header-info h1 {
        font-size: 1.4rem;
        margin-bottom: 5px;
    }

.team-header-info p {
    font-size: 0.85rem;
}

    .teesheet-header h3 {
        display: none;
    }
}

/* Desktop Team Nav Tabs */
.team-nav-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.team-nav-tab {
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 500;
    color: #495057;
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.team-nav-tab:hover {
    background-color: #f8f9fa;
    color: #2c5530;
}

.team-nav-tab.active {
    color: #2c5530;
    border-bottom-color: #4a7c59;
    font-weight: 600;
}

@media (max-width: 480px) {

    /* Match Summary Mobile Optimizations */
    .match-summary-section .section-header {
        display: none; /* Hide the header completely on mobile */
    }
    
    .match-summary-top-bar {
        padding: 12px;
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .summary-team-left, .summary-team-right {
        display: flex;
        align-items: center;
        gap: 6px;
        flex: 1;
        min-width: 0;
    }

    .summary-team-left {
        justify-content: flex-start;
    }

    .summary-team-right {
        justify-content: flex-end;
        flex-direction: row-reverse;
    }
    
    .summary-team-logo {
        width: 64px; /* 2x increase from 32px */
        height: 64px;
    }
    
    .summary-team-record {
        font-size: 12px;
        color: #666;
        margin-top: 4px;
    }
    
    .summary-score-section {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        flex: 0 0 auto;
        justify-content: center;
    }
    
    .summary-team-score {
        font-size: 48px; /* 2x increase from 24px */
        font-weight: bold;
        color: #333;
    }
    
    .summary-final-label {
        font-size: 10px;
        color: #666;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .summary-winner-badge,
    .summary-tie-badge {
        font-size: 10px;
        padding: 2px 4px;
        border-radius: 3px;
        font-weight: bold;
    }
    
    .summary-winner-badge {
        background-color: #28a745;
        color: white;
    }
    
    .summary-tie-badge {
        background-color: #ffc107;
        color: #333;
    }
    
    /* Team Summary Cards Mobile */
    .match-summary-grid {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 12px;
    }
    
    .team-summary-container {
        background: white;
        border-radius: 6px;
        padding: 8px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    
    .team-summary-header {
        display: flex;
        align-items: center;
        gap: 2px;
        margin-bottom: 2px;
        padding-bottom: 1px;
        border-bottom: 1px solid #eee;
        min-height: 8px;
    }
    
    .team-summary-image {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        object-fit: cover;
    }
    
    .team-summary-name {
        font-size: 6px;
        font-weight: 600;
        color: #333;
        margin: 0;
        line-height: 1;
    }
    
    .team-players-table h4 {
        font-size: 12px;
        margin: 0 0 6px 0;
        color: #666;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .compact-table {
        width: 100%;
        font-size: 11px;
    }
    
    .compact-table th,
    .compact-table td {
        padding: 3px 2px;
        text-align: left;
    }
    
    .compact-table th {
        background-color: #f8f9fa;
        font-weight: 600;
        color: #666;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }
    
    .compact-table th:first-child,
    .compact-table td:first-child {
        width: 25px;
        text-align: center;
    }
    
    .compact-table th:nth-child(2),
    .compact-table td:nth-child(2) {
        width: auto;
        min-width: 60px;
    }
    
    .compact-table th:nth-child(3),
    .compact-table td:nth-child(3),
    .compact-table th:nth-child(4),
    .compact-table td:nth-child(4),
    .compact-table th:nth-child(5),
    .compact-table td:nth-child(5) {
        width: 30px;
        text-align: center;
    }
    
    .highlight-player {
        background-color: #fff3cd;
    }
    
    .trophy-icon {
        color: #ffc107;
        font-size: 10px;
        margin-left: 2px;
    }
    
    /* Leaderboard Mobile - Full Width */
    .leaderboard-section {
        margin-top: 16px;
        width: calc(100vw); /* Use full viewport width */
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        padding: 0 12px; /* Add padding for content indentation */
        box-sizing: border-box;
    }
    
    .leaderboard-section h3 {
        padding-left: 8px; /* Add extra left padding for the header */
    }
    
    .leaderboard-section h3 {
        font-size: 14px;
        margin-bottom: 8px;
        color: #333;
    }
    
    .scoring-grid {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        background: white;
        border-radius: 0; /* Remove border radius for full width */
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        border: 1px solid #e9ecef;
        border-left: none; /* Remove left border for full width */
        border-right: none; /* Remove right border for full width */
        width: calc(100vw); /* Use full viewport width */
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }
    
    .scoring-table {
        min-width: 600px;
        font-size: 10px;
        width: 100%;
        margin: 0;
        border-radius: 0;
    }
    
    .scoring-table th,
    .scoring-table td {
        padding: 4px 8px; /* Add more padding for readability */
        white-space: nowrap;
    }
    
    .scoring-table th:first-child,
    .scoring-table td:first-child {
        padding-left: 20px; /* Extra padding for first column - increased from 12px */
    }
    
    .scoring-table th:last-child,
    .scoring-table td:last-child {
        padding-right: 12px; /* Extra padding for last column */
    }
    
    .pos-col {
        width: 25px;
    }
    
    .player-col {
        min-width: 80px;
        max-width: 100px;
    }
    
    .player-team-logo {
        width: 12px;
        height: 12px;
        margin-right: 0px;
    }
    
    .competing-star {
        color: #ffc107;
        font-size: 8px;
        margin-left: 1px;
    }
    
    /* Match Complete Section Mobile */
    .match-complete-section {
        margin-top: 12px;
        text-align: center;
    }
    
    .match-complete-section .btn {
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* Team Management */
.team-header {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 30px;
}

.team-header-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.team-header-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.team-header-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: transparent;
}

.team-header-image i {
    font-size: 2.5rem;
    color: #6c757d;
}

.team-header-info h1 {
    color: #2c5530;
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.team-header-info p {
    color: #666;
    font-size: 1.1rem;
}

.team-management-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.team-players-section,
.team-matches-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.team-players-section .section-header,
.team-matches-section .section-header {
    margin-bottom: 20px;
}

.team-players-section h2,
.team-matches-section h2 {
    color: #2c5530;
    font-size: 1.8rem;
}

/* Clickable Team Cards */
.team-card.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.team-card.clickable:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.team-card.clickable .card-actions {
    display: none;
}

/* Clickable Course Cards */
.course-card.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.course-card.clickable:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.course-card.clickable .card-actions {
    display: none;
}

/* Clickable Player Cards */
.player-card.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.player-card.clickable:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.player-card.clickable .card-actions {
    display: none;
}

/* Player Detail Page */
.player-header {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 30px;
}

.player-header-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.player-header-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.player-header-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: transparent;
}

.player-header-image i {
    font-size: 2.5rem;
    color: #6c757d;
}

.player-header-info h1 {
    color: #2c5530;
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.player-header-info p {
    color: #666;
    font-size: 1.1rem;
}

.player-header.archived {
    position: relative;
    opacity: 0.6;
}

.player-header.archived::after {
    content: 'ARCHIVED';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 3rem;
    font-weight: bold;
    color: rgba(220, 53, 69, 0.5);
    z-index: 10;
    pointer-events: none;
}

/* Match Locked Styles - Reduced opacity and lighter overlay for better readability */
.match-tab-content.locked {
    position: relative;
    opacity: 0.85; /* Increased from 0.7 to 0.85 for better readability */
}

.match-tab-content.locked::after {
    content: 'LOCKED';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 4rem;
    font-weight: bold;
    color: rgba(220, 53, 69, 0.15); /* Reduced from 0.3 to 0.15 for less intrusion */
    z-index: 10;
    pointer-events: none;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05); /* Reduced shadow for less blur */
}

/* Specific locked styling for different tab contents */
.match-config-content.locked,
.teesheet-content.locked,
.scoring-content.locked,
.summary-content.locked {
    position: relative;
    opacity: 0.85; /* Increased from 0.7 to 0.85 for better readability */
}

.match-config-content.locked::after,
.teesheet-content.locked::after,
.scoring-content.locked::after,
.summary-content.locked::after {
    content: 'LOCKED';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 4rem;
    font-weight: bold;
    color: rgba(220, 53, 69, 0.15); /* Reduced from 0.3 to 0.15 for less intrusion */
    z-index: 10;
    pointer-events: none;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05); /* Reduced shadow for less blur */
}

/* Mobile responsive for locked styling */
@media (max-width: 768px) {
    .match-tab-content.locked::after,
    .match-config-content.locked::after,
    .teesheet-content.locked::after,
    .scoring-content.locked::after,
    .summary-content.locked::after {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .match-tab-content.locked::after,
    .match-config-content.locked::after,
    .teesheet-content.locked::after,
    .scoring-content.locked::after,
    .summary-content.locked::after {
        font-size: 2.5rem;
    }
}

.player-detail-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.player-info-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.player-info-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.player-info-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.player-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #4a7c59;
}

.player-info-card h3 {
    color: #2c5530;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-info-card h3 i {
    color: #4a7c59;
    font-size: 1.2rem;
}

.player-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.player-info-row:last-child {
    border-bottom: none;
}

.player-info-label {
    font-weight: 500;
    color: #495057;
    font-size: 0.95rem;
}

.player-info-value {
    color: #2c5530;
    font-weight: 600;
    font-size: 1rem;
}

.player-info-value.empty {
    color: #6c757d;
    font-style: italic;
    font-weight: normal;
}

/* Player Stats Card */
.player-stats-card {
    background: linear-gradient(135deg, #4a7c59, #2c5530);
    color: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

.player-stats-card h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #90ee90;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    margin-top: 5px;
}

/* Player Quick Actions */
.player-quick-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.quick-action-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 500;
}

.quick-action-btn.primary {
    background: linear-gradient(135deg, #4a7c59, #2c5530);
    color: white;
}

.quick-action-btn.primary:hover {
    background: linear-gradient(135deg, #2c5530, #1a3d1f);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 85, 48, 0.3);
}

.quick-action-btn.secondary {
    background: #6c757d;
    color: white;
}

.quick-action-btn.secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Course Detail Page */
.course-header {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.course-header-info h1 {
    color: #2c5530;
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.course-header-info p {
    color: #666;
    font-size: 1.1rem;
}

.course-address-edit {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.course-address-edit input,
.course-address-edit textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.course-detail-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.course-holes-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.holes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.hole-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hole-card:hover {
    border-color: #4a7c59;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hole-card.missing {
    border: 2px dashed #ccc;
    background-color: #f8f9fa;
    color: #666;
}

.hole-card.missing:hover {
    border-color: #4a7c59;
    background-color: #e8f5e8;
}

.hole-number {
    font-size: 2rem;
    font-weight: bold;
    color: #2c5530;
    margin-bottom: 10px;
}

.hole-par {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 5px;
}

.hole-yardage {
    font-size: 1rem;
    color: #888;
}

.hole-handicap {
    font-size: 0.9rem;
    color: #999;
    margin-top: 5px;
}

/* Responsive Updates */
@media (max-width: 1024px) {
    .dashboard-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .team-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .app-header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .breadcrumb {
        align-self: flex-start;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .team-header {
        padding: 20px;
    }
    
    .team-header-image {
        width: 80px;
        height: 80px;
    }
    
    .team-header-info h1 {
        font-size: 2rem;
    }
    
    .team-players-section,
    .team-matches-section {
        padding: 20px;
    }
    
    /* Player Detail Mobile Responsive */
    .player-info-display {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .player-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }
    
    .player-header-image {
        width: 80px;
        height: 80px;
    }
    
    .player-header-info h1 {
        font-size: 2rem;
    }
    
    .player-info-section {
        padding: 20px;
    }
    
    .player-info-card {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .player-quick-actions {
        flex-direction: column;
    }
    
    .quick-action-btn {
        min-width: auto;
    }
    
    /* Edit Modal Mobile Responsive */
    .modal-content.modal-scrollable {
        max-width: 95%;
        max-height: 95vh;
    }
    
    .edit-info-card {
        margin: 15px 20px;
        padding: 20px;
    }
    
    .edit-info-card .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .modal-body .form-actions {
        margin: 15px 20px 20px 20px;
        flex-direction: column;
    }
    
    .modal-body .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-muted {
    color: #6c757d;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-20 {
    margin-top: 20px;
}

.hidden {
    display: none;
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Match Navigation */
.match-navigation {
    margin-bottom: 20px;
}

.match-navigation .match-nav-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
}

.match-navigation .match-nav-tab {
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 500;
    color: #495057;
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.match-navigation .match-nav-tab:hover {
    background-color: #f8f9fa;
    color: #2c5530;
}

.match-navigation .match-nav-tab.active {
    color: #2c5530;
    border-bottom-color: #4a7c59;
    font-weight: 600;
}

.match-tab-content {
    display: none;
}

.match-tab-content.active {
    display: block;
}

/* Mobile styles for Match Navigation */
@media (max-width: 480px) {
    .match-navigation {
        margin-bottom: 2px;
    }

    .match-nav-tabs {
        gap: 1px;
        border-bottom: none;
        background-color: transparent;
        margin-bottom: 2px;
    }

    .match-nav-tab {
        flex: 1;
        padding: 4px 2px;
        font-size: 0.8rem !important;
        color: #495057;
        background-color: white;
        border: 1px solid #ddd;
        border-radius: 3px;
        flex-direction: column;
        justify-content: center;
        gap: 1px;
        border-bottom: 1px solid #ddd; /* Override desktop style */
        min-height: 32px;
    }

    .match-nav-tab:hover {
        background-color: #e9ecef;
    }

    .match-nav-tab.active {
        background-color: white;
        border-color: #4a7c59;
        color: #2c5530;
        font-weight: 600;
    }

    .match-nav-tab i {
        font-size: 0.8rem;
    }

    .match-tab-content {
        padding: 2px 0;
    }
    
    .match-config-section,
    .teesheet-section,
    .match-scoring-section,
    .match-summary-section {
        padding: 2px;
        margin-bottom: 2px;
    }
    
    .match-config-content {
        padding: 2px;
    }
    
    .match-info-card {
        padding: 4px;
        margin-bottom: 4px;
    }
    
    .match-info-row {
        padding: 4px 0;
        margin-bottom: 2px;
    }
    
    .match-info-row:last-child {
        margin-bottom: 0;
    }
    
    .editable-field {
        padding: 6px 8px;
        font-size: 0.9rem;
        margin-top: 2px;
    }
    
    .centered-fields .match-info-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }
    
    .starting-hole-section {
        margin-top: 8px;
        padding: 4px;
    }
    
    .starting-hole-section h3 {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .hole-options {
        gap: 4px;
    }
    
    .hole-option {
        padding: 6px 8px;
        min-height: 40px;
    }
    
    .hole-option i {
        font-size: 1rem;
        margin-bottom: 2px;
    }
    
    .hole-option span {
        font-size: 0.8rem;
    }
}

/* Match Detail Specific Styles */
.match-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.match-info-row:last-child {
    border-bottom: none;
}

.match-info-row .label {
    font-weight: 500;
    color: #495057;
    font-size: 0.95rem;
}

.match-info-row .value {
    color: #2c5530;
    font-weight: 600;
    font-size: 1rem;
}

.starting-hole-section {
    margin-top: 25px;
}

.starting-hole-section h3 {
    color: #2c5530;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.hole-options {
    display: flex;
    gap: 15px;
}

.hole-option {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.hole-option:hover {
    border-color: #4a7c59;
    background: #f8f9fa;
}

.hole-option.selected {
    border-color: #4a7c59;
    background: #e8f5e8;
    color: #2c5530;
}

.hole-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
    border-color: #e9ecef;
    color: #6c757d;
}

.hole-option.disabled:hover {
    border-color: #e9ecef;
    background: #f8f9fa;
    transform: none;
}

.nine-hole-indicator {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffc107;
    color: #856404;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 10;
}

.nine-hole-indicator i {
    margin-right: 4px;
    font-size: 0.7rem;
}

.hole-option i {
    font-size: 1.5rem;
    color: #4a7c59;
    margin-bottom: 8px;
    display: block;
}

.hole-option span {
    font-size: 1.2rem;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.hole-option small {
    font-size: 0.9rem;
    color: #666;
}

.unassigned-section {
    margin-top: 30px;
}

.unassigned-section h3 {
    color: #2c5530;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.unassigned-teams {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.unassigned-team {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    background: #f8f9fa;
}

.unassigned-team h4 {
    color: #2c5530;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.unassigned-players-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
    align-content: flex-start;
}

.unassigned-player {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: grab;
    transition: all 0.3s ease;
}

.unassigned-player:hover {
    border-color: #4a7c59;
    background: #e8f5e8;
    transform: translateY(-1px);
}

.unassigned-player:active {
    cursor: grabbing;
}

.unassigned-player i {
    color: #4a7c59;
    font-size: 1rem;
}

.unassigned-player span {
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.player-group {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    background: white;
    transition: all 0.3s ease;
}

.player-group:hover {
    border-color: #4a7c59;
    box-shadow: 0 4px 12px rgba(74, 124, 89, 0.1);
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.group-header h4 {
    color: #2c5530;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.group-players {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.group-team {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    background: #f8f9fa;
}

.group-team h5 {
    color: #2c5530;
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.group-player-slots {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player-slot {
    min-height: 50px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.player-slot.has-player {
    border: 2px solid #4a7c59;
    background: #e8f5e8;
}

.empty-slot {
    color: #999;
    font-style: italic;
    font-size: 0.9rem;
    padding: 15px;
}

.assigned-player {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 15px;
    background: white;
    border-radius: 6px;
}

.assigned-player i {
    color: #4a7c59;
    margin-right: 8px;
}

.assigned-player span {
    font-weight: 500;
    color: #333;
    flex: 1;
}

.remove-player {
    color: #dc3545;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.remove-player:hover {
    background: #dc3545;
    color: white;
}

.error-message {
    text-align: center;
    padding: 40px;
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
}

.error-message i {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

.error-message p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Mobile responsive for match detail */
@media (max-width: 768px) {
    .hole-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .unassigned-teams {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .group-players {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .player-group {
        padding: 15px;
    }
}

/* Mobile view specific styles for match detail */
.mobile-view .hole-options {
    flex-direction: row;
    gap: 8px;
}

.mobile-view .hole-option {
    padding: 10px 12px;
    min-height: 50px;
}

.mobile-view .hole-option i {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.mobile-view .hole-option span {
    font-size: 1rem;
    margin-bottom: 4px;
}

.mobile-view .hole-option small {
    font-size: 0.8rem;
}

.mobile-view .unassigned-teams {
    grid-template-columns: 1fr;
    gap: 12px;
}

.mobile-view .unassigned-team {
    padding: 12px;
}

.mobile-view .unassigned-team h4 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.mobile-view .unassigned-player {
    padding: 8px 10px;
}

.mobile-view .unassigned-player span {
    font-size: 0.85rem;
}

.mobile-view .player-group {
    padding: 15px;
}

.mobile-view .group-players {
    grid-template-columns: 1fr;
    gap: 12px;
}

.mobile-view .group-team {
    padding: 12px;
}

.mobile-view .group-team h5 {
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.mobile-view .assigned-player {
    padding: 10px 12px;
}

.mobile-view .assigned-player span {
    font-size: 0.85rem;
}

.mobile-view .remove-player {
    font-size: 1rem;
}

/* Match Teams Header Styles */
.match-teams-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 20px;
    background: linear-gradient(135deg, #2c5530, #4a7c59);
    color: white;
    border-radius: 12px;
    margin-bottom: 20px;
}

.team-display {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

.team-display i {
    font-size: 1.4rem;
    color: #90ee90;
}

.vs-divider {
    font-size: 1.5rem;
    font-weight: bold;
    opacity: 0.8;
    padding: 0 10px;
}

/* Mobile responsive for match teams header */
@media (max-width: 768px) {
    .match-teams-header {
        gap: 1rem;
        padding: 15px;
    }
    
    .team-display {
        font-size: 1rem;
        gap: 8px;
    }
    
    .team-display i {
        font-size: 1.2rem;
    }
    
    .vs-divider {
        font-size: 1.2rem;
        padding: 0 8px;
    }
}

@media (max-width: 480px) {
    .match-teams-header {
        gap: 0.5rem;
        padding: 8px 12px;
        margin-bottom: 2px;
    }
    
    .team-display {
        font-size: 0.95rem;
        gap: 6px;
    }
    
    .team-display i {
        font-size: 1rem;
    }
    
    .vs-divider {
        font-size: 0.9rem;
        padding: 0 3px;
    }
}

/* Mobile view specific styles for match teams header */
.mobile-view .match-teams-header {
    gap: 0.8rem;
    padding: 12px;
    margin-bottom: 15px;
}

.mobile-view .team-display {
    font-size: 0.9rem;
    gap: 6px;
}

.mobile-view .team-display i {
    font-size: 1rem;
}

.mobile-view .vs-divider {
    font-size: 1rem;
    padding: 0 6px;
}

/* Editable Field Styles */
.editable-field {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 1rem;
    width: 100%;
    transition: all 0.3s ease;
    font-family: inherit;
}

.editable-field:focus {
    outline: none;
    border-color: #4a7c59;
    box-shadow: 0 0 0 2px rgba(74, 124, 89, 0.1);
    background: #fff;
}

.editable-field:hover {
    border-color: #4a7c59;
}

.match-info-row .editable-field {
    max-width: 200px;
    margin: 0 auto;
}

/* Mobile responsive for editable fields */
@media (max-width: 768px) {
    .match-info-row .editable-field {
        max-width: none;
        width: 100%;
        margin-left: 0;
        margin-top: 8px;
    }
    
    .match-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Mobile view specific styles for editable fields */
.mobile-view .match-info-row .editable-field {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-top: 6px;
    padding: 6px 8px;
    font-size: 0.9rem;
}

.mobile-view .match-info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 8px 0;
}

/* Teetime Table Styles */
.teetime-table-container {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.teetime-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.teetime-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.teetime-table {
    width: 100%;
    border-collapse: collapse;
}

.teetime-table th {
    background: #2c5530;
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

.teetime-table td {
    padding: 0;
    border-bottom: 1px solid #e9ecef;
}

.teetime-table tbody tr:last-child td {
    border-bottom: none;
}

.team-cell {
    padding: 12px 15px;
    font-weight: 500;
    color: #2c5530;
    background: #f8f9fa;
    width: 30%;
    font-size: 0.9rem;
}

.player-cell {
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: white;
    width: 70%;
}

.player-cell:hover {
    background: #f0f8f0;
}

.assigned-player-name {
    font-weight: 500;
    color: #2c5530;
    font-size: 0.9rem;
}

.empty-slot-text {
    color: #999;
    font-style: italic;
    font-size: 0.85rem;
}

.remove-player-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-player-btn:hover {
    background: #c82333;
    transform: translateY(-50%) scale(1.1);
}

/* Compact Unassigned Players Styles */
.unassigned-teams-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.unassigned-team-compact {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    background: #f8f9fa;
}

.unassigned-team-compact h4 {
    color: #2c5530;
    margin-bottom: 10px;
    font-size: 0.95rem;
    font-weight: 600;
}

.unassigned-players-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.unassigned-player-compact {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

.unassigned-player-compact:hover {
    border-color: #4a7c59;
    background: #e8f5e8;
    transform: translateY(-1px);
}

/* Mobile responsive for teetime tables */
@media (max-width: 768px) {
    .unassigned-teams-compact {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .teetime-table th,
    .teetime-table .team-cell,
    .teetime-table .player-cell {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .unassigned-player-compact {
        font-size: 0.75rem;
        padding: 5px 8px;
    }
}

/* Mobile view specific styles for teetime tables */
.mobile-view .teetime-header {
    padding: 12px;
}

.mobile-view .teetime-header h4 {
    font-size: 1rem;
}

.mobile-view .teetime-table th,
.mobile-view .team-cell,
.mobile-view .player-cell {
    padding: 8px 10px;
    font-size: 0.8rem;
}

.mobile-view .unassigned-teams-compact {
    grid-template-columns: 1fr;
    gap: 10px;
}

.mobile-view .unassigned-team-compact {
    padding: 10px;
}

.mobile-view .unassigned-team-compact h4 {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.mobile-view .unassigned-player-compact {
    font-size: 0.75rem;
    padding: 4px 8px;
}

.mobile-view .remove-player-btn {
    width: 18px;
    height: 18px;
    font-size: 10px;
    right: 8px;
}

/* Star Toggle Styles for Competing Players */
.player-with-star {
    display: flex;
    align-items: center;
    gap: 8px;
}

.star-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.star-toggle-btn i {
    font-size: 14px;
    color: #ddd;
    transition: all 0.3s ease;
}

.star-toggle-btn:hover i {
    color: #ffc107;
    transform: scale(1.1);
}

.star-toggle-btn.competing i {
    color: #ffc107;
}

.star-toggle-btn.competing:hover i {
    color: #ffb300;
    transform: scale(1.1);
}

/* Competing Players Status */
.competing-status {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid #ffc107;
}

.competing-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.competing-status-header h3 {
    color: #2c5530;
    margin: 0;
    font-size: 1.2rem;
}

.competing-counts {
    display: flex;
    gap: 20px;
}

.team-competing-count {
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-competing-count .team-name {
    font-weight: 500;
    color: #495057;
}

.team-competing-count .count {
    background: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
}

.team-competing-count .count.complete {
    background: #d4edda;
    color: #155724;
}

.status-note {
    color: #856404;
    background: #fff3cd;
    padding: 10px 15px;
    border-radius: 6px;
    margin: 0;
    font-size: 0.9rem;
    border: 1px solid #ffeaa7;
}

.status-complete {
    color: #155724;
    background: #d4edda;
    padding: 10px 15px;
    border-radius: 6px;
    margin: 0;
    font-size: 0.9rem;
    border: 1px solid #c3e6cb;
}

/* Mobile responsive for competing status */
@media (max-width: 768px) {
    .competing-status {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .competing-status-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .competing-counts {
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .team-competing-count {
        gap: 6px;
    }
    
    .team-competing-count .team-name {
        font-size: 0.9rem;
    }
    
    .team-competing-count .count {
        font-size: 0.8rem;
        padding: 3px 6px;
    }
}

/* Mobile view specific styles for competing status */
.mobile-view .competing-status {
    padding: 12px;
    margin-bottom: 12px;
}

.mobile-view .competing-status-header h3 {
    font-size: 1rem;
}

.mobile-view .competing-counts {
    gap: 12px;
}

.mobile-view .team-competing-count .team-name {
    font-size: 0.85rem;
}

.mobile-view .team-competing-count .count {
    font-size: 0.75rem;
    padding: 2px 5px;
}

.mobile-view .status-note,
.mobile-view .status-complete {
    padding: 8px 12px;
    font-size: 0.8rem;
}

.mobile-view .star-toggle-btn {
    padding: 3px;
}

.mobile-view .star-toggle-btn i {
    font-size: 12px;
}

/* Teesheet Actions */
.teesheet-actions {
    margin-bottom: 20px;
    text-align: center;
}

.teesheet-actions .btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838, #1ea085);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-success:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Mobile responsive for teesheet actions */
@media (max-width: 768px) {
    .teesheet-actions {
        margin-bottom: 15px;
    }
    
    .teesheet-actions .btn {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
    }
}

/* Mobile view specific styles for teesheet actions */
.mobile-view .teesheet-actions {
    margin-bottom: 12px;
}

.mobile-view .teesheet-actions .btn {
    padding: 8px 16px;
    font-size: 13px;
    width: 100%;
}

/* Teesheet Container Styles */
.teesheet-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.teesheet-header {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-left: 4px solid #4a7c59;
}

.teesheet-header h3 {
    color: #2c5530;
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
}

.competing-status {
    display: flex;
    gap: 30px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.competing-status span {
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    color: #2c5530;
    border: 2px solid #e9ecef;
    font-size: 0.95rem;
}

.instruction-text {
    color: #856404;
    background: #fff3cd;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 0;
    font-size: 0.95rem;
    border: 1px solid #ffeaa7;
    display: flex;
    align-items: center;
    gap: 8px;
}

.instruction-text i {
    color: #ffc107;
    font-size: 1.1rem;
}

/* Teams Section */
.teams-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.team-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.team-section h4 {
    color: #2c5530;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.team-section h4 i {
    color: #4a7c59;
    font-size: 1.3rem;
}

.players-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.player-row:hover {
    background: #e8f5e8;
    border-color: #4a7c59;
    transform: translateY(-1px);
}

.team-name {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 80px;
}

.player-name {
    font-size: 1rem;
    font-weight: 600;
    color: #2c5530;
    flex: 1;
    margin-left: 15px;
    letter-spacing: 0.5px;
}

.player-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.star-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.star-btn i {
    font-size: 16px;
    color: #ddd;
    transition: all 0.3s ease;
}

.star-btn:hover i {
    color: #ffc107;
    transform: scale(1.2);
}

.star-btn.competing i {
    color: #ffc107;
}

.star-btn.competing:hover i {
    color: #ffb300;
    transform: scale(1.2);
}

.remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-btn i {
    font-size: 14px;
    color: #dc3545;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: #dc3545;
}

.remove-btn:hover i {
    color: white;
    transform: scale(1.1);
}

/* Teetimes Section */
.teetimes-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.section-header h3 {
    color: #2c5530;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.teetime-grid {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.teetime-header {
    display: grid;
    grid-template-columns: 1fr 2fr;
    background: linear-gradient(135deg, #2c5530, #4a7c59);
    color: white;
}

.column-header {
    padding: 15px 20px;
    font-weight: 600;
    font-size: 1rem;
    text-align: left;
}

.teetime-players {
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.teetime-player-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.teetime-player-row:last-child {
    border-bottom: none;
}

.teetime-player-row:hover {
    background: #f8f9fa;
}

.player-team {
    padding: 15px 20px;
    background: #f8f9fa;
    font-weight: 500;
    color: #2c5530;
    border-right: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.player-name {
    padding: 15px 20px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.no-players {
    padding: 40px 20px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
    font-size: 1.1rem;
    background: #f8f9fa;
    border: 2px dashed #ddd;
    margin: 20px;
    border-radius: 8px;
}

/* Button Styles */
.btn.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn.btn-success:hover {
    background: linear-gradient(135deg, #218838, #1ea085);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn.btn-success:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Mobile Responsive for Teesheet */
@media (max-width: 768px) {
    .teesheet-container {
        gap: 20px;
    }
    
    .teesheet-header {
        padding: 20px;
    }
    
    .teesheet-header h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .competing-status {
        gap: 15px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .competing-status span {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .instruction-text {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .teams-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .team-section {
        padding: 15px;
    }
    
    .team-section h4 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .player-row {
        padding: 10px 12px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .team-name {
        min-width: 70px;
        font-size: 0.75rem;
    }
    
    .player-name {
        font-size: 0.95rem;
        margin-left: 10px;
    }
    
    .teetimes-section {
        padding: 20px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .section-header h3 {
        font-size: 1.2rem;
    }
    
    .teetime-header {
        grid-template-columns: 1fr 1fr;
    }
    
    .column-header {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .teetime-player-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .player-team,
    .player-name {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .no-players {
        padding: 30px 15px;
        font-size: 1rem;
        margin: 15px;
    }
    
    .btn.btn-success {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

/* Mobile View Specific Styles for Teesheet */
.mobile-view .teesheet-container {
    gap: 15px;
}

.mobile-view .teesheet-header {
    padding: 15px;
}

.mobile-view .teesheet-header h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: none;
}

.mobile-view .competing-status {
    gap: 10px;
    flex-direction: column;
}

.mobile-view .competing-status span {
    padding: 5px 10px;
    font-size: 0.8rem;
}

.mobile-view .instruction-text {
    padding: 8px 10px;
    font-size: 0.8rem;
}

.mobile-view .teams-section {
    grid-template-columns: 1fr;
    gap: 15px;
}

.mobile-view .team-section {
    padding: 12px;
}

.mobile-view .team-section h4 {
    font-size: 1rem;
    margin-bottom: 12px;
}

.mobile-view .team-section h4 i {
    font-size: 1.1rem;
}

.mobile-view .player-row {
    padding: 8px 10px;
    gap: 6px;
}

.mobile-view .team-name {
    min-width: 60px;
    font-size: 0.7rem;
}

.mobile-view .player-name {
    font-size: 0.85rem;
    margin-left: 8px;
}

.mobile-view .star-btn i {
    font-size: 14px;
}

.mobile-view .remove-btn i {
    font-size: 12px;
}

.mobile-view .teetimes-section {
    padding: 15px;
}

.mobile-view .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 12px;
}

.mobile-view .section-header h3 {
    font-size: 1.1rem;
}

.mobile-view .teetime-header {
    grid-template-columns: 1fr 1fr;
}

.mobile-view .column-header {
    padding: 10px 12px;
    font-size: 0.8rem;
}

.mobile-view .teetime-player-row {
    grid-template-columns: 1fr 1fr;
}

.mobile-view .player-team,
.mobile-view .player-name {
    padding: 10px 12px;
    font-size: 0.8rem;
}

.mobile-view .no-players {
    padding: 25px 12px;
    font-size: 0.9rem;
    margin: 12px;
}

.mobile-view .btn.btn-success {
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
    font-size: 0.9rem;
}

/* Teesheet Modal Styles */
.teesheet-modal-content {
    padding: 20px;
}

.teesheet-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.assigned-section,
.unassigned-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e9ecef;
    min-height: 400px;
}

.assigned-section h3,
.unassigned-section h3 {
    color: #2c5530;
    margin-bottom: 20px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.assigned-section h3 i {
    color: #28a745;
}

.unassigned-section h3 i {
    color: #4a7c59;
}

.assigned-players-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 300px;
}

.assigned-player-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: white;
    border: 2px solid #28a745;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.assigned-player-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.assigned-player-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.assigned-player-star {
    cursor: pointer;
    font-size: 16px;
    color: #ddd;
    transition: all 0.3s ease;
}

.assigned-player-star.competing {
    color: #ffc107;
}

.assigned-player-star:hover {
    color: #ffc107;
    transform: scale(1.2);
}

.assigned-player-name {
    font-weight: 600;
    color: #2c5530;
    font-size: 0.95rem;
}

.assigned-player-team {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.assigned-player-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remove-assigned-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
    color: #dc3545;
    font-size: 16px;
}

.remove-assigned-btn:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.1);
}

.unassigned-teams-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.unassigned-team-section {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    background: white;
}

.unassigned-team-section h4 {
    color: #2c5530;
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.unassigned-players-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
    align-content: flex-start;
}

.unassigned-player-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.unassigned-player-item:hover {
    border-color: #4a7c59;
    background: #e8f5e8;
    transform: translateY(-1px);
}

.unassigned-player-name {
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.add-player-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
    color: #28a745;
    font-size: 16px;
}

.add-player-btn:hover {
    background: #28a745;
    color: white;
    transform: scale(1.1);
}

.teesheet-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.empty-assigned-message {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-style: italic;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background: white;
}

.empty-assigned-message i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
    color: #ddd;
}

/* Teesheet Buckets/Teetimes Display */
.teesheet-buckets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.teetime-bucket {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 2px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.teetime-bucket:hover {
    border-color: #4a7c59;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.teetime-bucket.competing {
    background: linear-gradient(135deg, #2c5530, #4a7c59);
    color: white;
}

.teetime-bucket.practicing {
    background: linear-gradient(135deg, #b8860b, #daa520);
    color: white;
}

.teetime-bucket-header {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.teetime-bucket.competing .teetime-bucket-header {
    border-bottom-color: rgba(255,255,255,0.3);
}

.teetime-bucket.practicing .teetime-bucket-header {
    border-bottom-color: rgba(255,255,255,0.3);
}

.teetime-bucket:not(.competing):not(.practicing) .teetime-bucket-header {
    border-bottom-color: #e9ecef;
}

.teetime-number {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.teetime-type {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

.teetime-players {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.teetime-player {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.teetime-bucket:not(.competing):not(.practicing) .teetime-player {
    background: #f8f9fa;
    color: #333;
}

.teetime-player-star {
    font-size: 12px;
    color: #ddd; /* Default to gray */
}

.teetime-player-star.competing {
    color: #ffc107; /* Gold for competing */
}

.teetime-player-star.not-competing {
    color: #ddd;
}

.empty-teetime {
    text-align: center;
    padding: 20px;
    color: rgba(255,255,255,0.7);
    font-style: italic;
    font-size: 0.9rem;
}

.teetime-bucket:not(.competing):not(.practicing) .empty-teetime {
    color: #6c757d;
}

/* Unassigned Players Section */
.unassigned-players-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.unassigned-players-section h3 {
    color: #2c5530;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.unassigned-teams-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.unassigned-team-display {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    background: #f8f9fa;
}

.unassigned-team-display h4 {
    color: #2c5530;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.unassigned-team-display h4 i {
    color: #4a7c59;
}

.unassigned-players-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.unassigned-player-tag {
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.unassigned-player-tag:hover {
    border-color: #4a7c59;
    background: #e8f5e8;
    transform: translateY(-1px);
}

/* Teesheet Modal Pill-style Players */
.unassigned-player-pill {
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-block;
    text-align: center;
    margin: 4px;
    width: auto;
    min-width: fit-content;
    max-width: none;
}

.unassigned-player-pill:hover {
    border-color: #4a7c59;
    background: #e8f5e8;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Teesheet Modal Styles */
.teesheet-modal .modal-content {
    max-width: 90vw;
    width: 1000px;
    height: 80vh;
    max-height: 600px;
}

.teesheet-modal-body {
    display: flex;
    gap: 20px;
    height: 100%;
    padding: 20px;
}

.assigned-section, .unassigned-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.assigned-section h3, .unassigned-section h3 {
    margin: 0 0 15px 0;
    color: var(--primary-color);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.assigned-players-list {
    flex: 1;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 15px;
    background: #f9f9f9;
    overflow-y: auto;
    min-height: 200px;
}

.assigned-player-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 8px;
}

.assigned-player-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.assigned-player-star {
    background: none;
    border: none;
    color: #ccc;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.assigned-player-star.competing {
    color: #ffd700;
}

.assigned-player-star:hover {
    background: #f0f0f0;
}

.assigned-player-name {
    font-weight: 600;
    color: var(--text-color);
}

.assigned-player-team {
    font-size: 0.85rem;
    color: #666;
}

.remove-assigned-btn {
    background: #ff4757;
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
}

.remove-assigned-btn:hover {
    background: #ff3742;
    transform: scale(1.1);
}

.empty-assigned-message {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 40px 20px;
}

.empty-assigned-message i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
    color: #ddd;
}

.unassigned-teams {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.unassigned-team {
    flex: 1;
}

.unassigned-team h4 {
    margin: 0 0 10px 0;
    color: var(--text-color);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.unassigned-players-container {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    background: white;
    max-height: 150px;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
    align-content: flex-start;
}

.teesheet-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.save-teesheet-btn {
    background: var(--success-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.save-teesheet-btn:hover:not(:disabled) {
    background: #27ae60;
    transform: translateY(-1px);
}

.save-teesheet-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

/* Mobile responsive for teesheet modal */
@media (max-width: 768px) {
    .teesheet-modal-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .assigned-section,
    .unassigned-section {
        padding: 15px;
        min-height: 300px;
    }
    
    .teesheet-buckets {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .teetime-bucket {
        padding: 15px;
        min-height: 150px;
    }
    
    .teetime-number {
        font-size: 1.5rem;
    }
    
    .unassigned-teams-display {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .teesheet-modal-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .teesheet-modal-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile view specific styles for teesheet modal */
.mobile-view .teesheet-modal-content {
    padding: 15px;
}

.mobile-view .teesheet-modal-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.mobile-view .assigned-section,
.mobile-view .unassigned-section {
    padding: 12px;
    min-height: 250px;
}

.mobile-view .assigned-section h3,
.mobile-view .unassigned-section h3 {
    font-size: 1rem;
    margin-bottom: 15px;
}

.mobile-view .assigned-player-item {
    padding: 10px 12px;
}

.mobile-view .assigned-player-name {
    font-size: 0.85rem;
}

.mobile-view .assigned-player-team {
    font-size: 0.75rem;
}

.mobile-view .unassigned-player-item {
    padding: 8px 10px;
}

.mobile-view .unassigned-player-name {
    font-size: 0.8rem;
}

.mobile-view .teesheet-buckets {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.mobile-view .teetime-bucket {
    padding: 12px;
    min-height: 120px;
}

.mobile-view .teetime-number {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.mobile-view .teetime-type {
    font-size: 0.8rem;
}

.mobile-view .teetime-player {
    padding: 6px 8px;
    font-size: 0.75rem;
}

.mobile-view .empty-teetime {
    padding: 15px;
    font-size: 0.8rem;
}

.mobile-view .unassigned-teams-display {
    grid-template-columns: 1fr;
    gap: 12px;
}

.mobile-view .unassigned-team-display {
    padding: 12px;
}

.mobile-view .unassigned-team-display h4 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.mobile-view .unassigned-player-tag {
    padding: 4px 8px;
    font-size: 0.75rem;
}

.mobile-view .teesheet-modal-actions {
    flex-direction: column;
    gap: 8px;
    padding-top: 15px;
}

.mobile-view .teesheet-modal-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 10px;
    font-size: 0.9rem;
}

/* Placeholder Styles */
.teesheet-placeholder,
.scoring-placeholder,
.summary-placeholder {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.placeholder-icon {
    margin-bottom: 25px;
}

.placeholder-icon i {
    font-size: 4rem;
    color: #4a7c59;
    opacity: 0.7;
}

.teesheet-placeholder h3,
.scoring-placeholder h3,
.summary-placeholder h3 {
    color: #2c5530;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.teesheet-placeholder p,
.scoring-placeholder p,
.summary-placeholder p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.teesheet-placeholder ul,
.scoring-placeholder ul,
.summary-placeholder ul {
    text-align: left;
    max-width: 400px;
    margin: 0 auto 20px auto;
    color: #555;
}

.teesheet-placeholder li,
.scoring-placeholder li,
.summary-placeholder li {
    margin-bottom: 8px;
    font-size: 1rem;
    line-height: 1.5;
}

.text-muted {
    color: #6c757d !important;
    font-style: italic;
}

/* Mobile responsive for placeholders */
@media (max-width: 768px) {
    .teesheet-placeholder,
    .scoring-placeholder,
    .summary-placeholder {
        padding: 40px 20px;
    }
    
    .placeholder-icon i {
        font-size: 3rem;
    }
    
    .teesheet-placeholder h3,
    .scoring-placeholder h3,
    .summary-placeholder h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .teesheet-placeholder p,
    .scoring-placeholder p,
    .summary-placeholder p {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .teesheet-placeholder li,
    .scoring-placeholder li,
    .summary-placeholder li {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
}

/* Mobile view specific styles for placeholders */
.mobile-view .teesheet-placeholder,
.mobile-view .scoring-placeholder,
.mobile-view .summary-placeholder {
    padding: 30px 15px;
}

.mobile-view .placeholder-icon i {
    font-size: 2.5rem;
}

.mobile-view .teesheet-placeholder h3,
.mobile-view .scoring-placeholder h3,
.mobile-view .summary-placeholder h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.mobile-view .teesheet-placeholder p,
.mobile-view .scoring-placeholder p,
.mobile-view .summary-placeholder p {
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.mobile-view .teesheet-placeholder li,
.mobile-view .scoring-placeholder li,
.summary-placeholder li {
    font-size: 0.8rem;
    margin-bottom: 5px;
}

/* Scoring Table Styles */
.scoring-table-container {
    overflow-x: auto;
}

.scoring-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.scoring-table th, .scoring-table td {
    padding: 8px 5px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.scoring-table th {
    background-color: #2c5530;
    color: white;
    font-weight: 600;
}

.scoring-table th.player-col {
    color: #fff;
}

.scoring-table .par-val {
    font-weight: normal;
    color: #ccc;
}

.scoring-table .player-col {
    text-align: left;
    width: 200px;
}

.scoring-table .status-col {
    width: 40px;
}

.scoring-table .pos-col {
    width: 50px;
    font-weight: bold;
}

.player-score-row.editing {
    background-color: #f0f8ff;
}

.score-input {
    width: 40px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px;
    font-size: 1rem;
}

.score-value {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    font-weight: bold;
}

.score-circle, .score-square {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid;
}

.score-circle {
    border-radius: 50%;
    width: 22px;
    height: 22px;
}

.score-square {
    width: 22px;
    height: 22px;
}

.score-circle-outer, .score-square-outer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid;
}

.score-circle-outer {
    border-radius: 50%;
    width: 28px;
    height: 28px;
}

.score-square-outer {
    width: 28px;
    height: 28px;
}

.score-square-outermost {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid;
    width: 34px;
    height: 34px;
}


.certified {
    color: #28a745;
}

.competing-star {
    color: #ffc107;
    margin-right: 5px;
}

/* Enhanced Scoring Table Styles */
.scoring-table-container {
    overflow-x: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.scoring-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    font-size: 0.9rem;
}

.scoring-table th {
    background: linear-gradient(135deg, #2c5530, #4a7c59);
    color: white;
    padding: 8px 4px;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    position: sticky;
    top: 0;
    z-index: 10;
}

.scoring-table th.status-col {
    width: 40px;
    padding: 12px 4px;
}

.scoring-table th.player-col {
    text-align: left;
    width: 150px;
    padding: 12px 15px;
}

.scoring-table td {
    padding: 4px 4px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.85rem;
    vertical-align: middle;
}

.scoring-table .status-col {
    width: 40px;
    padding: 10px 4px;
}

.scoring-table .player-col {
    text-align: left;
    width: 150px;
    padding: 10px 15px;
    font-weight: 600;
    color: #2c5530;
}

.scoring-table .total-col,
.scoring-table .total-par-col {
    font-weight: bold;
    background: #f8f9fa;
    border-left: 2px solid #4a7c59;
}

.player-score-row {
    cursor: pointer;
    transition: all 0.3s ease;
}

.player-score-row:hover {
    background-color: #f8f9fa;
}

.player-score-row.editing {
    background-color: #e3f2fd;
    box-shadow: inset 0 0 0 2px #2196f3;
}

.player-score-row.editing .player-col,
.player-score-row.editing .total-par-col {
    background-color: #e3f2fd;
}

.player-score-row.editing .player-col,
.player-score-row.editing .total-par-col {
    background-color: #e3f2fd;
}

.score-cell {
    position: relative;
    min-width: 50px;
}

.score-input {
    width: 45px;
    height: 35px;
    text-align: center;
    border: 2px solid #4a7c59;
    border-radius: 6px;
    padding: 5px;
    font-size: 1rem;
    font-weight: bold;
    background: white;
    color: #2c5530;
}

.score-input:focus {
    outline: none;
    border-color: #2c5530;
    box-shadow: 0 0 0 3px rgba(44, 85, 48, 0.1);
}

.score-value {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    font-weight: bold;
    font-size: 1rem;
    color: #2c5530;
}

/* Score styling based on par */
.score-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    pointer-events: none;
}

.score-circle-outer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid #dc3545;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    pointer-events: none;
}

.score-square {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid;
    width: 22px;
    height: 22px;
    pointer-events: none;
}

.score-square-outer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid #ffc107;
    width: 28px;
    height: 28px;
    pointer-events: none;
}

.score-square-outermost {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid #ffc107;
    width: 34px;
    height: 34px;
    pointer-events: none;
}

/* Score color coding */
.birdie {
    color: #dc3545;
    font-weight: bold;
}
.birdie .score-circle {
    border-color: #dc3545;
}

.eagle {
    color: #dc3545;
    font-weight: bold;
}
.eagle .score-circle,
.eagle .score-circle-outer {
    border-color: #dc3545;
}

.bogey {
    color: #000;
    font-weight: bold;
}
.bogey .score-square {
    border-color: #000;
}

.double-bogey {
    color: #6c757d;
    font-weight: bold;
}
.double-bogey .score-square,
.double-bogey .score-square-outer {
    border-color: #6c757d;
}

.triple-bogey {
    color: #000;
    font-weight: bold;
}
.triple-bogey .score-square,
.triple-bogey .score-square-outer,
.triple-bogey .score-square-outermost {
    border-color: #000;
}

.certified {
    color: #28a745;
    font-size: 1.2rem;
}

.competing-star {
    color: #ffc107;
    margin-left: 2px;
    font-size: 0.7rem;
}

.certify-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.certify-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

/* Mobile responsive for scoring table */
@media (max-width: 768px) {
    .scoring-table-container {
        margin: 0 -20px;
        border-radius: 0;
    }
    
    .scoring-table {
        min-width: 600px;
        font-size: 0.8rem;
    }
    
    .scoring-table th {
        padding: 8px 6px;
        font-size: 0.75rem;
    }
    
    .scoring-table th.player-col {
        width: 120px;
        padding: 8px 10px;
    }
    
    .scoring-table td {
        padding: 8px 6px;
        font-size: 0.8rem;
    }
    
    .scoring-table .player-col {
        width: 120px;
        padding: 8px 10px;
    }
    
    .score-value {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .score-input {
        width: 40px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .score-circle,
    .score-square {
        width: 28px;
        height: 28px;
    }
    
    .score-circle-outer,
    .score-square-outer {
        width: 36px;
        height: 36px;
    }
    
    .score-square-outermost {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    /* Scoring table specific styles for 480px */
    .scoring-table-container {
        margin: 0 -15px;
    }

    .scoring-table {
        min-width: 500px;
        font-size: 0.75rem;
    }

    .scoring-table th {
        padding: 6px 4px;
        font-size: 0.7rem;
    }

    .player-score-row {
        position: relative;
    }

    .scoring-table th.player-col {
        position: sticky;
        left: 0;
        z-index: 11;
        background-color: #2c5530;
        width: 100px;
        padding: 6px 8px;
    }

    .scoring-table td.player-col {
        position: sticky;
        left: 0;
        z-index: 10;
        background-color: white;
        width: 100px;
        padding: 6px 8px;
        border-right: 2px solid #4a7c59;
        box-shadow: 2px 0 4px rgba(0,0,0,0.1);
    }

    .scoring-table td {
        padding: 6px 4px;
        font-size: 0.75rem;
    }

    .score-value {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }

    .score-input {
        width: 35px;
        height: 25px;
        font-size: 0.8rem;
        padding: 3px;
    }

    .score-circle,
    .score-square {
        width: 24px;
        height: 24px;
    }

    .score-circle-outer,
    .score-square-outer {
        width: 30px;
        height: 30px;
    }

    .score-square-outermost {
        width: 36px;
        height: 36px;
    }

    .certify-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .competing-star {
        font-size: 0.7rem;
        margin-left: 1px;
    }

    .certified {
        font-size: 1rem;
    }

    /* Match Summary Mobile Optimization for 480px - ESPN Style */
    
    /* Top Summary Bar - ESPN Style */
    .match-summary-top-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: white;
        border-radius: 0; /* Remove border radius for full width */
        padding: 18px 12px; /* Add back left/right padding for content indentation */
        margin: 0; /* Remove all margins */
        margin-left: -10px; /* Offset main-content padding */
        margin-right: -10px; /* Offset main-content padding */
        margin-bottom: 9px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        border: 1px solid #e9ecef;
        border-left: none; /* Remove left border for full width */
        border-right: none; /* Remove right border for full width */
        min-height: 120px; /* 2x taller - increased from 60px to 120px */
        width: calc(100vw); /* Use full viewport width */
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }

    .summary-team-left, .summary-team-right {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        flex: 1;
        min-width: 0;
    }

    .summary-team-left {
        justify-content: center;
        align-items: flex-start;
    }

    .summary-team-right {
        justify-content: center;
        align-items: flex-end;
        padding-right: 0; /* Remove any padding that pushes away team image from right border */
        margin-right: 0; /* Remove any margin that pushes away team image from right border */
    }

    .summary-team-logo {
        width: 40px; /* 2x bigger - increased from 20px to 40px */
        height: 40px; /* 2x bigger - increased from 20px to 40px */
        border-radius: 50%;
        object-fit: contain;
        flex-shrink: 0;
    }

    .summary-team-record {
        font-size: 0.75rem;
        color: #666;
        font-weight: 500;
        line-height: 1.2;
        white-space: nowrap;
        text-align: center;
        margin-top: 2px; /* Fixed directly beneath team logo */
    }

    .summary-score-section {
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: bold;
        justify-content: center;
        flex-shrink: 0;
    }

    .summary-team-score {
        font-size: 2.4rem; /* 2x larger - increased from 1.2rem to 2.4rem */
        color: #2c5530;
        font-weight: bold;
    }

    .summary-winner-badge {
        background: #28a745;
        color: white;
        padding: 1px 4px;
        border-radius: 3px;
        font-size: 0.55rem;
        font-weight: 600;
        text-transform: uppercase;
    }

    .summary-tie-badge {
        background: #ffc107;
        color: white;
        padding: 1px 4px;
        border-radius: 3px;
        font-size: 0.55rem;
        font-weight: 600;
        text-transform: uppercase;
    }

    .summary-final-label {
        font-size: 0.65rem;
        color: #666;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Stacked Team Cards - More Compact */
    .match-summary-grid {
        display: flex;
        flex-direction: column;
        gap: 6px;
        margin-bottom: 8px;
    }

    .team-summary-container {
        background: white;
        border-radius: 0; /* Remove border radius for full width */
        padding: 6px 12px; /* Add back left/right padding for content indentation */
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        border: 1px solid #e9ecef;
        border-left: none; /* Remove left border for full width */
        border-right: none; /* Remove right border for full width */
        width: calc(100vw); /* Use full viewport width */
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }

    /* READABLE TEAM SUMMARY HEADER - 4X LARGER */
    .team-summary-header {
        display: flex;
        align-items: center;
        gap: 4px !important; /* READABLE GAP */
        margin-bottom: 2px !important; /* MINIMAL MARGIN */
        padding-bottom: 2px !important; /* MINIMAL PADDING */
        border-bottom: 1px solid #e9ecef;
        min-height: 16px !important; /* READABLE HEIGHT */
        max-height: 16px !important; /* FORCE MAXIMUM HEIGHT LIMIT */
        height: 16px !important; /* FORCE EXACT HEIGHT */
    }

    .team-summary-image {
        width: 24px !important; /* READABLE - 2/5 of summary-top-bar logo */
        height: 24px !important; /* READABLE - 2/5 of summary-top-bar logo */
        border-radius: 50%;
        object-fit: contain;
        flex-shrink: 0;
    }

    .team-summary-info h3 {
        font-size: 1.2rem !important; /* READABLE FONT - 4X LARGER */
        margin: 0 !important;
        line-height: 1 !important;
        font-weight: 600;
        color: #2c5530;
        padding: 0 !important;
    }

    .team-summary-info h3::after {
        content: " (competing players)";
        font-size: 0.8rem !important; /* Smaller font for subtitle */
        font-style: italic;
        font-weight: 400;
        color: #666;
        margin-left: 4px;
    }

    .team-summary-info p {
        display: none; /* Hide win-loss record - shown in top bar */
    }

    .team-summary-score-box {
        display: none; /* Hide individual scores - shown in top bar */
    }

    .team-players-table {
        width: calc(100vw); /* Use full viewport width */
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        border-radius: 0; /* Remove border radius for full width */
        border-left: none; /* Remove left border for full width */
        border-right: none; /* Remove right border for full width */
        padding-left: 0; /* Remove all padding to ensure full width */
        padding-right: 0; /* Remove all padding to ensure full width */
        margin-top: 0;
        margin-bottom: 0;
    }

    .team-players-table .compact-table {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .team-players-table .compact-table th,
    .team-players-table .compact-table td {
        padding-left: 12px; /* Add padding to individual cells instead */
        padding-right: 12px; /* Add padding to individual cells instead */
    }

    .team-players-table h4 {
        font-size: 0.8rem;
        margin-bottom: 6px;
        font-weight: 600;
        color: #495057;
    }

    .compact-table {
        font-size: 0.75rem;
        width: 100%;
        table-layout: fixed;
        border-collapse: collapse;
    }

    .compact-table th, .compact-table td {
        padding: 4px 6px;
        line-height: 1.2;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        border: none;
    }

    .compact-table th {
        font-size: 0.7rem;
        font-weight: 600;
        background: #f8f9fa;
        color: #495057;
        border-bottom: 1px solid #e9ecef;
    }

    .compact-table td {
        border-bottom: 1px solid #f8f9fa;
    }

    .compact-table tbody tr:last-child td {
        border-bottom: none;
    }

    .compact-table th:nth-child(1) { width: 12%; } /* Pos */
    .compact-table th:nth-child(2) { width: 28%; } /* Player */
    .compact-table th:nth-child(3) { width: 20%; } /* ToPar */
    .compact-table th:nth-child(4) { width: 20%; } /* Thru */
    .compact-table th:nth-child(5) { width: 20%; } /* Score */

    .player-team-logo {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        margin-right: 4px;
        object-fit: contain;
    }

    .compact-table .trophy-icon {
        font-size: 0.7rem;
        color: #ffc107;
        margin-left: 4px;
    }

    /* Section styling */
    .match-summary-section {
        padding: 8px;
    }

    .match-summary-section .section-header {
        margin-bottom: 8px;
    }

    .match-summary-section .section-header h2 {
        font-size: 1.1rem;
        margin-bottom: 4px;
    }

    .match-complete-section {
        margin-bottom: 12px;
        text-align: center;
    }

    .match-complete-section .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .leaderboard-section {
        margin-top: 12px;
    }

    .leaderboard-section h3 {
        font-size: 0.9rem;
        margin-bottom: 8px;
        color: #2c5530;
        font-weight: 600;
    }

    /* Ensure proper spacing and layout */
    .summary-content {
        padding: 8px;
    }

    /* Box sizing for all elements */
    .match-summary-top-bar,
    .match-summary-grid,
    .team-summary-container,
    .compact-table {
        box-sizing: border-box;
    }
}

/* Match Summary Styles - Desktop Only */
@media (min-width: 481px) {
    .match-summary-top-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: white;
        border-radius: 12px;
        padding: 25px 30px;
        margin-bottom: 25px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        border: 1px solid #e9ecef;
        min-height: 120px; /* 2x taller */
    }

    .match-summary-top-bar .summary-team-left, 
    .match-summary-top-bar .summary-team-right {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        flex: 1;
        min-width: 0;
    }

    .match-summary-top-bar .summary-team-left {
        align-items: flex-start;
    }

    .match-summary-top-bar .summary-team-right {
        align-items: flex-end;
        padding-right: 0; /* No padding pushing away from right border */
        margin-right: 0; /* No margin pushing away from right border */
    }

    .match-summary-top-bar .summary-team-logo {
        width: 80px; /* 2x bigger */
        height: 80px; /* 2x bigger */
        border-radius: 50%;
        object-fit: contain;
        flex-shrink: 0;
    }

    .match-summary-top-bar .summary-team-record {
        font-size: 1rem;
        color: #666;
        font-weight: 500;
        line-height: 1.2;
        text-align: center;
        margin-top: 4px; /* Fixed beneath team logo */
    }

    .match-summary-top-bar .summary-score-section {
        display: flex;
        align-items: center;
        gap: 15px;
        font-weight: bold;
        justify-content: center;
        flex-shrink: 0;
    }

    .match-summary-top-bar .summary-team-score {
        font-size: 3rem; /* 2x larger */
        color: #2c5530;
        font-weight: bold;
    }

    .match-summary-top-bar .summary-winner-badge {
        background: #28a745;
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 0.8rem;
        font-weight: 600;
        text-transform: uppercase;
    }

    .match-summary-top-bar .summary-tie-badge {
        background: #ffc107;
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 0.8rem;
        font-weight: 600;
        text-transform: uppercase;
    }

    .match-summary-top-bar .summary-final-label {
        font-size: 0.9rem;
        color: #666;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
}

.match-summary-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.team-summary-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.team-summary-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.team-summary-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: contain;
}

.team-summary-info h3 {
    color: #2c5530;
    font-size: 1.4rem;
    margin: 0;
}

.team-summary-info p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.team-summary-score-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.team-summary-winner, .team-summary-tie {
    font-size: 1.2rem;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 6px;
    color: white;
}

.team-summary-winner {
    background: #28a745;
}

.team-summary-tie {
    background: #ffc107;
}

.team-summary-score {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c5530;
}

.team-players-table h4 {
    color: #2c5530;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.compact-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.compact-table th, .compact-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.compact-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.compact-table tbody tr:last-child td {
    border-bottom: none;
}

.compact-table tbody tr.highlight-player td {
    background-color: #e8f5e8;
}

.compact-table .trophy-icon {
    color: #ffc107;
    margin-left: 5px;
}

.player-team-logo {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 0px;
    vertical-align: middle;
    object-fit: contain;
}

.match-complete-section {
    text-align: center;
    margin-bottom: 30px;
}

.leaderboard-section {
    margin-top: 20px;
}

.leaderboard-section h3 {
    color: #2c5530;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

#confirmationModal .modal-content {
    max-width: 400px;
}

#confirmationModal .modal-body {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

/* Archive Player Modal Styles */
#archivePlayerModal .modal-content {
    max-width: 500px;
    border-radius: 16px;
    overflow: hidden;
}

.archive-modal-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #495057;
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid #dee2e6;
}

.archive-modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.archive-modal-icon i {
    font-size: 1.8rem;
    color: white;
}

.archive-modal-title {
    flex: 1;
}

.archive-modal-title h2 {
    margin: 0 0 5px 0;
    font-size: 1.5rem;
    color: #495057;
    font-weight: 600;
}

.archive-modal-title p {
    margin: 0;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 400;
}

.archive-modal-body {
    padding: 30px;
}

.archive-player-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.archive-player-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a7c59, #2c5530);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.archive-player-avatar i {
    font-size: 2rem;
    color: white;
}

.archive-player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.archive-player-details h3 {
    margin: 0 0 8px 0;
    font-size: 1.4rem;
    color: #2c5530;
    font-weight: 600;
}

.archive-player-details p {
    margin: 0;
    font-size: 1rem;
    color: #6c757d;
    font-weight: 500;
}

.archive-explanation {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.archive-explanation p {
    margin: 0;
    font-size: 0.95rem;
    color: #856404;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.archive-explanation i {
    color: #ffc107;
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.archive-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.archive-modal-actions .btn {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.archive-modal-actions .btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
}

.archive-modal-actions .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

#archiveConfirmBtn {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: white;
    border: none;
}

#archiveConfirmBtn:hover {
    background: linear-gradient(135deg, #e0a800, #e8690b);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

#archiveConfirmBtn.unarchive {
    background: linear-gradient(135deg, #28a745, #20c997);
}

#archiveConfirmBtn.unarchive:hover {
    background: linear-gradient(135deg, #218838, #1ea085);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Mobile responsive for archive modal */
@media (max-width: 768px) {
    #archivePlayerModal .modal-content {
        max-width: 95%;
        margin: 10% auto;
    }
    
    .archive-modal-header {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .archive-modal-icon {
        width: 50px;
        height: 50px;
    }
    
    .archive-modal-icon i {
        font-size: 1.5rem;
    }
    
    .archive-modal-title h2 {
        font-size: 1.3rem;
    }
    
    .archive-modal-body {
        padding: 20px;
    }
    
    .archive-player-info {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .archive-player-avatar {
        width: 70px;
        height: 70px;
    }
    
    .archive-player-avatar i {
        font-size: 1.8rem;
    }
    
    .archive-player-details h3 {
        font-size: 1.2rem;
    }
    
    .archive-explanation {
        padding: 15px;
    }
    
    .archive-explanation p {
        font-size: 0.9rem;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .archive-modal-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .archive-modal-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Team Leaderboard Opponent Logo Styles */
.match-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-bottom: 4px;
}

.opponent-logo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: contain;
}

.opponent-fallback {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #6c757d;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.match-date {
    font-size: 10px;
    color: #666;
    font-weight: normal;
    text-align: center;
    line-height: 1;
}

.match-column {
    min-width: 60px;
    text-align: center;
    font-size: 0.8em;
    padding: 8px 4px;
    vertical-align: top;
}

.match-score-cell {
    text-align: center;
    vertical-align: top;
    padding-top: 4px;
}

/* Player Scoring Modal Styles */
.btn-score-edit {
    background: none;
    border: none;
    color: #4a7c59;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-score-edit:hover {
    background: #e8f5e8;
    color: #2c5530;
}

.player-scoring-form {
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px 0;
}

.hole-scoring-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.hole-scoring-row:last-child {
    border-bottom: none;
}

.hole-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 100px;
}

.hole-number {
    font-weight: 600;
    color: #2c5530;
    font-size: 1rem;
}

.hole-par {
    font-size: 0.85rem;
    color: #666;
}

.score-input-container {
    flex: 0 0 80px;
}

.score-input-modal {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.score-input-modal:focus {
    outline: none;
    border-color: #4a7c59;
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.modal-actions .btn {
    width: 100%;
    justify-content: center;
}

/* Player scoring modal - centered layout */
.player-scoring-form {
    max-height: 60vh;
    overflow-y: auto;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.hole-scoring-row-centered {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    width: 100%;
    max-width: 280px;
    gap: 8px;
}

.hole-scoring-row-centered:last-child {
    border-bottom: none;
}

.hole-label {
    font-weight: 600;
    color: #2c5530;
    font-size: 1rem;
    text-align: center;
    flex: 1;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
}

.hole-number {
    font-weight: 600;
    color: #2c5530;
    font-size: 1rem;
}

.par-text {
    font-size: 0.8rem;
    color: #666;
    font-weight: 400;
}

.score-input-modal {
    width: 70px;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.score-input-modal:focus {
    outline: none;
}

.score-input-wrapper {
    position: relative;
    width: 70px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-input-modal {
    background: transparent;
    border: none;
    color: #2c5530;
}

.score-input-wrapper::before,
.score-input-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid transparent;
    box-sizing: border-box;
}

.score-input-wrapper.birdie::before {
    border-color: #dc3545;
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.score-input-wrapper.eagle::before {
    border-color: #dc3545;
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.score-input-wrapper.eagle::after {
    border-color: #dc3545;
    width: 42px;
    height: 42px;
    border-radius: 50%;
}

.score-input-wrapper.bogey::before {
    border-color: #000;
    width: 35px;
    height: 35px;
}

.score-input-wrapper.double-bogey::before {
    border-color: #000;
    width: 35px;
    height: 35px;
}

.score-input-wrapper.double-bogey::after {
    border-color: #000;
    width: 42px;
    height: 42px;
}

.score-input-wrapper.triple-bogey::before {
    border-color: #000;
    width: 35px;
    height: 35px;
}

.score-input-wrapper.triple-bogey::after {
    border-color: #000;
    width: 42px;
    height: 42px;
    box-shadow: 0 0 0 2px #000;
}


/* Mobile responsive for player scoring modal */
@media (max-width: 768px) {
    .player-scoring-form {
        max-height: 50vh;
    }
    
    .hole-scoring-row-centered {
        padding: 10px 0;
    }
    
    .hole-label {
        font-size: 0.9rem;
    }
    
    .score-input-modal {
        width: 70px;
        padding: 8px;
        font-size: 1rem;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .player-scoring-form {
        max-height: 45vh;
    }
    
    .hole-scoring-row-centered {
        padding: 8px 0;
    }
    
    .hole-label {
        font-size: 0.85rem;
    }
    
    .score-input-modal {
        width: 60px;
        padding: 6px;
        font-size: 0.9rem;
    }
}

/* ESPN-Style Match Cards */
.match-card.completed-match {
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e9ecef;
}

.match-card.scheduled-match {
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e9ecef;
}

.match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.match-teams-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.team-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
}

.team-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: transparent;
}

.team-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.team-logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #6c757d;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    border-radius: 50%;
}

.team-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c5530;
    text-align: center;
    line-height: 1.2;
}

.team-record {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

/* Completed Match Styles */
.match-score-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 140px;
}

.score-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.team-score-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-score {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c5530;
    line-height: 1;
}

.final-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.final-label {
    font-size: 0.7rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.winner-badge {
    background: #28a745;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 4px;
}

/* Scheduled Match Styles */
.match-info-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    min-width: 140px;
}

.match-status {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.match-status.scheduled {
    background-color: #e3f2fd;
    color: #1976d2;
}

.match-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

.match-location,
.match-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.8rem;
    color: #666;
}

.match-location i,
.match-time i {
    color: #999;
    font-size: 0.7rem;
}

/* AccessCode Display Styles */
.match-access-code {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #4a7c59;
    background: rgba(74, 124, 89, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    margin-top: 8px;
    border: 1px solid rgba(74, 124, 89, 0.2);
}

.match-access-code i {
    color: #4a7c59;
    font-size: 0.8rem;
}

.access-code-label {
    font-weight: 600;
    color: #2c5530;
}

.access-code-value {
    font-weight: bold;
    color: #2c5530;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

/* Mobile responsive for ESPN-style match cards */
@media (max-width: 768px) {
    .team-logo {
        width: 40px;
        height: 40px;
    }
    
    .team-name {
        font-size: 0.8rem;
    }
    
    .team-record {
        font-size: 0.7rem;
    }
    
    .team-score {
        font-size: 2rem;
    }
    
    .match-info-section {
        min-width: 120px;
    }
    
    .match-location,
    .match-time {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .match-teams-row {
        gap: 8px;
    }
    
    .team-logo {
        width: 36px;
        height: 36px;
    }
    
    .team-name {
        font-size: 0.75rem;
    }
    
    .team-record {
        font-size: 0.65rem;
    }
    
    .team-score {
        font-size: 1.8rem;
    }
    
    .match-info-section {
        min-width: 100px;
    }
    
    .match-status {
        padding: 4px 12px;
        font-size: 0.7rem;
    }
    
    .match-location,
    .match-time {
        font-size: 0.7rem;
    }
    
    .final-label {
        font-size: 0.6rem;
    }
    
    .winner-badge {
        font-size: 0.6rem;
        padding: 1px 4px;
    }
}
