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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue', 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: #333;
    background: white;
    min-height: 100vh;
    font-weight: 400;
    letter-spacing: -0.01em;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: border-box;
}

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

.hero {
    text-align: center;
    background: linear-gradient(135deg, #2d4a2d 0%, #1e3a1e 100%);
    color: white;
    padding: 20px 0;
    margin-bottom: 0;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero .logo {
    max-width: 280px;
    height: auto;
    margin: 0 auto 10px auto;
    display: block;
    background: white;
    border-radius: 50%;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.hero .subtitle {
    font-size: 1.4rem;
    margin-bottom: 15px;
    opacity: 0.9;
    font-weight: 300;
}

.navigation-bar {
    background: white;
    border-bottom: 2px solid #f0f0f0;
    z-index: 100;
    width: 100%;
    margin: 0;
    padding: 0;
}

.mobile-nav-header {
    display: none;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    padding: 0;
}

.nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 60px;
    align-items: center;
}

.nav-item {
    flex: 1;
    text-align: center;
}

.nav-link {
    display: block;
    padding: 15px 20px;
    color: #2d4a2d;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    letter-spacing: -0.01em;
}



.nav-link:hover {
    background: rgba(45, 74, 45, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    background: rgba(45, 74, 45, 0.1);
    color: #2d4a2d;
    font-weight: 600;
}

.content-section {
    display: none;
}

/* Admin Button Section */
.admin-button-section {
    display: flex;
    justify-content: flex-end;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    background: white;
    border-bottom: 1px solid #f0f0f0;
}

.admin-btn {
    background: #2d4a2d;
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s ease;
}

.admin-btn:hover {
    background: #1e3a1e;
}

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

.main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.info-section {
    background: white;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 2px solid #3a5a3a;
}

.signup-section {
    background: white;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 2px solid #2d4a2d;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.section h2 {
    color: #1e3a1e;
    margin-bottom: 20px;
    font-size: 1.8rem;
    border-bottom: 3px solid #2d4a2d;
    padding-bottom: 10px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.signup-section h2 {
    color: #2d4a2d;
    text-align: center;
    margin-bottom: 25px;
}

.info-section h2 {
    color: #1e3a1e;
    margin-bottom: 20px;
    font-size: 1.8rem;
    border-bottom: 3px solid #2d4a2d;
    padding-bottom: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.info-card {
    background: #f8f9f8;
    padding: 20px;
    border-left: 4px solid #4a5d4a;
}

.info-card h3 {
    color: #1e3a1e;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.schedule-table th {
    background: #2d4a2d;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.schedule-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e8f0e8;
}

.schedule-table tr:nth-child(even) {
    background: #f8f9f8;
}

.signup-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #1e3a1e;
    letter-spacing: -0.01em;
}

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

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #4a5d4a;
    box-shadow: 0 0 0 3px rgba(74, 93, 74, 0.1);
}

.signup-btn {
    width: 100%;
    background: linear-gradient(135deg, #2d4a2d 0%, #1e3a1e 100%);
    color: white;
    padding: 15px;
    border: none;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    font-family: inherit;
    letter-spacing: -0.01em;
}

.signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 74, 45, 0.3);
}

.spots-remaining {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9f8;
    border: 2px solid #4a5d4a;
}

.spots-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2d4a2d;
    display: block;
    letter-spacing: -0.02em;
}

.highlight {
    background: linear-gradient(135deg, #2d4a2d 0%, #1e3a1e 100%);
    color: white;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.format-list {
    list-style: none;
    padding: 0;
}

.format-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e8f0e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.format-list li:last-child {
    border-bottom: none;
}

.week-number {
    background: #4a5d4a;
    color: white;
    padding: 4px 8px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* Mobile page title */
.mobile-page-title {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

/* Mobile hamburger menu */
.mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 50px;
    height: 50px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    opacity: 0.7;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #2d4a2d;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {
    .container {
        max-width: 100%;
        margin: 0;
        padding: 15px;
        width: 100%;
    }
    
    .navigation-bar {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .info-section {
        padding: 15px;
        width: 100%;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .logo {
        max-width: 200px;
        padding: 15px;
    }
    
    .admin-button-section {
        padding: 10px 15px;
        max-width: none;
    }
    
    .admin-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .signup-section {
        position: static;
    }

    .mobile-nav-header {
        display: flex;
        min-height: 60px;
        align-items: center;
        padding: 0 20px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        width: 100%;
    }

    .nav-list {
        display: none;
        background: white;
        flex-direction: column;
        z-index: 999;
        margin: 0;
        padding: 0;
        border-bottom: 1px solid #f0f0f0;
        min-height: auto;
    }

    .nav-list.mobile-open {
        display: flex;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(45, 74, 45, 0.1);
        flex: none;
        text-align: left;
    }

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

    .nav-link {
        border-right: none;
        text-align: center;
        padding: 18px 20px;
        width: 100%;
        display: block;
    }

}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border: 1px solid #c3e6cb;
    margin-bottom: 20px;
    display: none;
}

.countdown-container {
    margin: 5px 0;
    padding: 5px 20px;
    text-align: center;
}

.countdown-display {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.countdown-number {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.countdown-label {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #666;
}

@media (max-width: 768px) {
    .countdown-container h2 {
        font-size: 1.5rem !important;
        margin-bottom: 10px !important;
    }
    
    .countdown-display {
        gap: 5px;
        padding: 0 5px;
    }
    
    .countdown-number {
        font-size: 1.8rem;
    }
    
    .countdown-label {
        font-size: 0.7rem;
    }
    
    .countdown-item {
        min-width: 55px;
        padding: 8px 3px;
    }
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.team-card {
    background: #f8f9f8;
    border: 2px solid #4a5d4a;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(74, 93, 74, 0.15);
}

.team-name {
    color: #1e3a1e;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #4a5d4a;
    letter-spacing: -0.01em;
}

.team-players {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.player-slot {
    background: white;
    padding: 10px 15px;
    border-left: 3px solid #4a5d4a;
    color: #666;
    font-weight: 500;
    font-style: italic;
    transition: all 0.2s ease;
}

.player-slot:hover {
    background: #f0f0f0;
    color: #1e3a1e;
    border-left-color: #2d4a2d;
}

.captain-slot {
    background: #2d4a2d !important;
    color: white !important;
    font-weight: 600 !important;
    font-style: normal !important;
    border-left: 3px solid #1e3a1e !important;
}

.captain-slot:hover {
    background: #1e3a1e !important;
    color: white !important;
    border-left-color: #4a5d4a !important;
}

@media (max-width: 768px) {
    .teams-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .team-card {
        padding: 15px;
    }
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.standings-table th {
    background: #2d4a2d;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.standings-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e8f0e8;
}

.standings-table tr:nth-child(even) {
    background: #f8f9f8;
}

.standings-table tr:hover {
    background: #e8f0e8;
}

.standings-table .points {
    font-weight: 600;
    color: #2d4a2d;
    text-align: center;
}

.standings-table th:nth-child(1),
.standings-table td:nth-child(1) {
    text-align: center;
    font-weight: 600;
}

.standings-table th:nth-child(3),
.standings-table td:nth-child(3) {
    text-align: center;
}

.standings-table th:nth-child(4),
.standings-table td:nth-child(4) {
    text-align: center;
}

.standings-table th:nth-child(5),
.standings-table td:nth-child(5) {
    text-align: center;
    font-family: monospace;
}

@media (max-width: 768px) {
    .standings-table {
        font-size: 0.9rem;
    }
    
    .standings-table th,
    .standings-table td {
        padding: 10px 8px;
    }
}

.week-section {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9f8;
    border-left: 4px solid #4a5d4a;
}

.week-section.course-closed {
    background: #ffcccc;
    border-left: 4px solid #dc3545;
}

.week-section.playoffs {
    background: #e8f0e8;
    border-left: 4px solid #2d4a2d;
}

.week-header {
    margin-bottom: 20px;
}

.week-header h3 {
    color: #1e3a1e;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.01em;
}

.course-closed .week-header h3 {
    color: #dc3545;
}

.playoffs .week-header h3 {
    color: #2d4a2d;
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.match-card {
    background: white;
    padding: 12px;
    border: 2px solid #e8f0e8;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 93, 74, 0.15);
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.team-name {
    font-weight: 600;
    color: #1e3a1e;
    font-size: 1.1rem;
    flex: 1;
    text-align: center;
}

.vs {
    color: #666;
    font-weight: 500;
    margin: 0 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.match-result {
    text-align: center;
    padding: 6px;
    background: #f8f9f8;
    border-top: 2px solid #e8f0e8;
}

.result-placeholder {
    color: #666;
    font-style: italic;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .week-section {
        padding: 20px 15px;
        margin: 20px 0;
    }
    
    .matches-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .match-card {
        padding: 8px;
    }
    
    .team-name {
        font-size: 1rem;
    }
    
    .match-teams {
        flex-direction: column;
        gap: 6px;
    }
    
    .vs {
        margin: 0;
    }
}

.match-card {
    cursor: pointer;
}

.match-card:hover .result-placeholder {
    color: #2d4a2d;
    font-weight: 500;
}

.scorecard-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    overflow-y: auto;
}

.scorecard-content {
    background: white;
    margin: 20px auto;
    padding: 0;
    max-width: 1000px;
    width: 95%;
    max-height: 95vh;
    overflow-y: auto;
}

.scorecard-header {
    background: #2d4a2d;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.scorecard-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

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

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

.scorecard-info {
    padding: 20px;
    background: #f8f9f8;
    border-bottom: 2px solid #e8f0e8;
}

.match-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.match-info span {
    font-weight: 600;
    color: #1e3a1e;
}

.scorecard-notice {
    padding: 15px 20px;
    background: #fff3cd;
    border-bottom: 2px solid #ffc107;
}

.scorecards-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.golf-scorecard {
    background: white;
    border: 2px solid #4a5d4a;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.scorecard-match-header {
    background: #2d4a2d;
    color: white;
    padding: 15px 20px;
    text-align: center;
}

.scorecard-match-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.golf-scorecard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.golf-scorecard-table th {
    background: #4a5d4a;
    color: white;
    padding: 12px 8px;
    text-align: center;
    font-weight: 500;
    border: 1px solid #2d4a2d;
}

.golf-scorecard-table .player-col {
    background: #6a7d6a;
    text-align: left;
    padding-left: 15px;
    min-width: 120px;
}

.golf-scorecard-table .total-col {
    background: #6a7d6a;
    font-weight: 600;
}

.golf-scorecard-table td {
    padding: 10px 8px;
    text-align: center;
    border: 1px solid #e8f0e8;
}

.player-name {
    text-align: left !important;
    padding-left: 15px !important;
    font-weight: 600;
    color: #1e3a1e;
    background: #f8f9f8;
}

.team1-player .player-name {
    background: #e8f0e8;
    border-left: 4px solid #4a5d4a;
}

.team2-player .player-name {
    background: #f0f8f0;
    border-left: 4px solid #6a7d6a;
}

.team1-score .team-score-label {
    background: #4a5d4a !important;
}

.team2-score .team-score-label {
    background: #6a7d6a !important;
}

.spacer-row td {
    padding: 0 !important;
}

.score-cell {
    background: white;
    font-weight: 500;
    color: #333;
    min-width: 35px;
}

.total-cell {
    background: #e8f0e8;
    font-weight: 600;
    color: #2d4a2d;
}

.team-score-row {
    border-top: 2px solid #4a5d4a;
}

.team-score-label {
    background: #2d4a2d !important;
    color: white !important;
    font-weight: 600;
    text-align: left !important;
    padding-left: 15px !important;
}

.team-score-cell {
    background: #e8f0e8;
    font-weight: 600;
    color: #2d4a2d;
    border-top: 2px solid #4a5d4a;
}

.team-total-cell {
    background: #2d4a2d;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    border-top: 2px solid #4a5d4a;
}

.match-status-row {
    border-top: 2px solid #4a5d4a;
}

.match-status-label {
    background: #1e3a1e !important;
    color: white !important;
    font-weight: 600;
    text-align: left !important;
    padding-left: 15px !important;
}

.team1-status .match-status-label {
    background: #4a5d4a !important;
}

.team2-status .match-status-label {
    background: #6a7d6a !important;
}

.match-status-cell {
    background: #f0f8f0;
    font-weight: 600;
    color: #2d4a2d;
    border-top: 2px solid #4a5d4a;
    font-size: 0.9rem;
}

.match-result-cell {
    background: #1e3a1e;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border-top: 2px solid #4a5d4a;
}

.match-result-summary {
    padding: 20px;
    background: #f8f9f8;
    border-top: 2px solid #e8f0e8;
}

.result-box {
    text-align: center;
    padding: 20px;
    background: white;
    border: 2px solid #4a5d4a;
}

.result-box h4 {
    margin: 0 0 10px 0;
    color: #2d4a2d;
    font-size: 1.2rem;
}

.result-box p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e3a1e;
}

.scorecard-actions {
    padding: 20px;
    background: #f8f9f8;
    display: flex;
    justify-content: center;
    border-top: 2px solid #e8f0e8;
}

.close-btn-bottom {
    padding: 12px 30px;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #2d4a2d;
    color: white;
}

    .close-btn-bottom:hover {
        background: #1e3a1e;
    }

/* Role-Based Visibility Styles */

/* Club Admin */
.club-admin-only {
    display: none !important;
}
body.club-admin-logged-in .club-admin-only {
    display: block !important;
}

/* League Admin */
.league-admin-only {
    display: none !important;
}
body.league-admin-logged-in .league-admin-only {
    display: block !important;
}

/* Captain */
.captain-only {
    display: none !important;
}
body.captain-logged-in .captain-only {
    display: block !important;
}

/* Super Admin (not used in app.html, only in super-admin.html) */
.super-admin-only {
    display: none !important;
}
body.super-admin-logged-in .super-admin-only {
    display: block !important;
}

/* Admin Sub Navigation */
.admin-sub-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.admin-sub-btn {
    padding: 10px 24px;
    background: white;
    color: #2d4a2d;
    border: 2px solid #2d4a2d;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-sub-btn:hover {
    background: #f0f4f0;
}

.admin-sub-btn.active {
    background: #2d4a2d;
    color: white;
}

.admin-sub-section {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    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: #2d4a2d;
}

body.admin-logged-in .remove-player-btn {
    display: inline-block !important;
}

/* Captain Styles */
.captain-only {
    display: none !important;
}

body.captain-logged-in .captain-only {
    display: block !important;
}

/* My Team Styles */
.team-roster-section {
    margin-bottom: 40px;
    padding: 20px;
    background: #f8f9f8;
    border-radius: 8px;
    border-left: 4px solid #2d4a2d;
}

.team-header {
    text-align: center;
    margin-bottom: 25px;
}

.team-header h4 {
    color: #2d4a2d;
    font-size: 1.3rem;
    margin-bottom: 5px;
}

/* Roster Table Styles */
.roster-table-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.roster-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.roster-table thead {
    background: #2d4a2d;
    color: white;
}

.roster-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.roster-table th:last-child {
    border-right: none;
}

.roster-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.roster-table tbody tr:hover {
    background-color: #f8f9f8;
}

.roster-table tbody tr:last-child {
    border-bottom: none;
}

.roster-table td {
    padding: 12px 15px;
    border-right: 1px solid #eee;
}

.roster-table td:last-child {
    border-right: none;
}

.position-cell {
    font-weight: 600;
    color: #2d4a2d;
    text-align: center;
    width: 60px;
}

.captain-row .position-cell {
    background: rgba(45, 74, 45, 0.1);
    border-radius: 4px;
}

.player-name-cell {
    min-width: 180px;
}

.player-name {
    font-weight: 600;
    color: #333;
    margin-right: 10px;
}

.captain-badge {
    background: #2d4a2d;
    color: white;
    padding: 2px 6px;
    font-size: 0.7rem;
    border-radius: 3px;
    font-weight: 600;
    margin-left: 8px;
}

.placeholder-text {
    color: #999;
    font-style: italic;
}

.status-cell {
    width: 80px;
}

.status-active {
    background: #d4edda;
    color: #155724;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-open {
    background: #f8d7da;
    color: #721c24;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.stats-cell {
    text-align: center;
    width: 80px;
    color: #666;
    font-weight: 500;
}

.remaining-cell {
    font-weight: 600;
    width: 90px;
}

/* Color coding for remaining matches */
.remaining-3 {
    color: #dc3545;
    background-color: #f8d7da;
    border-radius: 4px;
}

.remaining-2 {
    color: #856404;
    background-color: #fff3cd;
    border-radius: 4px;
}

.remaining-1 {
    color: #0c5460;
    background-color: #d1ecf1;
    border-radius: 4px;
}

.remaining-0 {
    color: #155724;
    background-color: #d4edda;
    border-radius: 4px;
}

.lineup-management-section {
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* Week Content Layout */
.week-content-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.lineup-selection-section,
.scorecard-section {
    background: #f8f9f8;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.lineup-selection-section h5,
.scorecard-section h5 {
    margin: 0 0 15px 0;
    color: #2d4a2d;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Captain Scorecard Styles */
.captain-scorecard {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.captain-scorecard .scorecard-header {
    background: #2d4a2d;
    color: white;
    padding: 10px 15px;
}

.captain-scorecard .match-info {
    text-align: center;
    font-size: 1rem;
}

.captain-scorecard .match-title {
    color: white;
    font-weight: 600;
}

.scorecard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.scorecard-table th {
    background: #f8f9f8;
    padding: 8px 6px;
    text-align: center;
    border: 1px solid #ddd;
    font-weight: 600;
    color: #333;
}

.scorecard-table .player-col {
    text-align: left;
    min-width: 120px;
    max-width: 120px;
}

.scorecard-table .total-col {
    background: #e8f5e8;
    font-weight: 600;
}

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

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

.lineup-player .player-name {
    color: #2d4a2d;
    font-weight: 600;
}

.placeholder-player .player-name {
    color: #999;
    font-style: italic;
}

.team-score-row {
    background: #e8f5e8;
    font-weight: 600;
}

.match-status-row {
    background: #fff3cd;
    font-weight: 600;
    color: #856404;
}

.match-status-label {
    text-align: left;
    color: #856404;
}

.match-status-cell {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.match-status-total {
    background: #ffeaa7;
    font-weight: 700;
}

/* Player Dropdown Styles */
.player-selection-cell {
    text-align: left;
    min-width: 200px;
    max-width: 200px;
    padding: 8px 12px !important;
}

.player-dropdown-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-dropdown {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 0.85rem;
    color: #333;
}

.player-dropdown:focus {
    outline: none;
    border-color: #2d4a2d;
    box-shadow: 0 0 0 2px rgba(45, 74, 45, 0.2);
}

.player-dropdown:disabled {
    background: #f5f5f5;
    color: #666;
    cursor: not-allowed;
}

.remove-player-btn {
    padding: 4px 8px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 3px;
    font-size: 0.75rem;
    cursor: pointer;
    white-space: nowrap;
}

.remove-player-btn:hover {
    background: #c82333;
}

/* Lineup Submission Styles */
.lineup-submission-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9f8;
    border-radius: 8px;
    border: 1px solid #ddd;
    text-align: center;
}

.lineup-status {
    margin-bottom: 15px;
    font-size: 1rem;
}

.status-text {
    color: #666;
}

.status-pending {
    color: #856404;
    font-weight: 600;
}

.status-ready {
    color: #155724;
    font-weight: 600;
}

.status-submitted {
    color: #155724;
    font-weight: 700;
    font-size: 1.1rem;
}

.submit-lineup-btn {
    padding: 12px 24px;
    background: #2d4a2d;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.submit-lineup-btn:hover:not(:disabled) {
    background: #1e351e;
}

.submit-lineup-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

.team-score-row .team-score-label {
    color: #2d4a2d;
    text-align: left;
}

.scorecard-placeholder {
    background: #f8f9f8;
    border: 2px dashed #ddd;
    border-radius: 8px;
    margin: 10px 0;
}

.lineup-controls {
    margin-bottom: 20px;
}

.week-selector {
    max-width: 300px;
}

.week-selector label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.week-selector select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.lineup-week-header {
    margin-bottom: 20px;
    text-align: center;
}

.lineup-week-header h4 {
    color: #2d4a2d;
    margin-bottom: 5px;
}

.player-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.player-selector {
    background: #f8f9f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px;
}

.player-selector label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 0;
}

.player-checkbox {
    margin: 0;
}

.lineup-summary {
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
}

.lineup-actions {
    text-align: center;
}

.save-btn {
    background: #2d4a2d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.save-btn:hover:not(:disabled) {
    background: #1e3a1e;
}

.save-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .player-selection {
        grid-template-columns: 1fr;
    }
    
    /* Mobile Roster Table */
    .roster-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .roster-table {
        min-width: 100%;
        width: 100%;
        font-size: 0.85rem;
    }
    
    .roster-table th,
    .roster-table td {
        padding: 8px 6px;
        word-wrap: break-word;
    }
    
    .position-cell {
        width: 35px;
        font-size: 0.8rem;
    }
    
    .player-name-cell {
        min-width: 120px;
        max-width: 140px;
    }
    
    .player-name {
        font-size: 0.85rem;
        line-height: 1.2;
    }
    
    .captain-badge {
        display: block;
        margin-top: 2px;
        margin-left: 0;
        width: fit-content;
        font-size: 0.65rem;
        padding: 1px 4px;
    }
    
    .stats-cell {
        width: 50px;
        font-size: 0.8rem;
        text-align: center;
    }
    
    .remaining-cell {
        width: 50px;
        font-size: 0.8rem;
        text-align: center;
    }
    
    /* Hide less critical columns on very small screens */
    @media (max-width: 480px) {
        .roster-table th:nth-child(4),
        .roster-table td:nth-child(4) {
            display: none; /* Hide Points column */
        }
        
        .roster-table {
            font-size: 0.8rem;
        }
        
        .roster-table th,
        .roster-table td {
            padding: 6px 4px;
        }
        
        .player-name-cell {
            min-width: 100px;
            max-width: 120px;
        }
        
        .player-name {
            font-size: 0.8rem;
        }
        
        .captain-badge {
            font-size: 0.6rem;
            padding: 1px 3px;
        }
        
        .stats-cell,
        .remaining-cell {
            width: 45px;
            font-size: 0.75rem;
        }
        
        .position-cell {
            width: 30px;
            font-size: 0.75rem;
        }
        
        .scorecard-table .player-col {
            min-width: 70px;
            max-width: 75px;
            font-size: 0.65rem;
        }
        
        .scorecard-table .total-col {
            width: 40px;
            font-size: 0.65rem;
        }
        
        .captain-scorecard .match-title {
            font-size: 0.75rem;
        }
        
        .player-dropdown {
            font-size: 0.7rem;
            padding: 3px 4px;
            min-width: 65px;
        }
        
        .remove-player-btn {
            font-size: 0.65rem;
            padding: 1px 4px;
        }
    }
    
    /* Mobile Week Content Layout */
    .week-content-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .scorecard-section {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .scorecard-table {
        font-size: 0.75rem;
        min-width: 100%;
        width: 100%;
    }
    
    .scorecard-table .player-col {
        min-width: 80px;
        max-width: 90px;
        font-size: 0.7rem;
    }
    
    .scorecard-table .total-col {
        width: 50px;
        font-size: 0.7rem;
    }
    
    .captain-scorecard .match-info {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    .captain-scorecard .match-title {
        font-size: 0.8rem;
        line-height: 1.2;
    }
    
    .player-dropdown {
        font-size: 0.75rem;
        padding: 4px 6px;
        min-width: 75px;
    }
    
    .remove-player-btn {
        font-size: 0.7rem;
        padding: 2px 6px;
        margin-top: 2px;
    }
    
    /* Captain's Tools Mobile Loading */
    .my-team-loading-overlay {
        min-height: 200px;
        padding: 20px;
    }
    
    .my-team-loading-content p {
        font-size: 0.9rem;
    }
    
    .scorecard-table th,
    .scorecard-table td {
        padding: 6px 4px;
    }
}

.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
}

.admin-modal-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
}

.admin-modal-header {
    background: #2d4a2d;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
}

.admin-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.admin-modal-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e8f0e8;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #4a5d4a;
    background: #f8f9f8;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.login-btn {
    background: #2d4a2d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.login-btn:hover {
    background: #1e3a1e;
}

.cancel-btn {
    background: #ddd;
    color: #333;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.cancel-btn:hover {
    background: #ccc;
}

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 4px;
    border-left: 4px solid #c62828;
    margin-top: 15px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .scorecard-content {
        margin: 10px;
        width: calc(100% - 20px);
    }
    
    .scorecards-container {
        padding: 15px;
        gap: 25px;
    }
    
    .golf-scorecard-table {
        font-size: 0.8rem;
    }
    
    .golf-scorecard-table th,
    .golf-scorecard-table td {
        padding: 6px 4px;
    }
    
    .golf-scorecard-table .player-col {
        min-width: 80px;
        padding-left: 8px;
    }
    
    .player-name {
        padding-left: 8px !important;
        font-size: 0.85rem;
    }
    
    .score-cell {
        min-width: 25px;
    }
    
    .scorecard-match-header h3 {
        font-size: 1.1rem;
    }
    
    .match-status-label {
        padding-left: 8px !important;
        font-size: 0.8rem;
    }
    
    .match-status-cell,
    .match-result-cell {
        font-size: 0.8rem;
    }
    
    .team1-player .player-name,
    .team2-player .player-name {
        border-left-width: 2px;
    }
}

/* Loading overlay to prevent flash during page restoration */
.page-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.page-loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    color: #333;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top: 3px solid #4a5d4a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px auto;
}

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

.loading-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    letter-spacing: 0.02em;
}

/* Admin Sub-Navigation */
.admin-sub-nav {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 20px 0 30px 0;
    border: 2px solid #4a5d4a;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-sub-btn {
    flex: 1;
    padding: 12px 20px;
    background: white;
    color: #4a5d4a;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-right: 1px solid #4a5d4a;
}

.admin-sub-btn:last-child {
    border-right: none;
}

.admin-sub-btn:hover {
    background: #f8f9f8;
}

.admin-sub-btn.active {
    background: #4a5d4a;
    color: white;
}

.admin-sub-section {
    animation: fadeIn 0.3s ease;
}

.admin-sub-section.active {
    display: block;
}

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

/* Mobile Admin Sub-Navigation */
@media (max-width: 768px) {
    .admin-sub-nav {
        flex-direction: column;
        gap: 0;
        width: 100%;
        margin: 20px 0 30px 0;
        border-radius: 8px;
    }
    
    .admin-sub-btn {
        border-right: none;
        border-bottom: 1px solid #4a5d4a;
        padding: 15px 20px;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }
    
    .admin-sub-btn:last-child {
        border-bottom: none;
    }
}

/* Manage Requests Mobile Layout */
@media (max-width: 768px) {
    .manage-requests-section {
        padding: 15px !important;
        margin-bottom: 15px !important;
    }
    
    #membership-counter {
        padding: 8px !important;
        margin-bottom: 12px !important;
        font-size: 0.85rem !important;
        text-align: center;
        word-wrap: break-word;
    }
    
    #pending-requests-list > div {
        padding: 12px !important;
        margin-bottom: 8px !important;
    }
    
    #pending-requests-list > div > div {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    #pending-requests-list > div > div > div:last-child {
        margin-left: 0 !important;
        margin-top: 12px !important;
        display: flex !important;
        gap: 8px !important;
        justify-content: flex-start !important;
    }
    
    #pending-requests-list button {
        font-size: 0.85rem !important;
        padding: 8px 12px !important;
        flex: 1 !important;
        max-width: 120px !important;
        white-space: nowrap;
    }
}

/* Smaller screens - adjust button text size */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .admin-sub-btn {
        font-size: 0.9rem;
        padding: 12px 15px;
        width: 100%;
    }
    
    #pending-requests-list button {
        font-size: 0.8rem !important;
        padding: 6px 10px !important;
        max-width: 100px !important;
    }
    
    .manage-requests-section {
        padding: 10px !important;
    }
    
    #membership-counter {
        font-size: 0.8rem !important;
    }
}

/* Very small screens - handle 6 buttons */
@media (max-width: 360px) {
    .container {
        padding: 8px;
    }
    
    .admin-sub-btn {
        font-size: 0.85rem;
        padding: 10px 12px;
        width: 100%;
    }
}

/* Captain's Tools Loading Overlay */
.my-team-loading-overlay {
    position: relative;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.my-team-loading-content {
    text-align: center;
    color: #666;
}

.my-team-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top: 3px solid #4a5d4a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px auto;
}

.my-team-loading-content p {
    margin: 0;
    font-size: 1rem;
    color: #666;
}

.my-team-content {
    animation: fadeIn 0.4s ease;
}

/* ===== MOBILE SCORE PAD STYLES ===== */

.mobile-score-pad {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    justify-content: center;
    align-items: flex-end;
}

.score-pad-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.score-pad-content {
    position: relative;
    background: white;
    width: 100%;
    max-width: 400px;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    margin: 0 20px 0 20px;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.score-pad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 15px 20px;
    border-bottom: 1px solid #eee;
}

.score-pad-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d4a2d;
}

.score-pad-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-pad-close:hover {
    background: #f0f0f0;
    color: #333;
}

.score-pad-body {
    padding: 20px;
}

.score-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.score-btn {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 16px 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d4a2d;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

.score-btn:active {
    transform: translateY(0);
    background: #2d4a2d;
    color: white;
    border-color: #2d4a2d;
}

.score-btn.current {
    background: #2d4a2d;
    color: white;
    border-color: #2d4a2d;
    box-shadow: 0 2px 8px rgba(45, 74, 45, 0.3);
}

.score-pad-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.score-btn-clear {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.score-btn-clear:hover {
    background: #c82333;
    border-color: #bd2130;
}

.score-btn-cancel {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
}

.score-btn-cancel:hover {
    background: #5a6268;
    border-color: #545b62;
}

/* Editable score cell hover effects */
.editable-score:hover {
    background: #f8f9fa !important;
    border-color: #2d4a2d !important;
}

.editable-score:active {
    background: #e9ecef !important;
}

/* Hide number input spinners/arrows */
.editable-score input[type="number"]::-webkit-outer-spin-button,
.editable-score input[type="number"]::-webkit-inner-spin-button,
.scorecard-table input[type="number"]::-webkit-outer-spin-button,
.scorecard-table input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.editable-score input[type="number"],
.scorecard-table input[type="number"] {
    -moz-appearance: textfield;
}

/* ===== LEAGUE CREATION MODAL STYLES ===== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10002;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-container {
    background: white;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 2px solid #e8f0e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9f8;
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #888;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

@media (max-width: 768px) {
    .modal-overlay {
        padding: 10px;
    }
    
    .modal-container {
        max-width: 100%;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-body input,
    .modal-body select,
    .modal-body textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}