* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #e0e0e0;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #ce422b 0%, #a33526 100%);
    color: white;
    padding: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Main Content */
main {
    padding: 2rem 0;
}

/* Upload Section */
.upload-section {
    background: #2a2a2a;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.upload-section h2 {
    color: #ce422b;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #b0b0b0;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group textarea,
.form-group input[type="file"] {
    width: 100%;
    padding: 0.75rem;
    background: #1a1a1a;
    border: 2px solid #3a3a3a;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ce422b;
}

.form-group input[type="file"] {
    padding: 0.5rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Buttons */
.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #ce422b 0%, #a33526 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(206, 66, 43, 0.4);
}

.btn-download {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    width: 100%;
    margin-top: 1rem;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(46, 204, 113, 0.4);
}

/* Status Messages */
#uploadStatus {
    margin-top: 1rem;
}

.status-success {
    color: #2ecc71;
    font-weight: 600;
}

.status-error {
    color: #e74c3c;
    font-weight: 600;
}

.status-info {
    color: #3498db;
    font-weight: 600;
}

/* Maps Section */
.maps-section {
    margin-bottom: 3rem;
}

.maps-section h2 {
    color: #ce422b;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.search-box {
    margin-bottom: 2rem;
}

.search-box input {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem 1rem;
    background: #2a2a2a;
    border: 2px solid #3a3a3a;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: #ce422b;
}

/* Maps Grid */
.maps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.map-card {
    background: #2a2a2a;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.map-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.map-header h3 {
    color: #fff;
    font-size: 1.3rem;
    flex: 1;
}

.downloads {
    background: #ce422b;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.map-description {
    color: #b0b0b0;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.map-info {
    background: #1a1a1a;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
}

.info-item .label {
    color: #808080;
    font-weight: 500;
}

.info-item span:last-child {
    color: #e0e0e0;
}

/* Loading & No Maps */
.loading,
.no-maps,
.error {
    text-align: center;
    padding: 3rem;
    color: #808080;
    font-size: 1.1rem;
}

.no-maps {
    color: #b0b0b0;
}

.error {
    color: #e74c3c;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: #808080;
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
    border-top: 2px solid #2a2a2a;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .maps-grid {
        grid-template-columns: 1fr;
    }
    
    .upload-section,
    .map-card {
        padding: 1rem;
    }
}
