/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

@media (max-width: 768px) {
  input,
  textarea,
  select {
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  button[type="submit"],
  input[type="submit"] {
    font-size: 0.875rem;
    padding: 0.4rem 0.75rem;
  }
}

/* Flowbite-style tooltip utility classes used in views. */
.bg-dark {
  background-color: #111827; /* slate-900 */
}

.rounded-base {
  border-radius: 0.5rem;
}

.shadow-xs {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.tooltip-arrow {
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 8px;
  height: 8px;
  transform: translateX(-50%) rotate(45deg);
  background: inherit;
}

/* Lightweight design-system-ish classes used in Flowbite examples.
   These keep the markup readable without requiring Tailwind theme extension. */
.text-heading {
  color: var(--qawim-text);
}

.text-body {
  color: var(--qawim-muted);
}

.text-fg-brand {
  color: var(--qawim-accent);
}

.hover\\:text-heading:hover {
  color: var(--qawim-text);
}

.bg-neutral-primary,
.bg-neutral-primary-medium {
  background-color: var(--qawim-card);
}

.bg-neutral-secondary-soft {
  background-color: rgba(2, 132, 199, 0.08); /* sky-600 @ 8% */
}

:root.dark .bg-neutral-secondary-soft {
  background-color: rgba(56, 189, 248, 0.14); /* sky-400 @ 14% */
}

.bg-neutral-tertiary,
.bg-neutral-tertiary-medium {
  background-color: rgba(15, 23, 42, 0.06); /* slate-900 @ 6% */
}

:root.dark .bg-neutral-tertiary,
:root.dark .bg-neutral-tertiary-medium {
  background-color: rgba(148, 163, 184, 0.12); /* slate-400 @ 12% */
}

.hover\\:bg-neutral-tertiary:hover,
.hover\\:bg-neutral-tertiary-medium:hover {
  background-color: rgba(15, 23, 42, 0.08);
}

:root.dark .hover\\:bg-neutral-tertiary:hover,
:root.dark .hover\\:bg-neutral-tertiary-medium:hover {
  background-color: rgba(148, 163, 184, 0.18);
}

.border-default-medium {
  border-color: var(--qawim-border);
}

.bg-brand\\/90 {
  background-color: rgba(2, 132, 199, 0.9); /* sky-600 */
}

.hover\\:bg-brand\\/30:hover {
  background-color: rgba(2, 132, 199, 0.3);
}

:root.dark .bg-brand\\/90 {
  background-color: rgba(56, 189, 248, 0.9); /* sky-400 */
}

:root.dark .hover\\:bg-brand\\/30:hover {
  background-color: rgba(56, 189, 248, 0.3);
}

.rounded-e-base {
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

.rounded-es-base {
  border-bottom-left-radius: 0.5rem;
}

.focus\\:ring-neutral-tertiary:focus {
  --tw-ring-color: rgba(2, 132, 199, 0.25);
}
