:root {
    --bg-dark: #030014;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --neon-cyan: #00f3ff;
    --neon-purple: #bc13fe;
    --text-main: #ffffff;
    --text-dim: #a1a1aa;
    --success: #00ff9d;
    --error: #ff0055;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    margin: 0;
    padding: 40px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: gridMove 20s linear infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0) translateZ(-200px); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px) translateZ(-200px); }
}

.container {
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

h1 {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.status-badge {
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
}

.status-RUNNING {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
    animation: pulse 2s infinite;
}

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

h2 {
    font-size: 18px;
    color: var(--text-dim);
    margin-top: 0;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.input-group { margin-bottom: 20px; }

label {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--text-dim);
    font-weight: 500;
}

input[type="text"], input[type="number"] {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    box-sizing: border-box;
}

input:focus {
    outline: none;
    border-color: var(--neon-purple);
    box-shadow: 0 0 15px rgba(188, 19, 254, 0.2);
}

button {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#startBtn {
    background: linear-gradient(135deg, var(--neon-purple), #7928ca);
    color: white;
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.4);
}

#startBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(188, 19, 254, 0.6);
}

#stopBtn {
    background: linear-gradient(135deg, #ff0055, #990033);
    color: white;
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.4);
}

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

.stat-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: white;
    font-family: 'JetBrains Mono', monospace;
}

.stat-label {
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-top: 5px;
}

.log-window {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    height: 350px;
    overflow-y: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    line-height: 1.8;
    color: var(--success);
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

th {
    text-align: left;
    color: var(--text-dim);
    font-size: 12px;
    text-transform: uppercase;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
}

td {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 14px;
    word-break: break-word;
}

.pill-QUALIFIED {
    background: rgba(0, 243, 255, 0.15);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 243, 255, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.pill-SUBMITTED {
    background: rgba(0, 255, 157, 0.15);
    color: var(--success);
    border: 1px solid rgba(0, 255, 157, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.pill-FAILED {
    background: rgba(255, 0, 85, 0.15);
    color: var(--error);
    border: 1px solid rgba(255, 0, 85, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 100;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #0a0a0a;
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 50px rgba(188, 19, 254, 0.2);
    padding: 30px;
    border-radius: 24px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

@keyframes pulse {
    0% { opacity: 1; box-shadow: 0 0 15px rgba(0, 243, 255, 0.3); }
    50% { opacity: 0.7; box-shadow: 0 0 25px rgba(0, 243, 255, 0.5); }
    100% { opacity: 1; box-shadow: 0 0 15px rgba(0, 243, 255, 0.3); }
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.3); }
::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* Batch Submit Button */
#batchSubmitBtn {
    background: linear-gradient(135deg, var(--success), #00cc7d);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.4);
}
#batchSubmitBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 255, 157, 0.6);
}
#batchSubmitBtn:disabled {
    background: #333;
    color: #666;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}
