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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2em;
}

h2 {
    color: #555;
    margin: 30px 0 15px 0;
    font-size: 1.4em;
}

h3 {
    color: #666;
    margin-bottom: 10px;
}

.download-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.form-row {
    display: flex;
    gap: 20px;
    align-items: flex-end;
}

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

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    cursor: pointer;
}

.btn-primary,
.btn-secondary {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    margin-bottom: 15px;
}

.btn-secondary:hover {
    background: #5a6268;
}

.status-box {
    background: #e9ecef;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.status-box.hidden {
    display: none;
}

#statusMessages {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
}

.status-message {
    padding: 5px 0;
    border-bottom: 1px solid #ddd;
}

.status-message:last-child {
    border-bottom: none;
}

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

.status-message.complete {
    color: #28a745;
    font-weight: bold;
}

.status-message.progress {
    color: #007bff;
}

.downloads-section {
    margin-top: 30px;
}

#downloadsList {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    min-height: 100px;
}

.download-item {
    background: white;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 6px;
    border-left: 4px solid #667eea;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.download-item:last-child {
    margin-bottom: 0;
}

.download-name {
    font-weight: 500;
    color: #333;
}

.download-size {
    color: #666;
    font-size: 14px;
}

.empty-state {
    text-align: center;
    color: #999;
    padding: 30px;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
    }
    
    .container {
        padding: 20px;
    }
}
