* { box-sizing: border-box; }
body { margin: 0; background: #06152e; color: white; font-family: "Segoe UI", Arial, sans-serif; }
header { display: flex; justify-content: space-between; align-items: center; padding: 28px 36px; background: linear-gradient(135deg, #081a3a, #0c2b61); border-bottom: 1px solid #17417d; }
h1, h2 { margin: 0 0 10px; }
p { color: #b8d8ff; margin: 0; }
.logout { color: white; text-decoration: none; background: #1677ff; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
main { padding: 24px 36px; display: grid; gap: 18px; }
.panel { background: #081f45; border: 1px solid #15386f; border-radius: 18px; padding: 22px; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
textarea { width: 100%; height: 90px; background: #06152e; color: white; border: 1px solid #285aa8; border-radius: 12px; padding: 14px; resize: vertical; font-size: 15px; }
input[type="file"] { color: #d7ecff; }
.row { margin: 14px 0; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.tools { display: flex; gap: 18px; margin: 14px 0; flex-wrap: wrap; }
button, .export-buttons a { border: 0; background: #1677ff; color: white; padding: 11px 16px; border-radius: 10px; cursor: pointer; font-weight: 800; text-decoration: none; display: inline-block; }
button:hover, .export-buttons a:hover { background: #49a5ff; }
button.danger { background: #d83b3b; margin-left: 8px; }
button.danger:hover { background: #ff5555; }
.export-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.stats { color: #d7ecff; margin-bottom: 16px; }
.job { background: #0c2b61; border-radius: 14px; padding: 14px; margin: 10px 0; display: grid; grid-template-columns: 1.3fr 1fr 1fr auto auto; gap: 10px; align-items: center; }
.badge { padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; width: fit-content; }
.queued { background: #626b7b; }
.running { background: #b8860b; }
.done { background: #0d8f54; }
.error { background: #b92f2f; }
.result-group { margin: 18px 0; padding: 14px; background: #0c2b61; border-radius: 14px; }
.result-link { display: block; margin: 8px 0; padding: 10px; background: #06152e; border-radius: 10px; color: #8fc7ff; text-decoration: none; word-break: break-all; }
.result-link:hover { background: #123978; }
.small { color: #b8d8ff; font-size: 13px; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.72); display: flex; justify-content: center; align-items: center; padding: 28px; }
.hidden { display: none; }
.modal-content { width: min(1100px, 95vw); height: min(720px, 90vh); background: #081f45; border-radius: 18px; padding: 18px; border: 1px solid #285aa8; display: flex; flex-direction: column; }
.close { align-self: flex-end; width: 42px; height: 42px; border-radius: 50%; padding: 0; }
pre { flex: 1; overflow: auto; background: #020914; color: #d7ecff; padding: 16px; border-radius: 12px; white-space: pre-wrap; }
.login-body { min-height: 100vh; display: grid; place-items: center; }
.login-card { width: min(420px, 92vw); padding: 28px; background: #081f45; border-radius: 18px; border: 1px solid #285aa8; }
.login-card input { width: 100%; margin: 18px 0; padding: 14px; border-radius: 10px; border: 1px solid #285aa8; background: #06152e; color: white; }
.login-card button { width: 100%; }
@media (max-width: 850px) { .job { grid-template-columns: 1fr; } header { flex-direction: column; gap: 14px; align-items: flex-start; } }
