/* Premium Design System for Wellness Companion */
:root {
  --brand-teal: #208b7d;
  --brand-neon-teal: #24bfae;
  --brand-yellow: #ece213;
  --brand-neon-yellow: #f7f01e;
  --brand-white: #ffffff;
  --brand-red: #ff3366;
  --brand-green: #4caf50;
  --bg-dark: #030308;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-dark);
  background: radial-gradient(circle at top right, #0d061e 0%, #030308 60%, #020205 100%);
  color: #f1f1f6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}
::-webkit-scrollbar-thumb {
  background: rgba(36, 191, 174, 0.25);
  border-radius: 10px;
}

/* Header Nav */
nav {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 25px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.nav-logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 3px;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--brand-neon-teal);
}

.btn-extension {
  background: #2b8880 !important;
  border: 1px solid rgba(36, 191, 174, 0.4) !important;
  padding: 10px 20px;
  border-radius: 30px;
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.5px;
  box-shadow: 0 0 15px rgba(36, 191, 174, 0.15);
  transition: all 0.3s ease;
}

.btn-extension:hover {
  background: var(--brand-neon-teal) !important;
  color: var(--bg-dark) !important;
  box-shadow: 0 0 25px rgba(36, 191, 174, 0.5);
  transform: translateY(-1px);
}

/* Main Container */
main {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 20px;
  flex: 1;
}

/* Typography & Glows */
.neon-text-blue {
  color: var(--brand-neon-teal);
  text-shadow: 0 0 10px rgba(36, 191, 174, 0.5);
}

.neon-text-pink {
  color: var(--brand-neon-yellow);
  text-shadow: 0 0 10px rgba(247, 240, 30, 0.5);
}

.section-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  margin-bottom: 30px;
  border-left: 3px solid var(--brand-neon-teal);
  padding-left: 15px;
}

.section-title-pink {
  border-left-color: var(--brand-neon-yellow);
}

/* Medical Disclaimer Panel */
.disclaimer-card {
  background: rgba(255, 51, 102, 0.03);
  border: 1px solid rgba(255, 51, 102, 0.15);
  border-radius: 20px;
  padding: 25px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(255, 51, 102, 0.02);
}

.disclaimer-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-red);
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.disclaimer-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

/* Cinema / DND Mode Row */
.dnd-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 20px 25px;
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.dnd-info h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 5px;
}

.dnd-info p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* Custom Switch Button */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .4s;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--brand-neon-teal);
  box-shadow: 0 0 10px rgba(36, 191, 174, 0.4);
}

input:checked + .slider:before {
  transform: translateX(24px);
}

/* Grid Layout for Reminders */
.reminders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

/* Reminder Glass Cards */
.reminder-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 270px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.01);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.reminder-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(36, 191, 174, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.reminder-card:hover {
  transform: translateY(-4px);
  border-color: rgba(36, 191, 174, 0.2);
  box-shadow: 0 25px 50px rgba(36, 191, 174, 0.08);
}

.reminder-card:hover::before {
  opacity: 1;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.app-header h3 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.app-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin-bottom: 20px;
  min-height: 48px;
}

/* Status dots */
.status-dot {
  width: 10px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.status-dot.active {
  background-color: var(--brand-green);
  box-shadow: 0 0 10px var(--brand-green);
}

/* Time Inputs Controls */
.time-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.time-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.time-box label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.time-box input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  outline: none;
  transition: all 0.3s ease;
}

.time-box input:focus {
  border-color: var(--brand-neon-teal);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 10px rgba(36, 191, 174, 0.15);
}

/* Controls footer button */
.app-btn {
  width: 100%;
  background: var(--brand-teal) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  outline: none;
}

.app-btn:hover {
  transform: translateY(-1px);
  background: #35a59b !important;
  box-shadow: 0 5px 15px rgba(36, 191, 174, 0.15);
}

.app-btn.btn-active {
  background: var(--brand-red) !important;
  border-color: rgba(255, 51, 102, 0.2) !important;
}

.app-btn.btn-active:hover {
  background: #ff5c8a !important;
  box-shadow: 0 5px 15px rgba(255, 51, 102, 0.25);
}

/* Active Timer Countdown HUD overlay in Card */
.countdown-overlay {
  font-size: 14px;
  font-weight: 800;
  color: var(--brand-neon-teal);
  background: rgba(36, 191, 174, 0.08);
  border: 1px solid rgba(36, 191, 174, 0.2);
  padding: 4px 10px;
  border-radius: 8px;
  font-family: monospace;
}

/* Workout Coach Interactive Modal */
.modal-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 3, 8, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 1;
  pointer-events: auto;
  transition: all 0.3s ease;
}

.modal-layer.hidden {
  opacity: 0;
  pointer-events: none;
  display: none !important;
}

.modal-card {
  background: rgba(10, 10, 25, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  max-width: 500px;
  width: 90%;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(36, 191, 174, 0.05);
  animation: modal-fade-in 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes modal-fade-in {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-card h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 25px;
}

/* Circle Timer progress bar */
.timer-circle-container {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 30px auto;
}

.timer-circle-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.timer-circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.04);
  stroke-width: 8;
}

.timer-circle-bar {
  fill: none;
  stroke: var(--brand-neon-teal);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 377;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}

.timer-circle-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  font-family: monospace;
}

.ex-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--brand-neon-yellow);
  margin-bottom: 12px;
}

.ex-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 35px;
  min-height: 70px;
  padding: 0 10px;
}

/* Workout Animations CSS vectors */
.workout-graphic-container {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px auto;
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 36px;
}

/* Animated pulses inside graphic */
.workout-graphic-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(36, 191, 174, 0.2);
  animation: pulse-ring 2s infinite ease-out;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

.workout-actions {
  display: flex;
  gap: 15px;
}

.workout-actions .app-btn {
  flex: 1;
}

/* AdSense Container */
.web-ad-container {
  margin: 40px auto 10px auto;
  max-width: 728px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ad-label {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 800;
}

.ad-box-leaderboard {
  width: 100%;
  height: 94px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px dashed rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ad-text {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 1px;
}

/* Footer styling */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  background-color: #010103;
  padding: 30px 20px;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-right {
  display: flex;
  gap: 20px;
}

.footer-link {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--brand-neon-yellow);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 15px;
    padding: 15px 10px;
  }
  .nav-links {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }
  main {
    padding: 20px 10px;
  }
  .reminders-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* Premium Mode hides Ads */
.premium-mode .web-ad-container,
.premium-mode .ad-label,
.premium-mode .ad-box-leaderboard,
.premium-mode #gopro-btn-container {
  display: none !important;
}

/* General utility to hide elements */
.hidden {
  display: none !important;
}

/* Language selector dropdown container */
.lang-dropdown {
  display: flex;
  flex-direction: column;
}
