/* css/app.css */

/* ── Google Font ─────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Safe area (notch / home indicator) ─────────── */
.pb-safe { padding-bottom: env(safe-area-inset-bottom, 16px); }
.pt-safe { padding-top:    env(safe-area-inset-top, 16px); }

/* ── Scrollbar hidden on mobile ─────────────────── */
#screen::-webkit-scrollbar { display: none; }
#screen { -ms-overflow-style: none; scrollbar-width: none; }

/* ── Bottom sheet transition ─────────────────────── */
#modal-sheet.translate-y-full { transform: translateY(100%); }

/* ── Tap highlight suppression ───────────────────── */
* { -webkit-tap-highlight-color: transparent; }

/* ── Input focus ring ────────────────────────────── */
input:focus, select:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 77, 140, 0.15);
}

/* ── Smooth page transitions ─────────────────────── */
#screen > * {
  animation: fadeIn 0.18s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RTL overrides ───────────────────────────────── */
[dir="rtl"] .rtl-flip { transform: scaleX(-1); }

/* ── Skeleton loader ─────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Helper card photo ───────────────────────────── */
.avatar {
  object-fit: cover;
  background-color: #e5e7eb;
}

/* ── Chat bubbles ────────────────────────────────── */
.bubble-sent     { border-radius: 18px 18px 4px 18px; }
.bubble-received { border-radius: 18px 18px 18px 4px; }
