/* public/assets/css/hardware/mouse-test.css */
.mouse-wrapper { --p-bg: #ffffff; --p-border: #e2e8f0; --p-primary: #8b5cf6; --p-success: #10b981; --p-text: #0f172a; --p-text-muted: #64748b; width: 100%; max-width: 1300px; 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; }
.mouse-wrapper *, .mouse-wrapper *::before, .mouse-wrapper *::after { box-sizing: border-box; }

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

/* Dashboard */
.mouse-dashboard { display: flex; gap: 16px; margin-bottom: 24px; background: #f8fafc; border: 1px solid var(--p-border); padding: 20px; border-radius: 16px; align-items: center; flex-wrap: wrap; }
.mouse-stat-box { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--p-border); padding-right: 16px; }
.mouse-stat-box:last-child { border-right: none; padding-right: 0; }
.mouse-stat-label { font-size: 0.85rem; color: #64748b; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.mouse-stat-val { font-size: 1.5rem; font-weight: 800; color: #1e293b; font-family: monospace; transition: color 0.2s; }
.mouse-stat-val.highlight { color: var(--p-primary); }
.mouse-stat-val.text-success { color: var(--p-success); }
.mouse-unit { font-size: 0.9rem; color: #94a3b8; font-weight: 600; }

.mouse-stat-actions { margin-left: auto; }
.mouse-btn-reset { padding: 12px 24px; border-radius: 10px; font-weight: 700; font-size: 1rem; color: #475569; background: #ffffff; border: 2px solid #cbd5e1; cursor: pointer; transition: 0.2s; }
.mouse-btn-reset:hover { border-color: var(--p-primary); color: var(--p-primary); box-shadow: 0 4px 10px rgba(139, 92, 246, 0.1); }

/* Interactive Zone */
.mouse-board-container { position: relative; width: 100%; height: 500px; background: #0f172a; border-radius: 16px; box-shadow: inset 0 4px 25px rgba(0,0,0,0.3); overflow: hidden; display: flex; align-items: center; justify-content: center; user-select: none; /* Prevent text selection while testing */ touch-action: none; cursor: crosshair; }
.mouse-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.mouse-zone-hint { position: absolute; top: 30px; color: rgba(255,255,255,0.4); font-size: 1.2rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; pointer-events: none; z-index: 2; }

/* Mouse Model SVG/CSS */
.mouse-model { position: relative; z-index: 3; width: 180px; height: 320px; pointer-events: none; }
.mouse-body { width: 100%; height: 100%; background: #1e293b; border-radius: 90px 90px 70px 70px; border: 4px solid #334155; box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 5px 15px rgba(255,255,255,0.05); display: flex; flex-direction: column; position: relative; overflow: hidden; }

/* Side Buttons */
.mouse-side-btns { position: absolute; left: -2px; top: 120px; display: flex; flex-direction: column; gap: 8px; z-index: 10; }
.mouse-btn-side { width: 12px; height: 40px; background: #334155; border-radius: 0 4px 4px 0; border: 1px solid #475569; border-left: none; font-size: 0; transition: 0.1s; box-shadow: 2px 0 5px rgba(0,0,0,0.3); }
.mouse-btn-side.pressed { background: var(--p-success); border-color: #059669; box-shadow: 0 0 15px var(--p-success); width: 10px; }

/* Top Section */
.mouse-top-section { display: flex; height: 140px; border-bottom: 2px solid #0f172a; position: relative; }
.mouse-btn-left, .mouse-btn-right { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; font-weight: 800; color: #475569; transition: 0.1s; background: linear-gradient(180deg, #1e293b, #0f172a); }
.mouse-btn-left { border-radius: 90px 0 0 0; border-right: 1px solid #0f172a; }
.mouse-btn-right { border-radius: 0 90px 0 0; border-left: 1px solid #0f172a; }

.mouse-btn-left.pressed, .mouse-btn-right.pressed { background: var(--p-primary); color: #fff; box-shadow: inset 0 10px 20px rgba(0,0,0,0.3), 0 0 30px rgba(139, 92, 246, 0.4); text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.mouse-btn-left.pressed { background: #3b82f6; box-shadow: inset 0 10px 20px rgba(0,0,0,0.3), 0 0 30px rgba(59, 130, 246, 0.4); }
.mouse-btn-right.pressed { background: #ec4899; box-shadow: inset 0 10px 20px rgba(0,0,0,0.3), 0 0 30px rgba(236, 72, 153, 0.4); }

/* Scroll Wheel */
.mouse-scroll-wheel { position: absolute; left: 50%; top: 30px; transform: translateX(-50%); width: 24px; height: 60px; background: #020617; border-radius: 12px; border: 2px solid #334155; display: flex; justify-content: center; padding: 4px 0; z-index: 5; transition: 0.1s; }
.mouse-scroll-wheel.pressed { background: var(--p-success); border-color: #059669; box-shadow: 0 0 20px var(--p-success); }
.wheel-roller { width: 12px; height: 30px; background: #475569; border-radius: 6px; box-shadow: inset 0 2px 5px rgba(0,0,0,0.8); transition: transform 0.1s; }
.wheel-roller.scroll-up { transform: translateY(-8px); background: #f59e0b; }
.wheel-roller.scroll-down { transform: translateY(18px); background: #f59e0b; }

.mouse-logo { margin: auto; font-size: 1.2rem; font-weight: 900; color: #334155; letter-spacing: 2px; text-transform: uppercase; }

.mouse-hint-card { background: #fef2f2; border-left: 4px solid #ef4444; padding: 16px; border-radius: 0 10px 10px 0; font-size: 0.9rem; color: #7f1d1d; line-height: 1.6; margin-top: 24px; }
.mouse-hint-card code { background: rgba(239, 68, 68, 0.1); padding: 2px 6px; border-radius: 4px; font-family: monospace; }

/* Dark Mode */
[data-theme="dark"] .mouse-wrapper { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .mouse-title, [data-theme="dark"] .mouse-stat-val { color: #f8fafc; }
[data-theme="dark"] .mouse-subtitle, [data-theme="dark"] .mouse-stat-label { color: #94a3b8; }
[data-theme="dark"] .mouse-dashboard { background: #0f172a; border-color: #475569; }
[data-theme="dark"] .mouse-stat-box { border-color: #334155; }
[data-theme="dark"] .mouse-btn-reset { background: #1e293b; border-color: #475569; color: #cbd5e1; }
[data-theme="dark"] .mouse-btn-reset:hover { border-color: var(--p-primary); color: #fff; }
[data-theme="dark"] .mouse-board-container { background: #020617; box-shadow: inset 0 4px 30px rgba(0,0,0,0.8); }
[data-theme="dark"] .mouse-hint-card { background: rgba(239, 68, 68, 0.1); border-left-color: #ef4444; color: #fca5a5; }