@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-dark: #0f172a; --bg-med: #1e293b; --bg-light: #334155; --border-color: #475569;
    --text-light: #cbd5e1; --text-med: #94a3b8; --accent: #3b82f6; --accent-hover: #2563eb;
    --correct: #22c55e; --incorrect: #ef4444;
}
body { font-family: 'Inter', sans-serif; background-color: var(--bg-dark); color: var(--text-light); margin: 0; padding: 1rem; }
#app-container { max-width: 1200px; margin: auto; }
.app-header { text-align: center; margin-bottom: 1.5rem; }
.app-header h1 { margin: 0; font-size: 1.8rem; }
.app-header p { margin: 0.25rem 0 0; color: var(--text-med); }
.main-content { display: grid; grid-template-columns: 280px 1fr; gap: 1.5rem; }
#question-nav-container { background-color: var(--bg-med); border-radius: 8px; padding: 1rem; align-self: start; }
#question-nav-container h2 { margin: 0 0 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-color); }
.nav-list { display: flex; flex-direction: column; gap: 0.5rem; }
.nav-item { display: flex; align-items: center; padding: 0.6rem; border-radius: 6px; cursor: pointer; transition: background-color 0.2s; border-left: 4px solid transparent; font-size: 0.9rem; }
.nav-item.active { background-color: var(--bg-light); border-left-color: var(--accent); font-weight: 600; }
.nav-item:not(.active):hover { background-color: #28354c; }
.nav-item .status-icon { width: 1rem; height: 1rem; border-radius: 50%; margin-right: 0.75rem; flex-shrink: 0; }
.nav-item .status-icon.unanswered { background-color: var(--border-color); }
.nav-item .status-icon.answered { background-color: var(--accent); }
.nav-item .status-icon.correct { background-color: var(--correct); }
.nav-item .status-icon.incorrect { background-color: var(--incorrect); }
#stage { background-color: var(--bg-med); border-radius: 8px; padding: 1.5rem; min-height: 500px; }
.screen { display: none; }
.screen.active { display: block; }
#welcome-screen, .results-summary { text-align: center; padding-top: 4rem; }
#welcome-screen h2, .results-summary h2 { margin: 0; }
#welcome-screen p, .results-summary p { color: var(--text-med); max-width: 600px; margin: 1rem auto; line-height: 1.6; }
.score { font-size: 2.5rem; color: var(--accent); font-weight: bold; margin: 1rem 0; }
#question-scenario { margin-bottom: 1.5rem; color: var(--text-med); line-height: 1.6; }
#question-scenario ul { background-color: var(--bg-dark); padding: 1rem; border-radius: 6px; list-style-position: inside; }
.exam-footer { display: none; margin-top: 1.5rem; background-color: var(--bg-med); padding: 1rem; border-radius: 8px; }
.progress-container { background-color: var(--bg-light); border-radius: 99px; height: 8px; margin-bottom: 0.5rem; }
#progress-bar { background-color: var(--accent); height: 100%; width: 0%; border-radius: 99px; transition: width 0.3s; }
#progress-text { text-align: center; color: var(--text-med); font-size: 0.9rem; margin-bottom: 1rem; }
.nav-buttons { display: flex; justify-content: space-between; align-items: center; }
.action-btn { background-color: var(--accent); color: white; padding: 0.7rem 1.5rem; border: none; border-radius: 6px; font-weight: 600; cursor: pointer; transition: background-color 0.2s; }
.action-btn:hover { background-color: var(--accent-hover); }
.nav-btn { background-color: var(--bg-light); color: var(--text-light); padding: 0.6rem 1.2rem; border: 1px solid var(--border-color); border-radius: 6px; cursor: pointer; transition: background-color 0.2s; }
.nav-btn:hover { background-color: #404f68; }
.nav-btn:disabled { background-color: var(--bg-med); color: var(--border-color); cursor: not-allowed; }
.feedback-section { margin-top: 2rem; }
.feedback-section h3 { text-align: center; margin-bottom: 1rem; }
#feedback-container { display: flex; flex-direction: column; gap: 1rem; max-height: 300px; overflow-y: auto; padding-right: 10px; }
.feedback-card { background-color: var(--bg-dark); padding: 1rem; border-radius: 6px; }
.feedback-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.feedback-card-header h4 { margin: 0; }
.feedback-card p { margin: 0; font-size: 0.9rem; color: var(--text-med); }
.status-badge { padding: 0.25rem 0.6rem; border-radius: 99px; font-size: 0.8rem; font-weight: 600; }
.status-badge.correct { background-color: rgba(34, 197, 94, 0.2); color: var(--correct); }
.status-badge.incorrect { background-color: rgba(239, 68, 68, 0.2); color: var(--incorrect); }
.dnd-container, .dnd-tabs-container { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 768px) { .dnd-container, .dnd-tabs-container { flex-direction: row; } }
.dnd-bank { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; align-content: start; }
.dnd-targets { flex: 2; display: flex; flex-direction: column; gap: 1rem; }
.draggable { padding: 0.7rem; background-color: var(--bg-light); border: 1px solid var(--border-color); border-radius: 6px; cursor: grab; text-align: center; user-select: none; }
.draggable.dragging { opacity: 0.5; }
.draggable-img { width: 100%; height: auto; }
.drop-zone { min-height: 48px; border: 2px dashed var(--border-color); border-radius: 6px; transition: all 0.2s; display: flex; align-items: center; justify-content: center; padding: 0.5rem; }
.drop-zone.drag-over { border-color: var(--accent); background-color: #28354c; }
.drop-zone.filled { border-style: solid; padding: 0; }
.dnd-target-row { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 1rem; }
.dnd-target-row img { background: white; padding: 5px; border-radius: 4px; object-fit: contain; width: 100%; height: auto; }
.dnd-target-row .label { text-align: right; font-weight: 600; }
.pc-build-table { width: 100%; border-collapse: collapse; }
.pc-build-table th, .pc-build-table td { border: 1px solid var(--border-color); padding: 0.75rem; text-align: left; }
.pc-build-table th { background-color: var(--bg-dark); text-align: center; }
.dnd-tabs { border-bottom: 1px solid var(--border-color); display: flex;}
.dnd-tab-btn { padding: 0.75rem 1.5rem; background: none; border: none; color: var(--text-med); cursor: pointer; font-size: 1rem; font-weight: 600; border-bottom: 3px solid transparent; }
.dnd-tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.dnd-tab-content { display: none; }
.dnd-tab-content.active { display: block; padding-top: 1rem; }
.hotspot-container { position: relative; max-width: 800px; margin: auto; }
.hotspot-img { width: 100%; height: auto; display: block; border-radius: 6px; }
.hotspot-drop-zone { position: absolute; border: 2px dashed var(--accent); background: rgba(59, 130, 246, 0.2); border-radius: 4px; }
.hotspot-drop-zone:hover { background: rgba(59, 130, 246, 0.4); }
.hotspot-drop-zone.filled { background: rgba(34, 197, 94, 0.4); border-style: solid; border-color: var(--correct); }
.hotspot-drop-zone .draggable { font-size: 0.8rem; padding: 0.4rem; width: 100%; height: 100%; box-sizing: border-box; }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); display: flex; justify-content: center; align-items: center; z-index: 1000; }
.router-ui { background-color: #f0e6d2; border: 8px solid #d4b887; border-radius: 10px; width: 100%; max-width: 600px; box-shadow: 0 10px 25px rgba(0,0,0,0.5); color: #333; }
.router-header { background-color: #e9d8b3; padding: 8px 16px; font-size: 1.2rem; font-weight: bold; color: #5a4a31; border-bottom: 2px solid #d4b887; }
.router-tabs { display: flex; background-color: #f0e6d2; padding: 0 10px; }
.router-tab-btn { padding: 10px 15px; cursor: pointer; border: 2px solid transparent; border-bottom: none; background-color: #e9d8b3; border-radius: 8px 8px 0 0; margin-right: 5px; font-weight: 600; color: #7a6a51; }
.router-tab-btn.active { background-color: #f0e6d2; border-color: #d4b887; position: relative; bottom: -2px; }
.router-body { padding: 20px; border-top: 2px solid #d4b887; }
.router-tab-content { display: none; }
.router-tab-content.active { display: block; }
.router-body fieldset { border: 1px solid #d4b887; border-radius: 5px; padding: 15px; margin-bottom: 20px; }
.router-body legend { font-weight: bold; padding: 0 10px; color: #5a4a31; }
.router-body .form-row { display: flex; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.router-body .form-row label { width: 180px; font-weight: 500; flex-shrink: 0; }
.router-body .form-row input[type="text"], .router-body .form-row input[type="password"], .router-body .form-row select { flex-grow: 1; padding: 8px; border: 1px solid #c8ad81; border-radius: 4px; min-width: 150px; }
.router-body .form-row input[type="checkbox"] { margin-right: 10px; width: 20px; height: 20px; }
.mac-input { width: 100%; margin-bottom: 8px; padding: 8px; border: 1px solid #c8ad81; border-radius: 4px; }
.router-footer { display: flex; justify-content: flex-end; align-items: center; padding: 15px 20px; background-color: #e9d8b3; border-top: 2px solid #d4b887; }
.router-save-btn { background-color: #f0c14b; border: 1px solid #a88734; border-radius: 5px; padding: 8px 16px; font-weight: bold; cursor: pointer; box-shadow: 0 1px 0 rgba(255,255,255,.4) inset; }
.router-save-btn:hover { background-color: #e7b038; }
.diag-dropdowns { display: flex; flex-direction: column; gap: 1rem; max-width: 400px; }
.diag-dropdowns select { width: 100%; padding: 8px; border-radius: 6px; background-color: var(--bg-light); color: var(--text-light); border: 1px solid var(--border-color); }
.hotspot-diagnostic-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.device-card { background-color: var(--bg-dark); padding: 1rem; border-radius: 8px; }
.device-card img { width: 100%; height: 150px; object-fit: contain; background-color: #fff; border-radius: 4px; margin-bottom: 1rem; }
.device-card select { width: 100%; padding: 8px; border-radius: 6px; background-color: var(--bg-light); color: var(--text-light); border: 1px solid var(--border-color); margin-bottom: 0.5rem; }
.multistep-container { display: flex; flex-direction: column; gap: 1rem; }
.multistep-prompt { font-weight: bold; font-size: 1.1rem; text-align: center; padding: 1rem; background-color: var(--bg-dark); border-radius: 6px; }
.multistep-body { min-height: 300px; }
.multistep-nav { display: flex; justify-content: center; gap: 1rem; }
.bios-hotspot { position: absolute; top: 12%; left: 78%; width: 15%; height: 15%; cursor: pointer; border-radius: 50%; }
.bios-hotspot:hover { background: rgba(59, 130, 246, 0.3); }
.cabling-step1-container { position: relative; }
.cabling-step1-container img { width: 100%; max-width: 500px; margin: auto; display: block; }
.connect-ports-container { position: relative; max-width: 800px; margin: auto; }
.connect-ports-container img { width: 100%; display: block; }
.connect-ports-container canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.port { position: absolute; width: 30px; height: 30px; background: rgba(255,0,0,0.3); border-radius: 50%; cursor: pointer; transform: translate(-50%, -50%); border: 2px solid transparent; }
.port.selected { border-color: var(--accent); background: rgba(59, 130, 246, 0.5); }
.cable-list { display: flex; flex-direction: column; gap: 1rem; }
.cable-item { padding: 1rem; background-color: var(--bg-light); border-radius: 6px; cursor: pointer; border: 2px solid transparent; text-align: center; }
.cable-item.selected { border-color: var(--accent); }
.cable-item[data-cable-id="xcab"] { --cable-color: #E57373; }
.cable-item[data-cable-id="ycab"] { --cable-color: #64B5F6; }
.cable-item[data-cable-id="zcab"] { --cable-color: #FFD54F; }
.cable-item.selected { border-color: var(--cable-color); }