
:root { --primary: #0284c7; --primary-hover: #0369a1; --bg-main: #f8fafc; --text-primary: #0f172a; --text-secondary: #475569; --card-bg: #ffffff; --border-color: #e2e8f0; --hotspot-bg: rgba(2, 132, 199, 0.9); --hotspot-ring: rgba(2, 132, 199, 0.3); --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', system-ui, sans-serif;}
body { background-color: var(--bg-main); color: var(--text-primary); display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.app-header { background: var(--card-bg); padding: 1.25rem 2rem; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); z-index: 10; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.header-titles h1 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.25rem; }
.header-titles p { font-size: 0.875rem; color: var(--text-secondary); }
.status-badge { padding: 0.35rem 0.85rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; transition: all 0.3s; }
.status-incomplete { background: #fee2e2; color: #dc2626; }
.status-complete { background: #dcfce3; color: #16a34a; }
.viewer-container { flex: 1; position: relative; width: 100%; }
model-viewer { width: 100%; height: 100%; background-color: #e2e8f0; outline: none; }
.hotspot { display: block; width: 28px; height: 28px; border-radius: 50%; border: none; background-color: var(--hotspot-bg); box-shadow: 0 0 0 4px var(--hotspot-ring); cursor: pointer; transition: all var(--transition); animation: pulseRing 2s infinite; }
.hotspot.visited { background-color: #16a34a; box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.3); animation: none; }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0px rgba(2, 132, 199, 0.6); } 100% { box-shadow: 0 0 0 10px rgba(2, 132, 199, 0); } }
.hotspot:hover { transform: scale(1.15); background-color: var(--primary-hover); animation: none; box-shadow: 0 0 0 6px var(--hotspot-ring); }
.hotspot-annotation { color: white; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.controls-overlay { position: absolute; bottom: 2rem; right: 2rem; display: flex; z-index: 5; }
.control-btn { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-primary); box-shadow: 0 4px 12px rgba(0,0,0,0.08); transition: all 0.2s; }
.control-btn:hover { background: #f1f5f9; transform: translateY(-2px); }
.modal-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; opacity: 1; transition: opacity var(--transition); z-index: 50; padding: 1.5rem; }
.modal-overlay.hidden { opacity: 0; pointer-events: none; }
.modal-content { background: var(--card-bg); border-radius: 20px; width: 100%; max-width: 480px; max-height: 85vh; overflow-y: auto; position: relative; transform: scale(1) translateY(0); transition: transform var(--transition); }
.modal-overlay.hidden .modal-content { transform: scale(0.95) translateY(20px); }
.close-btn { position: absolute; top: 1.25rem; right: 1.25rem; background: #f1f5f9; border: none; width: 36px; height: 36px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; color: var(--text-secondary); display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.modal-body { padding: 2.5rem 2rem 2rem 2rem; }
.modal-body .tag { display: inline-block; padding: 0.35rem 0.85rem; background: #e0f2fe; color: var(--primary); border-radius: 999px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; margin-bottom: 1rem; }
.modal-body h2 { font-size: 1.5rem; margin-bottom: 1.25rem; color: var(--text-primary); }
.modal-img { width: 100%; height: auto; border-radius: 12px; margin-bottom: 1.25rem; display: block; }
.modal-body .html-content-wrapper { font-size: 1rem; line-height: 1.6; color: var(--text-secondary); margin-bottom: 1rem; }
.modal-body .html-content-wrapper details { background: #f0f9ff; border-radius: 10px; border: 1px solid #bae6fd; border-left: 4px solid var(--primary); overflow: hidden; transition: box-shadow 0.2s; margin-bottom: 0.5rem; }
.modal-body .html-content-wrapper details:hover { box-shadow: 0 2px 8px rgba(2, 132, 199, 0.12); }
.modal-body .html-content-wrapper details[open] { background: #ffffff; box-shadow: 0 2px 12px rgba(2, 132, 199, 0.1); }
.modal-body .html-content-wrapper summary { font-weight: 600; color: var(--text-primary); padding: 0.85rem 1rem; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; user-select: none; }
.modal-body .html-content-wrapper summary::-webkit-details-marker { display: none; }
.modal-body .html-content-wrapper summary::after { content: '›'; font-size: 1.25rem; color: var(--primary); transition: transform 0.25s ease; line-height: 1; }
.modal-body .html-content-wrapper details[open] > summary::after { transform: rotate(90deg); }
.modal-body .html-content-wrapper details > *:not(summary) { padding: 0 1rem 1rem 1rem; animation: accordionOpen 0.2s ease; }
@keyframes accordionOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.modal-body .html-content-wrapper details ul { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.modal-body .html-content-wrapper details li { position: relative; padding: 0.6rem 0.75rem 0.6rem 2rem; background: #f8fafc; border-radius: 6px; font-size: 0.9rem; line-height: 1.5; color: var(--text-secondary); }
.modal-body .html-content-wrapper details li::before { content: '▸'; position: absolute; left: 0.65rem; top: 0.6rem; color: var(--primary); font-size: 0.75rem; }
.img-text-row { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.25rem; }
.img-text-row .modal-img { width: 42%; flex-shrink: 0; margin-bottom: 0; }
.img-text-row .html-content-wrapper { flex: 1; margin-bottom: 0; }
@media (max-width: 640px) { .modal-content { max-width: 100%; margin-top: auto; border-bottom-left-radius: 0; border-bottom-right-radius: 0; max-height: 80vh; } .modal-overlay { align-items: flex-end; padding: 0; } .modal-body { padding: 1.75rem 1.25rem 1.25rem 1.25rem; } .modal-img { max-height: 28vh; object-fit: contain; object-position: center; } .img-text-row .modal-img { max-height: none; width: 38%; object-fit: contain; } }
    