/* styles.css - Cyber-Medical Spatial UI Animations & Overrides */

html, body {
  margin: 0;
  padding: 0;
  background: #050609;
  min-height: 100vh;
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* Hide scrollbars inside device */
.noscroll::-webkit-scrollbar {
  display: none;
}
.noscroll {
  scrollbar-width: none;
}

/* Ambient stage backdrop behind the device */
.stage {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background:
    radial-gradient(1200px 800px at 20% 15%, rgba(31,40,51,0.55), transparent 60%),
    radial-gradient(1000px 700px at 85% 85%, rgba(102,252,241,0.06), transparent 60%),
    radial-gradient(900px 700px at 90% 10%, rgba(192,38,211,0.08), transparent 60%),
    #050609;
  position: relative;
  overflow: hidden;
}

.stage::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  pointer-events: none;
}

/* Keyframes */

@keyframes pulse-red {
  0%, 100% { box-shadow: inset 0 0 40px rgba(255,60,80,0.25), 0 0 0 1px rgba(255,80,100,0.35), 0 0 30px rgba(255,60,80,0.15); }
  50%      { box-shadow: inset 0 0 60px rgba(255,60,80,0.45), 0 0 0 1px rgba(255,120,140,0.55), 0 0 50px rgba(255,60,80,0.35); }
}

@keyframes scan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

@keyframes rotate-jaw {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(360deg); }
}

@keyframes float-y {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-6px); }
}

@keyframes glow-cyan {
  0%,100% { filter: drop-shadow(0 0 6px rgba(102,252,241,0.6)) drop-shadow(0 0 14px rgba(102,252,241,0.25)); }
  50%     { filter: drop-shadow(0 0 10px rgba(102,252,241,0.9)) drop-shadow(0 0 22px rgba(102,252,241,0.45)); }
}

@keyframes dash {
  to { stroke-dashoffset: -60; }
}

@keyframes tick {
  0% { opacity: 0; transform: translateY(4px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes bg-pan {
  to { background-position: 200% center; }
}

@keyframes slide-up-fade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
}

@keyframes form-enter {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Tooltip animation */
.tooltip-fade {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}
.tooltip-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* SVG Tooth Styles */
.svg-tooth {
  fill: rgba(255, 255, 255, 0.05);
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1.5;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.svg-tooth:hover {
  stroke: #66FCF1;
  fill: rgba(102, 252, 241, 0.1);
  filter: drop-shadow(0 0 4px rgba(102, 252, 241, 0.5));
}
.svg-tooth.active-svg-tooth {
  fill: #C026D3 !important;
  stroke: #C026D3 !important;
  filter: drop-shadow(0 0 10px #C026D3) !important;
}

/* Procedure Chip Styles */
.procedure-chip {
  background: rgba(31, 40, 51, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.procedure-chip:hover {
  background: rgba(31, 40, 51, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
}
.procedure-chip.active-procedure {
  background: #66FCF1;
  color: #000;
  border-color: #66FCF1;
  box-shadow: 0 0 15px rgba(102, 252, 241, 0.6);
}

@keyframes dropdown-enter {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes holo-pulse-red {
  0%, 100% { box-shadow: inset 0 0 20px rgba(255,62,88,0.1), 0 0 20px rgba(255,62,88,0.05); border-color: rgba(255,62,88,0.2); }
  50%      { box-shadow: inset 0 0 40px rgba(255,62,88,0.25), 0 0 30px rgba(255,62,88,0.15); border-color: rgba(255,62,88,0.5); }
}

@keyframes holo-pulse-cyan {
  0%, 100% { box-shadow: 0 4px 12px rgba(102, 252, 241, 0.4), inset 0 0 10px rgba(102, 252, 241, 0.2); }
  50%      { box-shadow: 0 4px 20px rgba(102, 252, 241, 0.8), inset 0 0 20px rgba(102, 252, 241, 0.5); }
}

@keyframes holo-pulse-slow-red {
  0%, 100% { background-color: rgba(255,62,88,0.02); box-shadow: inset 0 0 40px rgba(255,62,88,0.1); border-color: rgba(255,62,88,0.1); }
  50%      { background-color: rgba(255,62,88,0.08); box-shadow: inset 0 0 80px rgba(255,62,88,0.2); border-color: rgba(255,62,88,0.3); }
}

/* Glass Panel Utilities */
.glass-panel {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 10px 30px rgba(0,0,0,0.45);
  overflow: hidden;
}

.glass-panel.inset {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.055));
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 16px; right: 16px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  pointer-events: none;
}

.glass-panel-pressable {
  transition: transform 180ms cubic-bezier(.2,.7,.2,1), box-shadow 180ms;
  cursor: pointer;
}
.glass-panel-pressable:active {
  transform: translateY(1px) scale(0.985);
  box-shadow: inset 0 2px 12px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(255,255,255,0.05), 0 2px 6px rgba(0,0,0,0.4);
}

/* Input Focus States */
.glass-input-container {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.09);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.glass-input-container:focus-within {
  background: #1F2833;
  border-color: #66FCF1;
  box-shadow: 0 0 16px rgba(102,252,241,0.3), inset 0 0 8px rgba(102,252,241,0.1);
}
.glass-input-container:focus-within .input-icon {
  color: #66FCF1;
}

.glass-floating-input {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.09);
  transition: all 0.3s;
}
.glass-floating-input:focus-within, .glass-floating-input.has-value {
  border-color: #66FCF1;
  box-shadow: 0 0 16px rgba(102,252,241,0.2), inset 0 0 8px rgba(102,252,241,0.05);
}
.glass-floating-input:focus-within .floating-label, .glass-floating-input.has-value .floating-label {
  top: 10px;
  font-size: 10px;
  color: #66FCF1;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.neon-btn {
  background: linear-gradient(90deg, #66FCF1, #C026D3, #66FCF1);
  background-size: 200% auto;
  animation: bg-pan 3s linear infinite;
  box-shadow: 0 4px 12px rgba(102,252,241,0.2);
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.neon-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(192,38,211,0.4);
}
.neon-btn:active {
  transform: scale(0.96);
}

.dropdown-menu {
  animation: dropdown-enter 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
