:root {
    --bg-dark: #0f172a;
    --panel-bg: #1e293b;
    --border: #334155;
    --text-main: #f1f5f9;
    --text-dim: #94a3b8;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow: hidden;
}

/* SVG Icon Handling */
.icon {
    width: 24px;
    height: 24px;
    stroke: currentColor; /* Inherits color from parent text */
}

.icon-inline {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    vertical-align: text-bottom;
    margin-right: 8px;
}

/* Layout */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.main-header {
    height: 60px;
    background: var(--panel-bg);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.logo { display: flex; align-items: center; gap: 10px; font-weight: bold; font-size: 1.2rem; }
.logo span .accent-text { color: var(--accent); }

.controls { display: flex; gap: 10px; }
input { 
    background: var(--bg-dark); border: 1px solid var(--border); color: white;
    padding: 8px 12px; border-radius: 6px; width: 200px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 20px;
    padding: 20px;
    flex-grow: 1;
    height: calc(100vh - 100px);
}

.panel {
    background: var(--panel-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

.panel-header { padding: 15px 20px; border-bottom: 1px solid var(--border); }
.panel-header h2 { margin: 0; font-size: 1rem; display: flex; align-items: center; gap: 2px; }

.scroll-area { flex-grow: 1; overflow-y: auto; padding: 10px; }

/* Table Styling */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; color: var(--text-dim); font-size: 0.85rem; padding: 10px; }
td { padding: 12px 10px; border-bottom: 1px solid #ffffff05; }

/* Buttons */
.btn-primary { background: var(--accent); border: none; color: white; padding: 8px 16px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; }
.btn-small { background: transparent; border: 1px solid var(--accent); color: var(--accent); padding: 4px 8px; border-radius: 4px; font-size: 0.8rem; cursor: pointer; }

/* Process Cards */
.process-card {
    background: var(--bg-dark);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid var(--accent);
}

.process-header { display: flex; justify-content: space-between; margin-bottom: 10px; }
.progress-bar { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); width: 0%; transition: width 0.3s; }
.log-output { font-family: monospace; font-size: 0.75rem; color: var(--text-dim); margin-top: 10px; background: #000; padding: 8px; border-radius: 4px; height: 60px; overflow-y: auto; }

.btn-secondary {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    outline: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-close {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.btn-close:hover {
    color: #ef4444;
}

.process-card {
    transition: all 0.3s ease;
}