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

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #ffffff;
    min-height: 100vh;
    background-color: #06211C;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 15px;
}

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

.logo {
    width: 220px;
    max-width: 90%;
    margin-bottom: 10px;
}

.card {
    background: rgba(255,255,255,0.95);
    color: #081f1b;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.25);
}

.card h2,
.card h3 {
    color: #073629;
    margin-bottom: 10px;
}

label {
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
    font-weight: bold;
}

input,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #cfd5d0;
    border-radius: 8px;
    font-size: 16px;
}

button {
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    border: 0;
    border-radius: 8px;
    background: #1f5f3b;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

button:hover {
    background: #2b7a4d;
}

.button-secondary {
    background: #0f3d34;
}

.button-secondary:hover {
    background: #145248;
}

.status {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.90);
    color: #073629;
}

.status.error {
    background: #ffdede;
    color: #8b0000;
}

.round-title {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.hole-layout {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
    margin-bottom: 15px;
}

.hole-stats-sidebar {
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    gap: 8px;
}

.hole-image-wrapper {
    min-width: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.hole-image,
.hole-map {
    width: 100%;
    height: 520px;
    max-height: 70vh;
    border-radius: 12px;
    background: #06211C;
    overflow: hidden;
}

.hole-image {
    object-fit: contain;
}

.hole-map .ol-control button {
    width: auto;
    margin-top: 0;
    padding: 0;
    border-radius: 2px;
    background: rgba(8, 31, 27, 0.72);
}

.hole-map .ol-attribution {
    font-size: 10px;
}

.hole-stat {
    background: #f5f7f5;
    border-radius: 10px;
    text-align: center;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hole-stat-label {
    font-size: 12px;
    color: #666;
}

.hole-stat-value {
    font-size: 22px;
    font-weight: bold;
    color: #073629;
}

.distance-panel {
    background: #073629;
    color: #ffffff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    text-align: center;
}

.distance-value {
    font-size: 42px;
    font-weight: bold;
}

.distance-label {
    font-size: 13px;
    opacity: 0.9;
}

.score-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.score-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.gps-panel {
    background: #eef3ef;
    color: #073629;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.scorecard-row {
    display: grid;
    grid-template-columns: 50px 60px 60px 70px 1fr;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
}

.scorecard-row:hover {
    background: #f4f7f4;
}

.scorecard-row strong {
    color: #073629;
    text-align: center;
}

.footer {
    text-align: center;
    color: #ffffff;
    margin-top: 25px;
    margin-bottom: 20px;
    font-size: 12px;
}

.hidden {
    display: none;
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }

    .hole-layout {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 8px;
    }

    .hole-stat {
        padding: 8px;
    }

    .hole-stat-value {
        font-size: 18px;
    }

    .hole-image,
    .hole-map {
        height: 520px;
        max-height: 68vh;
    }

    .distance-value {
        font-size: 34px;
    }

    .scorecard-row {
        grid-template-columns: 40px 50px 50px 60px 1fr;
        font-size: 12px;
    }
}
