body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ffaa88 0%, #fd574eff 100%);
    margin: 0;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2.5em;
}

.index-header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}

.index-header > * {
    white-space: nowrap;
}

.detail-header-row{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}


/* Leaderboard Table Styles */
.leaderboard {
    width: 100%;
    margin-top: 20px;
}

.competitor-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    background: white;
    transition: all 0.3s ease;
}

.competitor-card:hover {
    background: #f8f9ff;
    transform: translateX(5px);
}

.competitor-card .icon {
    flex-shrink: 0;
    width: 60px;
    text-align: center;
    font-size: 2em;
}

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

.competitor-card .username {
    color: #ffaa88;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.competitor-card .username:hover {
    color: #fd574eff;
}

.competitor-card .total {
    color: #666;
    font-size: 1.1em;
    font-weight: 600;
    margin-left: 20px;
}

.leaderboard table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.leaderboard thead {
    background: linear-gradient(135deg, #fd574eff 0%, #ffaa88 100%);
    color: white;
}

.leaderboard th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 1.1em;
}

.leaderboard th:first-child {
    width: 80px;
    text-align: center;
}

.leaderboard th:last-child {
    width: 150px;
    text-align: right;
}

.leaderboard tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.leaderboard tbody tr:hover {
    background: #f8f9ff;
    transform: translateX(5px);
}

.leaderboard td {
    padding: 15px;
}

.leaderboard td:first-child {
    text-align: center;
    font-size: 2em;
}

.leaderboard .username {
    color: #ffaa88;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.leaderboard .username:hover {
    color: #fd574eff;
}

.leaderboard .total {
    color: #666;
    font-size: 1.1em;
    font-weight: 600;
    text-align: right;
}

/* Detail Page Styles */
.back-link {
    display: inline-block;
    color: #ffaa88;
    text-decoration: none;
    margin-bottom: 20px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #fd574eff;
}

.detail-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background: linear-gradient(135deg, #fd574eff 0%, #ffaa88 100%);
    color: white;
    border-radius: 8px;
}

.icon-large {
    font-size: 4em;
    margin-bottom: 10px;
}

.detail-header h1 {
    color: white;
    margin: 10px 0;
}

.total-score {
    font-size: 1.5em;
    font-weight: 600;
}

h2 {
    color: #333;
    margin-top: 30px;
    margin-bottom: 20px;
}

/* Week Overview Table Styles */
.week-overview {
    margin-top: 20px;
}

.week-section {
    margin-bottom: 30px;
}

.week-section h3 {
    color: #ffaa88;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.day-scores table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.day-scores thead {
    background: #ffaa88;
    color: white;
}

.day-scores.double thead {
    background: linear-gradient(135deg, #ffaa88 0%, #f5576c 100%);
}

.day-scores th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.day-scores th:last-child {
    text-align: right;
    width: 150px;
}

.day-scores tbody tr {
    border-bottom: 1px solid #f0f0f0;
}

.day-scores tbody tr:last-child {
    border-bottom: none;
}

.day-scores td {
    padding: 12px;
}

.day-scores .day-label {
    font-weight: 600;
    color: #333;
}

.day-scores .day-points {
    text-align: right;
    font-weight: 600;
    color: #ffaa88;
    font-size: 1.1em;
}

.day-scores.double .day-points {
    color: #f5576c;
}

.day-scores.double tbody tr {
    background: #fff5f7;
}

.day-scores.double tbody tr:hover {
    background: #ffe8ec;
}

/* Navigation Styles */
.navigation-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.navigation-menu {
    display: flex;
    justify-content: center;
    gap: 50px;
    padding: 5px 0;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.nav-link {
    color: #ffaa88;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    background: white;
    border: 2px solid #ffaa88;
}

.nav-link:hover {
    background: linear-gradient(135deg, #fd574eff 0%, #ffaa88 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253, 87, 78, 0.3);
}


.locations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.location-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(253, 87, 78, 0.2);
    border-color: #ffaa88;
}

.location-card-disabled {
    opacity: 0.5;
    filter: grayscale(80%);
    cursor: not-allowed;
}

.location-card-disabled:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #f0f0f0;
}

.location-preview-disabled {
    filter: blur(2px);
}

.location-number {
    color: #fd574eff;
    font-weight: 600;
    font-size: 1.2em;
    margin-bottom: 15px;
}

.location-preview {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    max-height: 396px;
}

/* Responsive Design */
/* Admin Page Styles */
.admin-section {
    margin-top: 30px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.admin-table thead {
    background: linear-gradient(135deg, #fd574eff 0%, #ffaa88 100%);
    color: white;
}

.admin-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 1.1em;
}

.admin-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s ease;
}

.admin-table tbody tr:hover {
    background: #f8f9ff;
}

.admin-table td {
    padding: 15px;
}

.admin-form {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    padding: 30px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

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

.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group select:focus {
    outline: none;
    border-color: #ffaa88;
}

.btn-submit {
    background: linear-gradient(135deg, #fd574eff 0%, #ffaa88 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(253, 87, 78, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253, 87, 78, 0.4);
}

.admin-location-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-location-card:hover {
    border-color: #ffaa88;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(253, 87, 78, 0.2);
}

.admin-location-info {
    flex: 1;
}

.admin-location-number {
    color: #fd574eff;
    font-weight: 600;
    font-size: 1.2em;
    margin-bottom: 5px;
}

.admin-location-finder {
    color: #666;
    font-size: 1em;
}

.finder-name {
    color: #ffaa88;
    font-weight: 600;
}

/* Admin Submit Location Styles */
.submit-location-container {
    max-width: 800px;
    margin: 0 auto;
}

.submit-location-form {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    padding: 30px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.submit-location-form .form-group {
    margin-bottom: 25px;
}

.submit-location-form .form-group label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.submit-location-form .form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: white;
    cursor: pointer;
}

.submit-location-form .form-group select:focus {
    outline: none;
    border-color: #ffaa88;
    box-shadow: 0 0 0 3px rgba(255, 170, 136, 0.1);
}

.submit-location-form .form-group select:hover {
    border-color: #ffaa88;
}

.btn-submit-location {
    background: linear-gradient(135deg, #fd574eff 0%, #ffaa88 100%);
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(253, 87, 78, 0.3);
    width: 100%;
    margin-top: 10px;
}

.btn-submit-location:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253, 87, 78, 0.4);
}

.btn-submit-location:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(253, 87, 78, 0.3);
}

.message-box {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1em;
}

.message-box.success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.message-box.error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

/* Upload Image Styles */
.upload-container {
    max-width: 900px;
    margin: 0 auto;
}

.upload-form {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    padding: 30px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.upload-form .form-group {
    margin-bottom: 25px;
}

.upload-form .form-group label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.upload-form .form-group input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: white;
    cursor: pointer;
}

.upload-form .form-group input[type="file"]:focus {
    outline: none;
    border-color: #ffaa88;
    box-shadow: 0 0 0 3px rgba(255, 170, 136, 0.1);
}

.upload-form .form-group input[type="file"]:hover {
    border-color: #ffaa88;
}

.btn-upload {
    background: linear-gradient(135deg, #fd574eff 0%, #ffaa88 100%);
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(253, 87, 78, 0.3);
    width: 100%;
    margin-top: 10px;
}

.btn-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253, 87, 78, 0.4);
}

.btn-upload:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(253, 87, 78, 0.3);
}

.message {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1em;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.upload-image-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.image-item {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(253, 87, 78, 0.2);
    border-color: #ffaa88;
}

.image-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.image-info {
    padding: 15px;
    background: #f8f9ff;
    color: #333;
    font-weight: 600;
    text-align: center;
}

.location-preview-section {
    margin-top: 30px;
    text-align: center;
}

.location-preview-section h3 {
    color: #ffaa88;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.location-preview-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}

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

    h1 {
        font-size: 1.8em;
    }

    .leaderboard th,
    .leaderboard td {
        padding: 10px 5px;
        font-size: 0.9em;
    }

    .leaderboard td:first-child {
        font-size: 1.5em;
    }

    .day-scores th,
    .day-scores td {
        padding: 8px;
        font-size: 0.9em;
    }

    .navigation-header {
        gap: 30px;
    }

    .navigation-menu {
        flex-direction: column;
        gap: 30px;
    }

    .nav-link {
        text-align: center;
        font-size: 1em;
    }

    .locations-grid {
        grid-template-columns: 1fr;
    }

    .admin-form {
        padding: 20px;
    }

    .admin-location-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .submit-location-form {
        padding: 20px;
    }

    .btn-submit-location {
        font-size: 1.1em;
        padding: 12px 30px;
    }

    .upload-form {
        padding: 20px;
    }

    .btn-upload {
        font-size: 1.1em;
        padding: 12px 30px;
    }

    .image-gallery {
        grid-template-columns: 3fr;
    }


}
.location-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}


