/* Base styles */
:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #2ecc71;
    --text-color: #333;
    --light-gray: #f4f4f4;
    --mid-gray: #ddd;
    --dark-gray: #aaa;
    --error-color: #e74c3c;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --info-color: #3498db;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header, footer {
    text-align: center;
    padding: 20px 0;
}

header h1 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

footer {
    margin-top: 30px;
    color: var(--dark-gray);
    font-size: 0.9em;
}

.footer__link {
    text-decoration: none;
}

.footer__link:hover {
    text-decoration: underline;
}

.privacy-note {
    font-size: 0.8em;
    font-style: italic;
    margin-top: 10px;
    color: var(--dark-gray);
}

/* Form styles */
.section {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

h2 {
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.file-input-container {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

input[type="file"] {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.custom-file-button {
    display: inline-block;
    background-color: var(--light-gray);
    color: var(--text-color);
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid var(--mid-gray);
    transition: background-color 0.2s;
}

.custom-file-button:hover {
    background-color: var(--mid-gray);
}

#selected-files-count {
    margin-left: 10px;
    color: var(--dark-gray);
}

button {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s, transform 0.1s;
}

button:active {
    transform: scale(0.98);
}

.primary-button {
    background-color: var(--primary-color);
    color: white;
}

.primary-button:hover {
    background-color: var(--primary-dark);
}

.primary-button:disabled {
    background-color: var(--dark-gray);
    cursor: not-allowed;
}

.secondary-button {
    background-color: var(--light-gray);
    color: var(--text-color);
    border: 1px solid var(--mid-gray);
}

.secondary-button:hover {
    background-color: var(--mid-gray);
}

/* Progress bar */
.progress-container {
    margin: 15px 0;
    height: 20px;
    background-color: var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.progress-text {
    display: block;
    margin-top: 5px;
    font-size: 0.9em;
    color: var(--dark-gray);
}

/* Map styles */
.map-section {
    padding: 0;
    overflow: hidden;
}

.map-section h2 {
    padding: 20px 20px 0 20px;
    margin-bottom: 10px;
}

#map {
    height: 500px;
    width: 100%;
}

.map-controls {
    padding: 10px 20px 20px 20px;
    display: flex;
    justify-content: space-between;
}

/* Status messages */
#status-messages {
    margin-top: 20px;
}

.status-message {
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    font-size: 0.9em;
}

.status-error {
    background-color: rgba(231, 76, 60, 0.1);
    border-left: 4px solid var(--error-color);
    color: var(--error-color);
}

.status-success {
    background-color: rgba(46, 204, 113, 0.1);
    border-left: 4px solid var(--success-color);
    color: var(--success-color);
}

.status-warning {
    background-color: rgba(243, 156, 18, 0.1);
    border-left: 4px solid var(--warning-color);
    color: var(--warning-color);
}

.status-info {
    background-color: rgba(52, 152, 219, 0.1);
    border-left: 4px solid var(--info-color);
    color: var(--info-color);
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Responsive styles */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .map-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .map-controls button {
        width: 100%;
    }
    
    #map {
        height: 350px;
    }
}
