:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --bg-dark: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --success: #10b981;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Dynamic Background */
.background-orb {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, rgba(15, 23, 42, 0) 70%);
    z-index: -1;
    animation: drift 20s infinite alternate ease-in-out;
}
.orb-2 {
    top: auto;
    bottom: -10%;
    left: auto;
    right: -10%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
    animation-delay: -10s;
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 30px); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}
header h1 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
header p {
    color: var(--text-muted);
}

.main-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.card h2 {
    margin-top: 0;
    font-size: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

/* Form Styles */
.form-group {
    margin-bottom: 16px;
}
label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}
input {
    width: 100%;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 10px;
    color: #fff;
    font-family: inherit;
    box-sizing: border-box;
    transition: all 0.2s;
}
input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0,0,0,0.4);
}

button {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}
.secondary-btn {
    background: rgba(255,255,255,0.1);
    margin-top: 10px;
}
.btn-download {
    display: block;
    background: var(--success);
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}
.refresh-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    width: auto;
    padding: 8px 16px;
    margin-top: 10px;
    font-size: 0.8rem;
}

/* Status Panel */
.progress-con {
    margin-bottom: 20px;
}
.progress-bar-bg {
    background: rgba(255,255,255,0.1);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}
.progress-bar {
    background: var(--primary);
    height: 100%;
    width: 0%; /* Dynamic */
    transition: width 0.3s ease;
}
#statusText {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.console-log {
    background: rgba(0,0,0,0.4);
    border-radius: 8px;
    padding: 12px;
    height: 150px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.8rem;
    color: #cbd5e1;
    border: 1px solid rgba(255,255,255,0.05);
}
.console-log div {
    margin-bottom: 4px;
}

/* Table */
.table-container {
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
th {
    color: var(--text-muted);
    font-weight: 500;
}
.action-link {
    color: var(--primary);
    text-decoration: none;
}
.action-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
}
