/* ==============================
   GLOBAL STYLES - NeuronFRAMES
   Modern, Beautiful, Accessible
   ============================== */

/* CSS Variables for consistent theming */
:root {
  --primary-gradient: linear-gradient(270deg, #3ce3a4 0%, #35d8ca 35%, #31d1e1 65%, #2fc9ff 100%);
  --primary-color: #31d1e1;
  --secondary-color: #35d8ca;
  --accent-color: #4a6bff;
  --success-color: #26bb36;
  --warning-color: #ffc107;
  --danger-color: #ef4444;

  --text-primary: #1a1a2e;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --text-white: #ffffff;

  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.95);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --shadow-glow: 0 4px 20px rgba(47, 201, 255, 0.25);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.35s ease;
  

  --font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
}

/* GENERAL BODY RESET */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background: var(--primary-gradient);
  background-attachment: fixed;
  min-height: 100vh;
  margin: 0;
  color: var(--text-primary);
  line-height: 1.6;
}

/* Auto-center page wrapper */
.page-wrapper,
.main-wrapper {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* Centered content container */
.centered-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  transition: background var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* PAGE CONTAINER - Auto-centered regardless of resolution */
.container,
.page-container,
.dashboard-container,
.speech-container,
.game-container {
  width: 92%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 1.5rem 1rem;
  box-sizing: border-box;
}

/* Full-page centered layout helper */
.page-centered {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* MODERN CARD SYSTEM */
.card,
.modern-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover,
.modern-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-interactive {
  cursor: pointer;
}

.card-interactive:active {
  transform: translateY(-2px) scale(0.99);
}

/* BACK BUTTON (Modernized) */
.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  background: var(--bg-white);
  color: var(--accent-color);
  text-decoration: none;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.back-button:hover {
  background: var(--accent-color);
  color: var(--text-white);
  transform: translateX(-3px);
  box-shadow: var(--shadow-md);
}

.back-button i {
  font-size: 0.9rem;
  transition: transform var(--transition-fast);
}

.back-button:hover i {
  transform: translateX(-2px);
}

/* Transparent back button variant (for dark overlays) */
.back-button-transparent {
  background: transparent !important;
  color: white !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.back-button-transparent:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
  transform: translateX(-3px);
  padding: 0.4rem 0.8rem !important;
  border-radius: var(--radius-full);
}

/* Ghost button — for back/secondary buttons on dark overlays (game screens) */
.btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0.7rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin: 0.4rem;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* STAR COUNT ELEMENT */
.star-count,
.star-display {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--warning-color);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.4rem 0.8rem;
  background: rgba(255, 193, 7, 0.15);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 193, 7, 0.3);
}

/* PAGE TITLES */
h1,
.shop-title,
.therapy-title,
.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-white);
  margin: 1rem 0;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0.8rem 0;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0.6rem 0;
}

/* COMMON FLEX UTILITIES */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.gap-sm {
  gap: 0.5rem;
}

.gap-md {
  gap: 1rem;
}

.gap-lg {
  gap: 1.5rem;
}

/* MODERN BUTTON SYSTEM */
button,
.btn {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

button:disabled,
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--success-color) 0%, #1fa82e 100%);
  color: var(--text-white);
  box-shadow: 0 4px 15px rgba(38, 187, 54, 0.35);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(38, 187, 54, 0.45);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--accent-color) 0%, #3956e0 100%);
  color: var(--text-white);
  box-shadow: 0 4px 15px rgba(74, 107, 255, 0.35);
}

.btn-secondary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 107, 255, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border: 2px solid var(--text-white);
}

.btn-outline:hover:not(:disabled) {
  background: var(--text-white);
  color: var(--accent-color);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  backdrop-filter: blur(5px);
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
}

/* Danger/Warning buttons */
.btn-danger {
  background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%);
  color: var(--text-white);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.35);
}

.btn-danger:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45);
}

.btn-warning {
  background: linear-gradient(135deg, #ffc107 0%, #f59e0b 100%);
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.35);
}

.btn-warning:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.45);
}

/* Light/card button - white bg with dark text */
.btn-light {
  background: var(--bg-white);
  color: var(--text-primary) !important;
  box-shadow: var(--shadow-sm);
}

.btn-light:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--bg-light);
  color: var(--text-primary) !important;
}

/* Ensure all white/light background elements have dark text */
button[style*="background: white"],
button[style*="background:#fff"],
button[style*="background: #fff"],
.btn-white,
.white-btn {
  color: var(--text-primary) !important;
}

/* Play/Action button (game specific) */
.btn-play,
.play-button {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: var(--text-white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-normal);
}

.btn-play:hover,
.play-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}

/* Choice buttons (Yes/No style) */
.btn-yes,
.choice-btn.btn-yes {
  background: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
  color: var(--text-white);
  padding: 0.9rem 2.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
  border: none;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-yes:hover,
.choice-btn.btn-yes:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}

.btn-no,
.choice-btn.btn-no {
  background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%);
  color: var(--text-white);
  padding: 0.9rem 2.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
  border: none;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-no:hover,
.choice-btn.btn-no:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}

/* Button sizes */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-full {
  width: 100%;
}

/* LANGUAGE TOGGLE STYLE */
.language-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bg-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  z-index: 100;
  transition: all var(--transition-normal);
}

.language-toggle:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* TEXT SIZE CONTROLS */
.text-size-controls {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  gap: 10px;
  z-index: 100;
}

.text-size-toggle {
  background: var(--bg-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.text-size-toggle:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* FORM INPUTS */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-md);
  background: var(--bg-white);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(47, 201, 255, 0.15);
}

/* STAT CARDS (Dashboard) */
.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.5rem;
  box-shadow: var(--shadow-md);
  min-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all var(--transition-normal);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.stat-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.stat-card:active {
  transform: translateY(-2px) scale(1);
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* MENU BUTTONS (Dashboard) */
.menu-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  width: 100%;
  max-width: 260px;
  position: relative;
  overflow: hidden;
}

.menu-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.menu-btn:hover {
  transform: translateY(-4px) translateX(4px);
  box-shadow: var(--shadow-lg);
}

.menu-btn:hover::before {
  opacity: 1;
}

.menu-btn:active {
  transform: translateY(-2px) translateX(2px);
}

/* STREAK CARD */
.streak-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  min-width: 280px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.streak-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ffd700, #ffaa00, #ff8c00);
}

.streak-title {
  font-size: 1.4rem;
  color: var(--success-color);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.streak-ach {
  color: #f59e0b;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.streak-msg {
  color: #ea580c;
  font-size: 1rem;
  font-weight: 500;
}

/* DASHBOARD LOGOUT */
.dashboard-logout {
  margin-top: 2rem;
  padding: 0.8rem 2.5rem;
  border-radius: var(--radius-full);
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: var(--text-white);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.dashboard-logout:hover {
  background: var(--text-white);
  color: var(--secondary-color);
  border-color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* LOGO WRAPPER */
.logo-wrapper {
  background: var(--bg-white);
  padding: 16px 20px;
  border-radius: var(--radius-xl);
  margin-bottom: 1.5rem;
  margin-top: 0.75rem;
  box-shadow: var(--shadow-md);
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.logo-img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* DASHBOARD LAYOUT */
.dashboard {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  padding: 1rem;
  justify-content: center;
}

.dashboard-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.main-area {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* GAME MODE TOGGLE */
.game-mode-toggle {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}

.game-mode-container {
  display: flex;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  padding: 4px;
  position: relative;
  min-width: 240px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
}

.game-mode-option {
  padding: 8px 20px;
  cursor: pointer;
  z-index: 2;
  transition: all var(--transition-normal);
  text-align: center;
  width: 50%;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  border-radius: var(--radius-full);
}

.game-mode-option.active {
  color: var(--text-white);
}

.game-mode-slider {
  position: absolute;
  height: calc(100% - 8px);
  width: calc(50% - 4px);
  background: var(--accent-color);
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  z-index: 1;
  top: 4px;
  left: 4px;
  box-shadow: 0 2px 8px rgba(74, 107, 255, 0.4);
}

.game-mode-slider.multiplayer {
  left: calc(50%);
}

/* ANIMATIONS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.5s ease forwards;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* LOADING SKELETON */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

/* BADGES & CHIPS */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
}

.badge-success {
  background: rgba(38, 187, 54, 0.15);
  color: var(--success-color);
  border: 1px solid rgba(38, 187, 54, 0.3);
}

.badge-warning {
  background: rgba(255, 193, 7, 0.15);
  color: #b45309;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.badge-info {
  background: rgba(47, 201, 255, 0.15);
  color: var(--primary-color);
  border: 1px solid rgba(47, 201, 255, 0.3);
}

/* TOAST NOTIFICATIONS */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10000;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-normal);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-success {
  border-left: 4px solid var(--success-color);
}

.toast-error {
  border-left: 4px solid var(--danger-color);
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .dashboard-row {
    flex-direction: column;
    align-items: center;
  }

  .stat-card {
    width: 100%;
    max-width: 280px;
  }

  .main-area {
    flex-direction: column;
    align-items: center;
  }

  .menu-btn {
    max-width: 100%;
  }

  .streak-card {
    min-width: 100%;
    max-width: 300px;
  }

  .language-toggle,
  .text-size-controls {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    margin: 0.5rem auto;
  }

  .logo-wrapper {
    padding: 12px 16px;
  }

  .logo-img {
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .stat-card {
    padding: 1rem;
  }

  .menu-btn {
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
  }

  h1,
  .page-title {
    font-size: 1.5rem;
  }
}

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .stat-card:hover,
  .menu-btn:hover,
  .item-card:hover,
  .card:hover {
    transform: none !important;
  }
}

/* Focus states for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

/* Custom control focus states */
.stat-card:focus-visible,
.menu-btn:focus-visible,
.game-mode-option:focus-visible,
.language-toggle:focus-visible,
.text-size-toggle:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --shadow-sm: 0 0 0 1px currentColor;
    --shadow-md: 0 0 0 2px currentColor;
    --shadow-lg: 0 0 0 3px currentColor;
  }

  .stat-card,
  .menu-btn,
  .card {
    border: 2px solid currentColor;
  }
}

/* Screen reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* DASHBOARD OVERLAY (Standardized) */
.dashboard-overlay {
  position: fixed;
  top: max(20px, env(safe-area-inset-top, 20px));
  left: max(20px, env(safe-area-inset-left, 20px));
  z-index: 100;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  padding: 15px;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 10px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 768px) {
  .dashboard-overlay {
    top: 10px;
    left: 10px;
    padding: 10px;
  }
}