/* assets/css/style.css */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --danger-hover: #dc2626;
    --bg-color: #f1f5f9;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.6;
}

.centered-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

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

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

header h1 { font-size: 1.8rem; font-weight: 600; }

.header-actions { display: flex; gap: 1rem; }

.card {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.upload-card {
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.upload-card h2 { margin-bottom: 0.5rem; }
.upload-card p { margin-bottom: 1.5rem; color: var(--text-muted); }

.form-group { margin-bottom: 1rem; text-align: left; }
.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    font-size: 0.9rem;
}
.form-group input {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

/* Grid Layout */
.main-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
}

.controls h3 { margin-bottom: 1rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; }

.actions { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 1.5rem; }

.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.full-width { width: 100%; }

.primary { background: var(--primary-color); color: white; }
.primary:hover:not(:disabled) { background: var(--primary-hover); }

.secondary { background: #e2e8f0; color: #334155; }
.secondary:hover { background: #cbd5e1; }

.success { background: var(--success-color); color: white; }
.danger { background: var(--danger-color); color: white; }
.danger:hover:not(:disabled) { background: var(--danger-hover); }

.progress-container {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    margin-top: 1.5rem;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
}

.status-text {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

/* Console Log */
.console h3 {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.log-window {
    background: #0f172a;
    color: #cbd5e1;
    font-family: 'Courier New', Courier, monospace;
    height: 400px;
    overflow-y: auto;
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.log-entry { margin-bottom: 0.4rem; border-bottom: 1px solid #1e293b; padding-bottom: 0.2rem; }
.log-entry .timestamp { color: #64748b; margin-right: 0.5rem; }
.log-entry.system { color: #38bdf8; }
.log-entry.success { color: #34d399; }
.log-entry.error { color: #f87171; }
.log-entry.warning { color: #fbbf24; }

.alert {
    padding: 0.8rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
}
.alert.error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }