@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    margin: 0;
    padding: 40px 20px;
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 40px;
    background: linear-gradient(to right, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

h2 {
    font-weight: 600;
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

h3 {
    font-weight: 600;
    font-size: 1.05rem;
    margin-top: 25px;
    margin-bottom: 15px;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type=file],
input[type=number],
input[type=text] {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

input[type=file]::file-selector-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 15px;
    transition: all 0.2s ease;
}

input[type=file]::file-selector-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

input::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
    background: rgba(15, 23, 42, 0.8);
}

button {
    background: linear-gradient(to right, var(--accent-color), #4f46e5);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

button:active {
    transform: translateY(1px);
}

.settings {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    background: rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 12px;
    margin-top: 10px;
    margin-bottom: 25px;
}

.progress-container {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

#progressBar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    transition: width 0.4s ease;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

#status {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 500;
}

.stats {
    display: flex;
    justify-content: space-between;
    background: rgba(0,0,0,0.2);
    padding: 15px 20px;
    border-radius: 10px;
}

.stats div {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.stats span {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 4px;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

table th,
table td {
    border-bottom: 1px solid var(--border-color);
    padding: 16px 10px;
    text-align: left;
}

table th {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

table td {
    font-size: 0.95rem;
}

table tr:last-child td {
    border-bottom: none;
}

.success {
    color: var(--success) !important;
    font-weight: 600;
}

.running {
    color: var(--warning) !important;
    font-weight: 600;
}

.failed {
    color: var(--danger) !important;
    font-weight: 600;
}

.download-link {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.download-link:hover {
    background: rgba(16, 185, 129, 0.25);
    color: #fff;
}