:root {
    --primary-color: #3498db;
    --primary-hover: #2980b9;
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --text-color: #2c3e50;
    --border-color: #e0e0e0;
    --success-color: #2ecc71;
    --error-color: #e74c3c;
    --pending-color: #f1c40f;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 800px;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    transition: transform 0.2s ease;
}

.hidden {
    display: none !important;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 14px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn.primary {
    background-color: var(--primary-color);
    color: white;
    width: 100%;
}

.btn.primary:hover {
    background-color: var(--primary-hover);
}

.btn.secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn.secondary:hover {
    background-color: #f8f9fa;
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.upload-area:hover, .upload-area.dragover {
    border-color: var(--primary-color);
    background-color: rgba(52, 152, 219, 0.05);
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.sub-text {
    color: #7f8c8d;
    font-size: 14px;
}

/* Queue List */
.queue-list {
    margin-top: 15px;
}

.queue-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.queue-item:last-child {
    border-bottom: none;
}

.job-name {
    font-weight: 500;
}

.job-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    font-weight: 600;
}

.status-queued { background: rgba(241, 196, 15, 0.15); color: #f39c12; }
.status-processing { background: rgba(52, 152, 219, 0.15); color: var(--primary-color); animation: pulse 1.5s infinite; }
.status-completed { background: rgba(46, 204, 113, 0.15); color: var(--success-color); }
.status-error { background: rgba(231, 76, 60, 0.15); color: var(--error-color); }

.download-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    margin-left: 10px;
}

.download-link:hover {
    text-decoration: underline;
}

/* Connection Status */
.connection-status {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #7f8c8d;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
    margin-right: 6px;
}

.connected .status-dot { background-color: var(--success-color); }
.connected .status-text { color: var(--success-color); }

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Progress Bar */
.progress-bar {
    height: 6px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 20px;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
}
