/* Reset and Base Styles */
* {
    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;
    color: #333;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 40px;
}

h1 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    text-align: center;
}

.subtitle {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 30px;
}

h2 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
    font-size: 14px;
}

input[type="text"],
input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
}

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

input[type="file"] {
    padding: 10px;
    cursor: pointer;
}

small {
    display: block;
    margin-top: 4px;
    color: #888;
    font-size: 12px;
}

button[type="submit"],
.download-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

button[type="submit"]:hover,
.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Progress Styles */
#job-id {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-bottom: 20px;
    font-family: monospace;
}

.progress-bar-container {
    width: 100%;
    height: 40px;
    background: #f0f0f0;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#progress-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 700;
    font-size: 14px;
    color: #333;
    z-index: 10;
}

.status-text {
    text-align: center;
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Error Box */
.error-box {
    background: #fee;
    border: 2px solid #fcc;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.error-box h3 {
    color: #c33;
}

.error-box p {
    color: #a33;
    margin-top: 8px;
    line-height: 1.5;
}

/* Success Box */
.success-box {
    background: #efe;
    border: 2px solid #cfc;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.success-box h3 {
    color: #3a3;
    margin-bottom: 15px;
}

.download-btn {
    display: inline-block;
    text-decoration: none;
    margin-top: 10px;
}

/* New Job Button */
#new-job-btn {
    width: 100%;
    padding: 12px;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.2s;
}

#new-job-btn:hover {
    background: #667eea;
    color: white;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 24px;
    }
}
