/* Base styles */
:root {
    --primary-color: #4a6fa5;
    --primary-hover: #3a5a8c;
    --secondary-color: #6c757d;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --border-color: #dee2e6;
    --border-radius: 0.25rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --transition: all 0.2s ease-in-out;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f5f7fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

header p {
    color: var(--secondary-color);
}

/* Main content */
main {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Drop zones */
.drop-zones {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.drop-zone {
    flex: 1;
    min-width: 300px;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.drop-zone:hover {
    border-color: var(--primary-color);
}

.drop-zone.active {
    border-color: var(--primary-color);
    background-color: rgba(74, 111, 165, 0.05);
}

.drop-zone-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.drop-zone-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.drop-zone-text {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.drop-zone-subtext {
    font-size: 0.875rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.drop-zone-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.drop-zone-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.drop-zone-button:hover {
    background-color: var(--border-color);
}

.drop-zone-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--secondary-color);
}

/* Actions */
.actions {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.primary-button {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

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

.primary-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Results */
.results {
    margin-top: 2rem;
}

.progress-container {
    width: 100%;
    height: 8px;
    background-color: var(--light-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

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

.download-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--success-color);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.download-button:hover {
    background-color: #218838;
}

/* Footer */
footer {
    text-align: center;
    color: var(--secondary-color);
    font-size: 0.875rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .drop-zones {
        flex-direction: column;
    }
    
    .drop-zone {
        min-width: 100%;
    }
}
