/* public/assets/css/hardware/webgpu-test.css */
.gpu-wrapper { --p-bg: #ffffff; --p-border: #e2e8f0; --p-primary: #ef4444; --p-primary-hover: #dc2626; --p-accent: #f97316; --p-success: #10b981; --p-text: #0f172a; --p-text-muted: #64748b; width: 100%; max-width: 1100px; margin: 0 auto; background: var(--p-bg); border-radius: 20px; padding: 24px; border: 1px solid var(--p-border); box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05); box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.gpu-wrapper *, .gpu-wrapper *::before, .gpu-wrapper *::after { box-sizing: border-box; }

.gpu-header { text-align: center; margin-bottom: 24px; border-bottom: 1px solid var(--p-border); padding-bottom: 24px; }
.gpu-title { font-size: 1.7rem; font-weight: 800; color: var(--p-text); margin: 0 0 10px 0; }
.gpu-subtitle { font-size: 0.95rem; color: var(--p-text-muted); max-width: 800px; margin: 0 auto; line-height: 1.6; }

.gpu-layout { display: flex; gap: 24px; align-items: stretch; }
@media (max-width: 850px) { .gpu-layout { flex-direction: column; } }

/* Info Panel */
.gpu-info-panel { flex: 1; background: #0f172a; border-radius: 16px; border: 2px solid #1e293b; padding: 24px; display: flex; flex-direction: column; box-shadow: inset 0 5px 20px rgba(0,0,0,0.5); }
.gpu-panel-title { font-size: 1.05rem; font-weight: 800; color: #cbd5e1; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid #334155; padding-bottom: 12px; margin-bottom: 16px; font-family: monospace; }

.gpu-info-grid { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; max-height: 400px; }
.gpu-info-item { display: flex; justify-content: space-between; border-bottom: 1px dashed #334155; padding-bottom: 6px; }
.gpu-info-label { font-size: 0.85rem; font-weight: 700; color: #94a3b8; }
.gpu-info-val { font-size: 0.85rem; font-weight: 800; color: #38bdf8; font-family: 'Consolas', monospace; text-align: right; }
.gpu-empty-state { color: #f59e0b; font-weight: 700; font-family: monospace; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* Error Board (Troubleshooting) */
.gpu-error-board { display: flex; flex-direction: column; gap: 12px; animation: fadeIn 0.3s; }
.gpu-err-title { font-size: 1.1rem; font-weight: 900; color: #ef4444; }
.gpu-err-msg { background: rgba(239, 68, 68, 0.1); border-left: 4px solid #ef4444; padding: 10px; color: #fca5a5; font-size: 0.9rem; word-break: break-all; }
.gpu-err-guide { margin-top: 10px; background: #1e293b; padding: 16px; border-radius: 8px; border: 1px solid #334155; }
.gpu-err-guide strong { color: #cbd5e1; font-size: 0.95rem; }
.gpu-err-guide ol { margin: 10px 0 0 0; padding-left: 20px; color: #94a3b8; font-size: 0.85rem; line-height: 1.6; }
.gpu-err-guide li { margin-bottom: 12px; }
.gpu-err-guide li:last-child { margin-bottom: 0; }
.code { font-family: 'Consolas', monospace; }

/* Benchmark Panel */
.gpu-benchmark-panel { flex: 1.2; background: #f8fafc; border-radius: 16px; border: 1px solid var(--p-border); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.gpu-benchmark-panel .gpu-panel-title { color: var(--p-text); border-bottom-color: var(--p-border); }

.gpu-form-group { display: flex; flex-direction: column; gap: 8px; }
.gpu-label { font-size: 0.9rem; font-weight: 700; color: #475569; }
.gpu-select { width: 100%; padding: 12px 14px; border: 2px solid #cbd5e1; border-radius: 10px; font-size: 0.95rem; font-weight: 700; color: #1e293b; background: #fff; outline: none; cursor: pointer; transition: 0.2s; }
.gpu-select:focus { border-color: var(--p-primary); box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15); }
.gpu-select:disabled { background: #e2e8f0; cursor: not-allowed; opacity: 0.7; }

.gpu-btn-primary { padding: 16px; border-radius: 12px; font-weight: 800; font-size: 1.1rem; cursor: pointer; border: none; transition: 0.2s; background: linear-gradient(135deg, var(--p-primary), var(--p-accent)); color: #ffffff; box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4); display: flex; align-items: center; justify-content: center; gap: 8px; }
.gpu-btn-primary:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5); }
.gpu-btn-primary:disabled { background: #94a3b8; cursor: not-allowed; box-shadow: none; transform: none; color: #e2e8f0; }

.gpu-results-board { display: flex; gap: 16px; margin-top: 8px; }
.gpu-result-box { flex: 1; background: #ffffff; border: 1px solid var(--p-border); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.02); border-bottom: 4px solid #cbd5e1; transition: 0.3s; }
.gpu-result-box.highlight-box { border-bottom-color: var(--p-primary); }
.gpu-res-label { font-size: 0.85rem; font-weight: 800; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.gpu-res-val { font-size: 2.2rem; font-weight: 900; font-family: 'Consolas', monospace; color: #1e293b; line-height: 1; }
.gpu-res-val small { font-size: 1rem; color: #94a3b8; font-weight: 700; }
.highlight-box .gpu-res-val { color: var(--p-primary); text-shadow: 0 4px 15px rgba(239, 68, 68, 0.2); }

.gpu-terminal { background: #1e293b; border-radius: 8px; padding: 12px; font-family: 'Consolas', monospace; font-size: 0.85rem; color: #f8fafc; height: 100px; overflow-y: auto; border: 1px solid #334155; box-shadow: inset 0 2px 8px rgba(0,0,0,0.5); }
.gpu-log-line { margin-bottom: 4px; }
.gpu-log-line.error { color: #ef4444; font-weight: bold; }
.gpu-log-line.success { color: #10b981; }

.gpu-safety-card { background: #f0fdf4; border-left: 4px solid #10b981; padding: 16px; border-radius: 0 10px 10px 0; font-size: 0.9rem; color: #166534; line-height: 1.6; margin-top: 24px; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }

/* Dark Mode */
[data-theme="dark"] .gpu-wrapper { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .gpu-title, [data-theme="dark"] .gpu-panel-title { color: #f8fafc; }
[data-theme="dark"] .gpu-subtitle, [data-theme="dark"] .gpu-label { color: #94a3b8; }
[data-theme="dark"] .gpu-benchmark-panel { background: #0f172a; border-color: #475569; }
[data-theme="dark"] .gpu-select { background: #1e293b; border-color: #475569; color: #f8fafc; }
[data-theme="dark"] .gpu-select:disabled { background: #0f172a; border-color: #334155; }
[data-theme="dark"] .gpu-result-box { background: #1e293b; border-color: #475569; }
[data-theme="dark"] .gpu-safety-card { background: rgba(16, 185, 129, 0.1); border-left-color: #10b981; color: #6ee7b7; }