        body {
            font-family: Arial, sans-serif;
            background-color: #ffffff;
            color: #333;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        header {
            background: linear-gradient(to bottom, #1e5b1e 0%, #174617 100%);
            color: #fff;
            padding: 10px;
            position: sticky;
            top: 0;
            z-index: 1500;
            display: flex;
            align-items: flex-start;
            justify-content: center;
            width: 100%;
            box-sizing: border-box;
            flex-shrink: 0;
        }

        main {
            flex: 1 0 auto;
            width: 100%;
            display: flex;
            flex-direction: column;
            overflow: visible;
        }

        .logo {
            width: 60px;
            height: 80px;
            margin-right: 20px;
            object-fit: contain;
        }

        .header-right {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            position: relative;
            max-width: 100%;
            padding: 0;
            box-sizing: border-box;

        }

        .header-banner {
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            height: 80px;
            object-fit: contain;
        }

        .header-content {
            display: flex;
            align-items: center;
            gap: 20px;
            min-height: 40px;
        }

        .header-content h1 {
            margin: 0;
            font-size: 1.5em;
        }

        nav {
            margin-top: 10px;
            overflow-x: auto;
            white-space: nowrap;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none; /* Firefox */
            -ms-overflow-style: none; /* IE and Edge */
            position: relative; /* For gradient positioning */
            z-index: 1600;
        }




        @media (max-width: 900px) {
            header {
                flex-wrap: wrap;
                padding: 5px 0;
                margin: 0;
            }

            .logo {
                width: 35px;
                height: 35px;
                margin-right: 10px;
                align-self: center;
            }

            .header-right {
                width: 100%;
                padding: 0 10px;
                box-sizing: border-box;
            }

            nav {
                width: 100%;
                margin: 5px 0 0 0;
                padding: 5px 10px;
                box-sizing: border-box;
            }

            .header-content {
                padding: 0 10px;
            }

            .header-content h1 {
                font-size: 1.2em;
            }

            nav a {
                font-size: 1.0em;
            }

            .header-banner {
                display: none;
            }
        }







        /* Info page styles */
.info-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.info-section {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.info-section:last-child {
    border-bottom: none;
}

.info-page h1 {
    color: #2c3e50;
    margin-bottom: 30px;
}

.info-page h2 {
    color: #3498db;
    margin-top: 20px;
    margin-bottom: 15px;
}

.info-page h3 {
    color: #555;
    margin-top: 15px;
    margin-bottom: 10px;
}

.info-page p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.info-page ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.info-page li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.info-page a {
    color: #3498db;
    text-decoration: none;
}

.info-page a:hover {
    text-decoration: underline;
}

/* Admin panel styles */
.admin-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.admin-table th, .admin-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.admin-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.admin-table tr:hover {
    background-color: #f5f5f5;
}

.admin-delete-form {
    display: inline;
}

.admin-delete-button {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.admin-delete-button:hover {
    background-color: #d32f2f;
}

.admin-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.admin-pagination a {
    padding: 5px 10px;
    background-color: #f2f2f2;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.admin-pagination a.active {
    background-color: #98bf21;
    color: white;
}

.admin-success {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.admin-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.admin-table-container {
    overflow-x: auto;
}

.admin-alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.admin-alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.admin-alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Search form styles */
.search-form-container {
    background: white;
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row .form-group {
    flex: 1;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Reference lookup styles */
.lookup-options {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.lookup-card {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .lookup-options {
        flex-direction: column;
    }
}

/* Admin login styles */
.admin-login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.admin-login-title {
    text-align: center;
    margin-bottom: 20px;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}
.admin-nav {
    display: flex;
    gap: 15px;
}
.admin-card {
    background-color: #f8f8f8;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.admin-card-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}
.admin-card-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.admin-button {
    display: inline-block;
    padding: 10px 15px;
    background-color: #98bf21;
    color: black;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}
.admin-button:hover {
    background-color: #759619;
    color: white;
}
.admin-logout {
    background-color: #f44336;
    color: white;
}
.admin-logout:hover {
    background-color: #d32f2f;
}

/* Search form styles */
.search-form {
    margin-bottom: 2rem;
}
.search-form-container {
    background: white;
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* Global scrolling fixes */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    flex: 1;
}

.upload-container {
    margin-bottom: 60px;
}

form {
    overflow: visible;
}

/* Form and table styles */
        .checkbox-group {
            margin-top: 0.5rem;
        }
        
        .band-table, .mode-table {
            width: 100%;
        }
        
        .band-table td, .mode-table td {
            padding: 0.25rem 0.5rem;
        }
        
        .input-feedback {
            font-size: 0.8rem;
            color: #d32f2f;
            margin-top: 0.25rem;
        }
        
        /* Fix for scrolling issues */
        .upload-container {
            margin-bottom: 40px;
        }
        
        body {
            padding-bottom: 40px;
        }

        /* Modal styles */
        .active-indicator {
            display: inline-block;
            width: 12px;
            height: 12px;
            border-radius: 50%;
        }

        .active-indicator.on {
            background-color: #28a745;
            box-shadow: 0 0 5px #28a745;
        }

        .active-indicator.off {
            background-color: #6c757d;
        }

        /* Reference detail styles */
        .reference-detail-direct {
            max-width: 100%;
            padding: 1rem;
            margin: 0 auto;
        }
        
        .reference-header {
            text-align: center;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid #f0f0f0;
        }
        
        .reference-id {
            font-size: 1.8rem;
            margin: 0;
            color: #2c3e50;
            font-weight: bold;
        }
        
        .reference-name {
            font-size: 1.4rem;
            margin: 0.5rem 0 0;
            color: #34495e;
            font-weight: normal;
        }
        
        .map-container {
            width: 100%;
            margin-bottom: 1.5rem;
            border-radius: 8px;
            overflow: visible;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        
        #reference-map {
            width: 100%;
            height: 200px;
        }
        
        .reference-card {
            background: white;
            padding: 2rem;
            border-radius: 5px;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
            margin-bottom: 2rem;
        }
        
        .reference-info {
            width: 100%;
            margin-bottom: 2rem;
            border-collapse: collapse;
        }
        
        .reference-info th, .reference-info td {
            padding: 0.5rem;
            text-align: left;
            border-bottom: 1px solid #eee;
            font-size: 1rem;
        }
        
        .reference-info th {
            width: 150px;
            font-weight: bold;
            color: #555;
        }
        
        .reference-actions {
            display: flex;
            flex-direction: column;
            gap: 0.8rem;
            margin-bottom: 1rem;
        }
        
        .reference-actions .button {
            display: block;
            padding: 0.8rem 1rem;
            text-align: center;
            background-color: #3498db;
            color: white;
            text-decoration: none;
            border-radius: 4px;
            font-weight: bold;
            transition: background-color 0.2s;
        }
        
        .reference-actions .button.primary {
            background-color: #e67e22;
        }
        
        .reference-actions .button:hover {
            background-color: #2980b9;
        }
        
        .reference-actions .button.primary:hover {
            background-color: #d35400;
        }
        
        .copy-btn {
            display: inline-block;
            margin-left: 10px;
            padding: 2px 8px;
            background-color: #f1f1f1;
            border: 1px solid #ddd;
            border-radius: 3px;
            cursor: pointer;
            font-size: 0.8rem;
            transition: background-color 0.2s;
        }
        
        .copy-btn:hover {
            background-color: #e0e0e0;
        }
        
        /* Mobile optimization for references */
        @media (min-width: 768px) {
            .reference-detail-direct {
                max-width: 700px;
                padding: 2rem;
            }
            
            #reference-map {
                height: 250px;
            }
            
            .reference-actions {
                flex-direction: row;
                flex-wrap: wrap;
                justify-content: center;
            }
            
            .reference-actions .button {
                flex: 1 1 200px;
                max-width: 250px;
            }
        }

        /* Form row layout */
        .form-row {
            display: flex;
            gap: 1rem;
            margin-bottom: 1rem;
        }
        .form-row .form-group {
            flex: 1;
        }
        @media (max-width: 768px) {
            .form-row {
                flex-direction: column;
                gap: 0;
            }
        }

        /* Hide scrollbar for Chrome, Safari and Opera */
        nav::-webkit-scrollbar {
            display: none;
        }

        nav a {
            color: #fff;
            text-decoration: none;
            margin-right: 20px;
            margin-left:0px;
            font-size: 1.0em;
            display: inline-block;
            padding: 5px 10px;
            
            border-radius: 3px;
            
            transition: background-color 0.2s;
        }

        nav a:hover {
            text-decoration: none;
            background-color: #2a702a;
        }

        nav a.active {
            background-color: #2a702a;
        }

        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
            box-sizing: border-box;
        }

        @media (max-width: 768px) {
            .container {
                padding: 10px;
                width: 100%;
                max-width: 100%;
                overflow-x: hidden;
            }

            nav {
                width: 100%;
                max-width: 100%;
                margin: 5px 0 0 0;
                padding: 0px;
                box-sizing: border-box;
            }
            nav a
            {
                align-items: center;
                margin: 0px;
                
            };
        }

        /* Add table styles */
        .station-table {
            width: 100%;
            border-collapse: collapse;
            background: white;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            border-radius: 5px;
            overflow: visible;
        }

        .station-table th {
            background-color: #1e5b1e; /* WWFF green */
            color: white;
            padding: 12px 15px;
            text-align: left;
        }

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

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

        .station-table tbody tr:hover {
            background-color: #f0f7f0; /* Very light green */
        }

        .status-active {
            color: #1e5b1e; /* WWFF green */
            font-weight: bold;
        }

        .status-inactive {
            color: #dc3545;
            font-weight: bold;
        }

        footer {
            background: #333;
            color: #fff;
            text-align: center;
            padding: 20px;
            margin-top: 40px;
        }

        @media (max-width: 768px) {
            .station-table {
                display: block;
            }

            .station-table thead {
                display: none; /* Hide headers on mobile */
            }

            .station-table tbody, 
            .station-table tr, 
            .station-table td {
                display: block;
            }

            .station-table tr {
                margin-bottom: 20px;
                border-bottom: 2px solid #1e5b1e;
                padding: 10px;
            }

            .station-table tr:last-child {
                margin-bottom: 0;
            }

            .station-table td {
                padding: 8px 5px;
                border-bottom: 1px solid #eee;
                text-align: right;
                position: relative;
                padding-left: 50%;
            }

            .station-table td:last-child {
                border-bottom: none;
            }

            .station-table td::before {
                content: attr(data-label);
                position: absolute;
                left: 5px;
                width: 45%;
                text-align: left;
                font-weight: bold;
            }
        }

        @media (max-width: 480px) {
            .article {
                flex: 1 1 100%;
                max-width: 100%;
            }
        }

        .content-section {
            display: none; /* Hide all sections by default */
        }

        .content-section.active {
            display: block; /* Show active section */
        }

        /* Additional styles for other sections */
        .agenda-item {
            background: white;
            padding: 15px;
            margin-bottom: 15px;
            border-radius: 5px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

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

        .result-card {
            background: white;
            padding: 15px;
            border-radius: 5px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

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

        .award-item {
            background: white;
            padding: 15px;
            margin-bottom: 15px;
            border-radius: 5px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            display: flex;
            align-items: center;
            gap: 15px;
        }

        /* Add gradient indicator */
        nav::after {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            height: auto;
            width: 40px;
            background: linear-gradient(to right, transparent, #1e5b1e 85%);
            pointer-events: none; /* Makes sure links under the gradient are clickable */
            opacity: 0; /* Hidden by default */
            transition: opacity 0.3s;
        }

        /* Show gradient only when nav is scrollable */
        @media (max-width: 768px) {
            nav.is-scrollable::after {
                opacity: 1;
            }
        }

        .slogan {
            font-style: italic;
            font-size: 1em;
            opacity: 0.9;
        }

        @media (max-width: 768px) {
            .slogan {
                display: none;
            }
        }

        .add-spot-button {
            background: #1e5b1e;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
            margin-bottom: 20px;
            font-size: 1em;
        }

        .add-spot-button:hover {
            background: #2a702a;
        }

        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 2000;
        }

        .modal.active {
            display: flex !important;
            justify-content: center;
            align-items: center;
        }

        .modal-content {
            background-color: white;
            padding: 20px;
            border-radius: 5px;
            max-width: 500px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
            margin: 0 auto;
            position: relative;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }

        .modal-content form {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .modal-content .error-message {
            color: #d32f2f;
            background-color: #ffebee;
            padding: 10px;
            border-radius: 4px;
            margin-top: 10px;
        }

        .close-modal {
            position: absolute;
            right: 20px;
            top: 20px;
            font-size: 1.5em;
            cursor: pointer;
            color: #666;
        }

        .spot-form {
            display: grid;
            gap: 15px;
        }

        .form-group {
            display: grid;
            gap: 5px;
        }

        .form-group label {
            font-weight: bold;
            color: #333;
        }

        .form-group input, .form-group select {
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 1em;
        }

        .submit-spot {
            background: #1e5b1e;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 1em;
        }

        .submit-spot:hover {
            background: #2a702a;
        }

        .wwff-logo {
            height: 50px;
            object-fit: contain;
            margin-right: 20px;
            
        }

        @media (max-width: 768px) {
            .wwff-logo {
                height: 30px;
                max-width: 260px;
                margin-right: 10px;
            }

            .header-content {
                padding: 0 10px;
                width: 100%;
                display: flex;
                align-items: center;
                flex-wrap: wrap;
                gap: 10px;
            }

            .logo {
                width: 35px;
                height: 35px;
                margin-right: 5px;
            }
        }

        /* Add these styles */
        .activation-grid {
            display: grid;
            gap: 20px;
        }

        .activation-card {
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            overflow: visible;
        }

        .activation-header {
            background: #1e5b1e;
            color: white;
            padding: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .activation-date {
            font-size: 1.1em;
            font-weight: bold;
        }

        .activation-content {
            padding: 15px;
        }

        .activation-details {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin-top: 10px;
        }

        .detail-item {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .detail-label {
            color: #666;
            font-size: 0.9em;
        }

        .detail-value {
            font-weight: 500;
        }

        .park-reference {
            font-size: 1.2em;
            font-weight: bold;
            color: #1e5b1e;
        }

        .park-name {
            color: #444;
            margin: 5px 0;
        }

        /* Add these styles */
        .results-filters {
            background: white;
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 20px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
        }

        .filter-group {
            flex: 1;
            min-width: 200px;
        }

        .filter-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: bold;
            color: #444;
        }

        .filter-group select {
            width: 100%;
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 4px;
            background: white;
        }

        .leaderboard {
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            overflow: visible;
        }

        .leaderboard-header {
            background: #1e5b1e;
            color: white;
            padding: 15px 20px;
            font-size: 1.2em;
            font-weight: bold;
        }

        .leaderboard-item {
            display: grid;
            grid-template-columns: 50px 1fr auto auto;
            padding: 15px 20px;
            border-bottom: 1px solid #eee;
            align-items: center;
            gap: 20px;
        }

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

        .leaderboard-item:hover {
            background: #f8f9fa;
        }

        .rank {
            font-size: 1.2em;
            font-weight: bold;
            color: #666;
        }

        .top-3 .rank {
            width: 32px;
            height: 32px;
            background: #1e5b1e;
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .operator-info {
            display: flex;
            flex-direction: column;
        }

        .operator-callsign {
            font-weight: bold;
            color: #1e5b1e;
        }

        .operator-name {
            font-size: 0.9em;
            color: #666;
        }

        .score {
            font-weight: bold;
            font-size: 1.1em;
        }

        .award-level {
            padding: 4px 8px;
            border-radius: 4px;
            background: #f0f7f0;
            color: #1e5b1e;
            font-weight: 500;
        }

        /* Add these award-specific styles */
        .awards-header {
            background: white;
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 20px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .callsign-header {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 15px;
        }

        .callsign {
            font-size: 2em;
            font-weight: bold;
            color: #1e5b1e;
        }

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

        .award-category {
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            overflow: visible;
        }

        .category-header {
            background: #1e5b1e;
            color: white;
            padding: 15px;
            font-weight: bold;
        }

        .progress-bar {
            width: 100%;
            height: 20px;
            background: #eee;
            border-radius: 10px;
            overflow: visible;
            margin: 10px 0;
        }

        .progress-fill {
            height: auto;
            background: #1e5b1e;
            transition: width 0.3s ease;
        }

        .award-stats {
            display: flex;
            justify-content: space-between;
            color: #666;
            font-size: 0.9em;
            margin-top: 5px;
        }

        /* Add these styles for the log upload section */
        .upload-container {
            background: white;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            max-width: 600px;
            margin: 0 auto;
        }

        .upload-area {
            border: 2px dashed #1e5b1e;
            border-radius: 8px;
            padding: 40px 20px;
            text-align: center;
            background: #f8f9fa;
            cursor: pointer;
            transition: all 0.3s ease;
            margin: 20px 0;
        }

        .upload-area.dragover {
            background: #e8f5e9;
            border-color: #2a702a;
        }

        .upload-icon {
            font-size: 48px;
            color: #1e5b1e;
            margin-bottom: 15px;
        }

        .upload-text {
            color: #666;
            margin-bottom: 15px;
        }

        .upload-text strong {
            color: #1e5b1e;
        }

        .file-input {
            display: none;
        }

        .selected-file {
            background: #e8f5e9;
            padding: 10px 15px;
            border-radius: 4px;
            margin-top: 15px;
            display: none;
        }

        .selected-file.active {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .remove-file {
            color: #dc3545;
            cursor: pointer;
            padding: 5px;
        }

        .upload-button {
            background: #1e5b1e;
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 1em;
            transition: transform 0.2s ease;
            width: 100%;
            margin-top: 20px;
        }

        .upload-button:hover {
            background: #2a702a;
            transform: translateY(-1px);
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        .upload-button:disabled {
            background: #ccc;
            cursor: not-allowed;
        }

        /* Add notification banner styles */
        .preview-notice {
            background: linear-gradient(to right, #ff9800, #f57c00);
            color: white;
            padding: 10px 15px;
            margin: 15px 0 20px 0;
            border-radius: 5px;
            font-size: 0.9em;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .preview-notice::before {
            content: "⚠️";
            font-size: 1.2em;
        }

        /* Add these search-related styles */
        .search-container {
            position: relative;
            display: inline-flex;
            align-items: center;
            background: rgba(255,255,255,0.1);
            border-radius: 3px;
            padding: 3px 10px;
            margin-left: 15px;
            z-index: 9999;
        }

        .search-input {
            background: transparent;
            border: none;
            color: white;
            padding: 2px 5px;
            width: 150px;
            font-size: 0.9em;
        }

        .search-input::placeholder {
            color: rgba(255,255,255,0.7);
        }

        .search-input:focus {
            outline: none;
        }

        .search-icon {
            color: white;
            opacity: 0.7;
            font-size: 1.1em;
        }

        @media (max-width: 768px) {
            .search-container {
                margin-left: auto;
                margin-right: 15px;
            }

            .search-input {
                width: 60px;
            }
        }

        /* Add these search results styles */
        .search-results {
            position: absolute;
            top: 35px;
            right: 0;
            width: 300px;
            background: white;
            border-radius: 4px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
            max-height: 400px;
            overflow-y: auto;
            display: none;
            z-index: 10000;
        }

        /* Mobile adjustments */
        @media (max-width: 768px) {
            .search-results {
                position: absolute;
                top: auto;
                bottom: 0;
                left: 0;
                right: 0;
                width: 100%;
                max-height: 60vh;
                margin: 0;
                z-index: 10000;
            }
        }

        /* Ensure results are visible */
        .search-results.active {
            display: block !important;
        }

        .search-result-item {
            padding: 12px 15px;
            border-bottom: 1px solid #eee;
            background: white;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

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

        .result-type {
            font-size: 0.8em;
            color: #666;
            background: #f0f7f0;
            padding: 2px 6px;
            border-radius: 3px;
            margin-left: 8px;
        }

        .no-results {
            padding: 12px;
            color: #666;
            text-align: center;
            font-style: italic;
        }

        @media (max-width: 768px) {
            .search-results {
                position: absolute;
                top: auto;
                left: 10px;
                right: 10px;
                bottom: 10px;
                width: auto;
                max-height: 60vh;
                margin: 0;
            }
        }

        /* Add these styles for photo upload section */
        .photo-upload-section {
            margin-top: 30px;
            padding-top: 20px;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        /* Move upload button to a new container at the bottom */
        .upload-actions {
            margin-top: 30px;
            text-align: center;
        }

        .upload-button {
            max-width: 200px; /* Limit button width */
            margin: 0 auto;
        }

        .photo-upload-area {
            border: 2px dashed #1e5b1e;
            border-radius: 8px;
            padding: 20px;
            text-align: center;
            background: #f8f9fa;
            cursor: pointer;
            transition: all 0.3s ease;
            margin: 10px 0;
        }

        .photo-preview {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); /* Smaller thumbnails */
            gap: 10px;
            margin-top: 15px;
        }

        .photo-item {
            position: relative;
            border-radius: 4px;
            overflow: visible;
            aspect-ratio: 1;
        }

        .photo-item img {
            width: 100%;
            height: auto;
            object-fit: cover;
        }

        .remove-photo {
            position: absolute;
            top: 5px;
            right: 5px;
            background: rgba(0,0,0,0.5);
            color: white;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 14px;
        }

        /* Add these styles for the spots table */
        .spots-table {
            width: 100%;
            max-width: 100%;
            border-collapse: collapse;
            font-size: 1.0em; /* Slightly smaller font for mobile */
        }

        .spots-table th {
            background: #1e5b1e;
            color: white;
            padding: 8px;
            text-align: left;
            font-weight: normal;
        }

        .spots-table td {
            padding: 8px;
            border-bottom: 1px solid #eee;
        }

        /* Mobile table adjustments */
        @media (max-width: 768px) {
            .spots-table {
                display: block;
                width: 100%;
                font-size: 1.0em;
                -webkit-overflow-scrolling: touch;
            }

            .spots-table thead,
            .spots-table tbody {
                display: block;
                width: 100%;
            }

            .spots-table tr {
                display: flex;
                flex-direction: column;
                padding: 10px 0;
                margin-bottom: 10px;
                
                border: 1px solid #eee;
                
            }
            .spots-table thead {
                display: none; /* Hide headers on mobile */
            }

            .spots-table td {
                display: flex;
                padding: 5px 10px;
                border: none;
                position: relative;
            }

            .spots-table td::before {
                content: attr(data-label);
                font-weight: bold;
                width: 120px;
                min-width: 120px;
            }
        }

        .spot-time {
            color: #666;
            font-size: 0.9em;
        }

        .spot-mode {
            display: inline-block;
            padding: 2px 6px;
            border-radius: 3px;
            background: #f0f7f0;
            color: #1e5b1e;
            font-size: 0.9em;
        }

        .spot-map-link {
            color: #1e5b1e;
            text-decoration: none;
        }

/* MOTD styles */
.motd {
    margin: 1rem;
    padding: 1rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.motd.information {
    background-color: #e3f2fd;
    color: #0d47a1;
    border: 1px solid #bbdefb;
}

.motd.warning {
    background-color: #fff3e0;
    color: #e65100;
    border: 1px solid #ffe0b2;
}

.motd.error {
    background-color: #ffebee;
    color: #b71c1c;
    border: 1px solid #ffcdd2;
}

.motd i {
    font-size: 1.5rem;
}

        .spot-map-link:hover {
            text-decoration: underline;
        }

        .country-flag {
            vertical-align: middle;
            margin-right: 5px;
            height: 15px;
            width: auto;
            max-width: none;
            object-fit: contain;
        }

        /* Make sure flags maintain aspect ratio on mobile */
        @media (max-width: 768px) {
            .country-flag {
                height: 15px;
                width: auto;
                max-width: none;
                object-fit: contain;
            }
        }

        /* Add these styles */
        html, body {
            position: absolute;
            width: 100%;
            height: auto;
            overflow: visible;
        }

        .container {
            height: auto;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }

        /* Update mobile media query */
        @media (max-width: 768px) {
            body {
                position: absolute;
                width: 100%;
                height: auto;
                overflow: visible;
            }

            .container {
                padding: 0 10px;
                height: calc(100% - 120px); /* Adjust based on your header height */
                overflow-y: auto;
                -webkit-overflow-scrolling: touch;
            }
        }
    
        .error-messages {
            margin: 1rem 0;
            padding: 1rem;
            background-color: #ffebee;
            border: 1px solid #ffcdd2;
            border-radius: 4px;
        }
        
        .error-message {
            margin: 0.5rem 0;
            color: #c62828;
        }