:root {
    --bg: #f4f4f9;
    --card-bg: #ffffff;
    --text: #333333;
    --accent: #2563eb;
    --border: #e5e7eb;
    --success: #10b981;
    --danger: #ef4444;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 2rem;
    display: flex;
    justify-content: center;
}

/* Card & Layout Styles */
.container { width: 100%; max-width: 1200px; }
.card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

/* Forms & Buttons */
.form-group { margin-bottom: 1rem; display: flex; flex-direction: column; }
label { margin-bottom: 0.5rem; font-weight: 500; font-size: 0.9rem; }
input, select {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
}
button {
    padding: 0.75rem 1.5rem;
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s;
}
button:hover { opacity: 0.9; }
button.approve { background-color: var(--success); }
button.deny { background-color: var(--danger); }

/* Tables */
table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--border); }
th { color: #666; background: #f8fafc; }

/* --- Map & Telemetry Dashboard Layout --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2rem;
    align-items: start;
}

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

svg { width: 100%; height: auto; border: 2px dashed var(--border); border-radius: 4px; }
.printer-shape { fill: #e2e8f0; stroke: #94a3b8; stroke-width: 4; cursor: pointer; transition: all 0.2s ease; }
.printer-shape:hover { fill: #cbd5e1; }
.printer-shape.selected { fill: var(--accent); stroke: #1e40af; filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.5)); }
.bench { fill: #f8fafc; stroke: #cbd5e1; stroke-width: 2; }
.map-text { font-family: sans-serif; font-size: 14px; fill: #64748b; font-weight: bold; pointer-events: none;}
.printer-label { font-family: sans-serif; font-size: 16px; fill: #333; font-weight: bold; pointer-events: none;}

/* Status Panel */
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.metric { font-size: 1.5rem; font-weight: bold; color: var(--accent); }
.label { font-size: 0.875rem; color: #666; }
.progress-container { background-color: var(--border); border-radius: 999px; height: 1.5rem; overflow: hidden; position: relative; }
.progress-bar { height: 100%; background-color: var(--success); width: 0%; transition: width 0.3s ease; }
.progress-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: white; font-size: 0.875rem; font-weight: bold; text-shadow: 1px 1px 2px rgba(0,0,0,0.5); }
