/* Custom styles layered on top of Tailwind CDN classes.
   Mobile prototypes use Tailwind utilities heavily; this file centralizes small app-specific tweaks. */

:root{
  --cc-primary:#00685f;
  --cc-primary-container:#008378;
  --cc-surface:#f8f9fb;
  --cc-on-surface:#191c1e;
}

html, body{
  height:100%;
}

body{
  margin:0;
  background:var(--cc-surface);
  color:var(--cc-on-surface);
}

.cc-hidden{
  display:none !important;
}

.cc-toast{
  position: fixed;
  left: 16px;
  bottom: 92px; /* keep above bottom nav */
  z-index: 9999;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 12px 32px -4px rgba(25,28,30,0.12);
  max-width: 520px;
}

.cc-toast-title{
  font-weight: 800;
  margin:0 0 4px 0;
}

/* 4.1 Touch & interaction safeguards */
@media (pointer: coarse) {
  button, 
  a, 
  input[type="button"], 
  input[type="submit"], 
  [role="button"] {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* 4.2 Disable hover-only dropdowns on touch devices */
@media (hover: none) {
  .group:hover .group-hover\:block,
  .group:hover .group-hover\:flex {
    display: none !important;
  }
  /* Ensure active/focus states are used instead */
  .group:active .group-hover\:block,
  .group:focus-within .group-hover\:block {
    display: block !important;
  }
}

