* {
    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;
}

.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 .subtitle {
    font-size: 1.4rem;
    margin-bottom: 15px;
    opacity: 0.9;
    font-weight: 300;
}

.navigation-bar {
    background: #1e3a1e;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
}

.mobile-nav-header {
    display: none;
    padding: 15px 20px;
    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;
}

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

.nav-link {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-right: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
    letter-spacing: -0.01em;
}

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

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

.nav-link.active {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.content-section {
    display: none;
}

.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: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    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 {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: white;
    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) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .signup-section {
        position: static;
    }

    .mobile-nav-header {
        display: flex;
    }

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

    .nav-menu {
        position: relative;
    }

    .nav-list {
        position: static;
        background: #1e3a1e;
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 999;
    }

    .nav-list.mobile-open {
        max-height: 500px;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

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

    .nav-link {
        border-right: none;
        text-align: center;
        padding: 18px 20px;
    }

}

.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: 1000;
    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;
    }

/* Admin Styles */
.admin-only {
    display: none !important;
}

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

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

.admin-login-btn {
    background: #1e3a1e !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
}

.admin-login-btn:hover {
    background: #2d4a2d !important;
}

.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;
    }
}