/* ================= TOOL LAYOUT ================= */

/* ================= LAYOUT ================= */
.app{
  max-width:1000px;
  margin:40px auto;
  padding:0 20px;
}

.title{
  text-align:center;
  font-size:28px;
  font-weight:800;
  margin-bottom:40px;
}

.layout{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:80px;
  align-items:center;
}

/* ================= MOUSE SVG ================= */
.mouse-area{
  text-align:center;
}

.mouse-lock{
  width:260px;
  height:420px;
  margin:auto;
  position:relative;
  cursor:pointer;              /* cursor always above SVG */
}

.mouse-lock svg{
  width:260px;
  height:auto;
  display:block;
  pointer-events:auto;
}

/* CLICK HERE text (hidden by default, JS controls visibility) */
#clickText{
  opacity:0;                   /* 🔒 default hidden */
  pointer-events:none;         /* no interaction */
  animation:pulse 1.4s infinite;
}

/* Pulse animation */
@keyframes pulse{
  0%{ opacity:.2 }
  50%{ opacity:1 }
  100%{ opacity:.2 }
}

/* ================= BUTTONS ================= */
.buttons{
  margin-top:20px;
  display:flex;
  justify-content:center;
  gap:12px;
}

.btn{
  padding:12px 26px;
  border:none;
  border-radius:8px;
  font-weight:700;
  font-size:14px;
  cursor:pointer;
  transition:background .2s, box-shadow .2s;
}

/* ===== START TEST BUTTON ===== */
.btn.start{
  background:linear-gradient(135deg,#2563eb,#38bdf8);
  box-shadow:0 0 0 rgba(56,189,248,0);
  transition:all .25s ease;
}

.btn.start:hover{
  transform:translateY(-2px);
  box-shadow:0 0 18px rgba(56,189,248,.8);
}

/* ===== RESET BUTTON ===== */
.btn.reset{
  background:linear-gradient(135deg,#dc2626,#f87171);
  transition:all .25s ease;
}

.btn.reset:hover{
  transform:translateY(-2px);
  box-shadow:0 0 16px rgba(248,113,113,.8);
}


/* ================= PROFESSIONAL RESULT CARD ================= */
.result-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.45) 0%, rgba(15, 23, 42, 0.65) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px !important;
  padding: 30px !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3) !important;
  align-self: stretch !important;
}

.result-header {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 25px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  padding-bottom: 12px !important;
}

.result-header h3 {
  margin: 0 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #fff !important;
  letter-spacing: 0.02em !important;
}

.cps-display {
  text-align: center !important;
  background: rgba(37, 99, 235, 0.08) !important;
  border: 1px solid rgba(37, 99, 235, 0.2) !important;
  border-radius: 12px !important;
  padding: 18px !important;
  margin-bottom: 25px !important;
  box-shadow: inset 0 0 15px rgba(37, 99, 235, 0.05) !important;
}

.cps-label {
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #93c5fd !important;
  letter-spacing: 0.1em !important;
  margin-bottom: 4px !important;
}

.cps-value-large {
  font-size: 40px !important;
  font-weight: 900 !important;
  color: #38bdf8 !important;
  text-shadow: 0 0 15px rgba(56, 189, 248, 0.4) !important;
}

.metrics-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 15px !important;
}

.metric-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  background: rgba(17, 24, 39, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.04) !important;
  border-radius: 10px !important;
  padding: 12px 15px !important;
  transition: all 0.2s ease !important;
}

.metric-item:hover {
  background: rgba(17, 24, 39, 0.75) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  transform: translateY(-1px) !important;
}

.m-icon {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  flex-shrink: 0 !important;
}

.left-click-icon { background: rgba(56, 189, 248, 0.15) !important; color: #38bdf8 !important; }
.right-click-icon { background: rgba(167, 139, 250, 0.15) !important; color: #a78bfa !important; }
.middle-click-icon { background: rgba(251, 146, 60, 0.15) !important; color: #fb923c !important; }
.scroll-icon { background: rgba(34, 197, 94, 0.15) !important; color: #4ade80 !important; }
.side-back-icon, .side-fwd-icon { background: rgba(244, 63, 94, 0.15) !important; color: #fb7185 !important; }

.m-info {
  display: flex !important;
  flex-direction: column !important;
}

.m-label {
  font-size: 11px !important;
  color: #9ca3af !important;
  font-weight: 600 !important;
}

.m-val {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #fff !important;
}

/* ================= RESPONSIVE ================= */
@media(max-width:900px){
  .layout{
    grid-template-columns:1fr !important;
    gap:40px !important;
  }
}
@media(max-width:600px){
  .metrics-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ================= INTERACTIVE ANIMATIONS (ONLINEMICTEST INSPIRED) ================= */
.interactive-mouse-svg path,
.interactive-mouse-svg rect {
  transition: fill 0.15s ease, stroke 0.15s ease, filter 0.15s ease;
}

/* LEFT BUTTON */
#leftBtn.visited {
  fill: rgba(56, 189, 248, 0.15) !important;
  stroke: #38bdf8 !important;
}
#leftBtn.active {
  fill: #38bdf8 !important;
  stroke: #0ea5e9 !important;
  filter: url(#neonGlow) !important;
}

/* RIGHT BUTTON */
#rightBtn.visited {
  fill: rgba(167, 139, 250, 0.15) !important;
  stroke: #a78bfa !important;
}
#rightBtn.active {
  fill: #a78bfa !important;
  stroke: #8b5cf6 !important;
  filter: url(#neonGlow) !important;
}

/* SCROLL WHEEL */
#scrollWheel.visited {
  fill: rgba(251, 146, 60, 0.3) !important;
  stroke: #fb923c !important;
}
#scrollWheel.active {
  fill: #fb923c !important;
  stroke: #ea580c !important;
  filter: url(#neonGlow) !important;
}

/* SIDE BUTTONS */
#sideBtnBack.visited,
#sideBtnFwd.visited {
  fill: rgba(244, 63, 94, 0.2) !important;
  stroke: #fb7185 !important;
}
#sideBtnBack.active,
#sideBtnFwd.active {
  fill: #fb7185 !important;
  stroke: #f43f5e !important;
  filter: url(#neonGlow) !important;
}

/* ARROWS */
#scrollUpArrow.visited,
#scrollDownArrow.visited {
  fill: rgba(16, 185, 129, 0.35) !important;
}
#scrollUpArrow.active,
#scrollDownArrow.active {
  fill: #10b981 !important;
  filter: url(#neonGlow) !important;
}

/* ================= TAB NAVIGATION ================= */
.test-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 30px auto;
  background: rgba(31, 41, 55, 0.6);
  padding: 8px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 800px;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
}
.test-tabs::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}
.tab-btn {
  background: transparent;
  color: #9ca3af;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.tab-btn.active {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

/* ================= TOUCH TEST INTERFACE ================= */
.touch-test-area {
  display: flex;
  flex-direction: column;
  background: #111827;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}
.touch-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-gap: 4px;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #1f2937;
  padding: 8px;
  border-radius: 12px;
  touch-action: none; /* Prevent browser scrolling while swiping */
  user-select: none;
  cursor: crosshair;
}
.grid-cell {
  background: #374151;
  border-radius: 4px;
  transition: background 0.1s ease, box-shadow 0.1s ease;
}
.grid-cell.touched {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

/* ================= UTILITY ================= */
.hidden {
  display: none !important;
}

/* ================= GUIDE & FAQ SECTION ================= */
.step-num {
  background: #2563eb;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}
.guide-steps .d-flex {
  align-items: flex-start;
  gap: 15px;
}
.leading-relaxed {
  line-height: 1.75;
}
.text-muted {
  color: #9ca3af !important;
}
.faq-item {
  background: rgba(31, 41, 55, 0.4);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.faq-item h4 {
  font-weight: 700;
}



