/* Map page styles */
#map {
    height: calc(100vh - 200px);
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.map-header {
    background: linear-gradient(135deg, #065f46 0%, #059669 100%);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    text-align: center;
}

.map-header h1 {
    font-size: 2rem;
    font-weight: bold;
    margin: 0 0 0.5rem 0;
}

.map-header p {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.95;
}

.leaflet-popup-content-wrapper {
    border-radius: 8px;
}

.leaflet-popup-content {
    margin: 15px;
    font-size: 14px;
}

.leaflet-popup-content h3 {
    margin: 0 0 10px 0;
    color: #2c5f2d;
    font-size: 16px;
}

.leaflet-popup-content p {
    margin: 5px 0;
    color: #333;
}

.leaflet-popup-content .course-details {
    border-top: 1px solid #ddd;
    padding-top: 8px;
    margin-top: 8px;
    font-size: 13px;
    color: #666;
}

.location-control {
    position: absolute;
    top: 80px;
    right: 10px;
    z-index: 1000;
    background: white;
    padding: 8px 12px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    cursor: pointer;
    font-size: 14px;
}

.location-control:hover {
    background: #f0f0f0;
}

/* Form styles */
.form-control, .form-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.form-control-sm {
    width: 70px;
    padding: 0.25rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    text-align: center;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

input[readonly] {
    background-color: #f3f4f6;
}

/* Mobile Navigation Menu Styles */
.mobile-menu {
    display: none;
}

.mobile-menu.active {
    display: block;
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    .mobile-menu-button {
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile-menu-button {
        display: none;
    }
    .desktop-nav {
        display: flex;
    }
}

/* Scorecard/Live View Styles */
.scorecard {
    overflow-x: auto;
    margin-bottom: 20px;
}

.scorecard table {
    width: 100%;
    border-collapse: collapse;
    background: #f7fafc;
    border-radius: 8px;
    overflow: hidden;
}

.scorecard th {
    background: #4a5568;
    color: white;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.scorecard th:first-child {
    text-align: left;
    padding-left: 16px;
    width: 40px;
}

#scorecard-details tr td:first-child {
    padding: 2px;
    font-size: 10pt;
    width: 40px;
    text-align: center;
}

.scorecard td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.scorecard td:first-child {
    text-align: left;
    padding-left: 16px;
    font-weight: 600;
    color: #2d3748;
    background: #edf2f7;
}

.scorecard tr:last-child td {
    border-bottom: none;
}

.scorecard input[type="number"] {
    width: 50px;
    padding: 6px 4px;
    border: 2px solid #cbd5e0;
    border-radius: 6px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    transition: all 0.2s;
}

.scorecard input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.scorecard input[type="number"]::-webkit-inner-spin-button,
.scorecard input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
}

.totals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 15px;
    margin: 5px 0px 10px 0px;
}

.total-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 12px;
    color: white;
    text-align: center;
}

.total-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.total-value {
    font-size: 32px;
    font-weight: 700;
}

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

.actions button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #e2e8f0;
    color: #2d3748;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

.score-selector {
    margin: 4px 2px 2px 2px;
}

/* Responsive scorecard for mobile */
@media (max-width: 768px) {
    .scorecard h1 {
        font-size: 24px;
    }

    .scorecard input[type="number"] {
        width: 45px;
        font-size: 14px;
    }

    .scorecard th,
    .scorecard td {
        padding: 4px 2px;
        font-size: 13px;
    }
}
