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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    min-height: 100vh;
}

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

h1 { font-size: 1.8rem; margin-bottom: 0.25rem; }
h2 { font-size: 1.2rem; color: #94a3b8; }
.queue-header { display: flex; justify-content: space-between; align-items: center; margin: 2rem 0 1rem; }
.clear-btn {
    background: #7f1d1d; border: 1px solid #991b1b; border-radius: 8px;
    color: #fca5a5; padding: 0.4rem 0.8rem; cursor: pointer; font-size: 0.8rem;
    transition: all 0.2s;
}
.clear-btn:hover { background: #991b1b; color: #fee2e2; }
.subtitle { color: #64748b; margin-bottom: 1.5rem; }

.task-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.task-buttons button {
    display: flex; flex-direction: column; align-items: flex-start;
    background: #1e293b; border: 1px solid #334155; border-radius: 12px;
    padding: 1.2rem; cursor: pointer; transition: all 0.2s;
    color: #e2e8f0; text-align: left;
}
.task-buttons button:hover { border-color: #60a5fa; background: #1e3a5f; }
.task-buttons .icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.task-buttons .label { font-weight: 600; font-size: 1rem; margin-bottom: 0.25rem; }
.task-buttons .desc { font-size: 0.75rem; color: #94a3b8; }

.task-card {
    background: #1e293b; border: 1px solid #334155; border-radius: 10px;
    padding: 1rem 1.2rem; margin-bottom: 0.75rem;
    border-left: 4px solid #475569;
}
.state-pending  { border-left-color: #64748b; }
.state-started  { border-left-color: #facc15; }
.state-progress { border-left-color: #60a5fa; }
.state-success  { border-left-color: #34d399; }
.state-failure  { border-left-color: #f87171; }

.task-header { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.task-type { font-weight: 600; }
.task-state { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.state-progress .task-state { color: #60a5fa; }
.state-success .task-state { color: #34d399; }
.state-failure .task-state { color: #f87171; }

.progress-bar {
    height: 6px; background: #334155; border-radius: 3px; overflow: hidden; margin-bottom: 0.5rem;
}
.progress-fill {
    height: 100%; background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 3px; transition: width 0.5s ease;
}
.state-success .progress-fill { background: linear-gradient(90deg, #10b981, #34d399); }

.task-detail { display: flex; justify-content: space-between; font-size: 0.85rem; color: #94a3b8; }
.task-meta { font-size: 0.7rem; color: #475569; margin-top: 0.4rem; }

.empty { color: #64748b; text-align: center; padding: 2rem; }
