* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    max-width: 400px;
    width: 100%;
}

.login-container h1 {
    color: #AC3356;
    text-align: center;
    margin-bottom: 10px;
    font-size: 2em;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    padding: 30px;
}

header {
    border-bottom: 3px solid #AC3356;
    padding-bottom: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    color: #AC3356;
    font-size: 2.5em;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #666;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #AC3356;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.9em;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #AC3356;
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: #8c2845;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(172, 51, 86, 0.3);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
    background: #666;
    color: white;
}

.btn-small:hover {
    background: #444;
}

.progress-container {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.progress-container h3 {
    color: #AC3356;
    margin-bottom: 15px;
}

.progress-bar-container {
    width: 100%;
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    margin: 15px 0;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #AC3356, #d45278);
    transition: width 0.5s ease;
    border-radius: 15px;
}

.progress-text {
    font-size: 16px;
    color: #666;
    margin-top: 10px;
    font-weight: 500;
}

.error-message {
    background: #ffe0e0;
    color: #d8000c;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #d8000c;
    margin: 20px 0;
}

.success-message {
    background: #e0ffe0;
    color: #0c8000;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #0c8000;
    margin-bottom: 20px;
    font-size: 18px;
}

.warning-message {
    background: #fff3e0;
    color: #ff8800;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #ff8800;
    margin: 20px 0;
}

.debug-box {
    background: #f0f8ff;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #667eea;
}

.debug-box h3 {
    color: #667eea;
    margin-bottom: 10px;
}

.debug-box p {
    color: #333;
}

.map-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 2px solid #AC3356;
}

.map-section h3 {
    color: #AC3356;
    margin-bottom: 15px;
}

#map {
    height: 500px;
    width: 100%;
    border-radius: 5px;
    margin-top: 10px;
    position: relative;
}

.map-legend {
    position: absolute;
    bottom: 30px;
    right: 10px;
    background: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    font-size: 13px;
}

.map-legend h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #333;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.legend-color {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 3px;
    border: 2px solid;
}

.legend-contour {
    background: rgba(76, 175, 80, 0.2);
    border-color: #2e7d32;
    border-style: dashed;
}

.legend-las {
    background: rgba(172, 51, 86, 0.4);
    border-color: #AC3356;
}

.downloads-section {
    background: #e8f5e9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 2px solid #4caf50;
}

.downloads-section h3 {
    color: #2e7d32;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.preview-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 2px solid #ddd;
}

.preview-box h3 {
    color: #AC3356;
    margin-bottom: 15px;
}

.toggle-header {
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.toggle-header:hover {
    opacity: 0.8;
}

.toggle-icon {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.collapsible-content {
    overflow: hidden;
    transition: all 0.3s ease;
}

.links-container {
    max-height: 400px;
    overflow-y: auto;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
}

.download-link-item {
    color: #667eea;
    text-decoration: none;
    display: block;
    padding: 8px;
    border-bottom: 1px solid #ddd;
    transition: all 0.2s;
}

.download-link-item:hover {
    background: #e8f0fe;
    padding-left: 15px;
}

.copyright {
    text-align: center;
    margin-top: 30px;
    color: #999;
    font-size: 14px;
}

footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    header {
        flex-direction: column;
        gap: 15px;
    }
    
    header h1 {
        font-size: 1.8em;
    }
    
    #map {
        height: 300px;
    }
}

