/* ═══════════════════════════════════════════════════════
   HunarLink – Global Styles
   All custom CSS, Tailwind config keyframes, scrollbars
   ═══════════════════════════════════════════════════════ */

/* ── Base ─────────────────────────────────────────────── */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { font-family: 'Outfit', sans-serif; background: #f8fafc; overflow-x: hidden; color: #0f172a; }
div#topbar-placeholder {
    width: 100%;
}
/* ── Skeleton / Shimmer ───────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 600px 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: 8px;
}

/* ── Microphone ripple ring ───────────────────────────── */
.mic-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(22, 163, 74, .15);
}

/* ── Scrollbars ───────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

/* ── Glow utility ─────────────────────────────────────── */
.match-glow { box-shadow: 0 0 0 3px rgba(22, 163, 74, .22); }

/* ── Sidebar ──────────────────────────────────────────── */
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: .875rem;
  font-weight: 400;
  color: #475569;
  transition: all .2s;
  cursor: pointer;
  white-space: nowrap;
}
.sidebar-link:hover { background: #f1f5f9; color: #0f172a; }
.sidebar-link.active { background: #16a34a; color: #fff; font-weight: 500; }
.sidebar-link.active svg { stroke: #fff; }
.sidebar-link svg { stroke: #64748b; transition: stroke .2s; }

/* ── Bottom navigation ────────────────────────────────── */
.nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s;
  flex: 1;
}
.nav-tab span { font-size: 10px; font-weight: 400; color: #64748b; }
.nav-tab.active span { color: #16a34a; font-weight: 600; }

/* ── Chat bubbles ─────────────────────────────────────── */
.chat-bubble-in {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px 18px 18px 4px;
  padding: 10px 14px;
  max-width: 75%;
  font-size: .875rem;
  font-weight: 300;
  color: #0f172a;
}
.chat-bubble-out {
  background: #16a34a;
  border-radius: 18px 18px 4px 18px;
  padding: 10px 14px;
  max-width: 75%;
  font-size: .875rem;
  font-weight: 300;
  color: #fff;
  margin-left: auto;
}

/* ── Tag / Filter pill ────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: .75rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  transition: all .2s;
  cursor: pointer;
}
.tag:hover { border-color: #cbd5e1; color: #0f172a; background: #f1f5f9; }
.tag.active-filter { background: #1e293b; color: #fff; border-color: #1e293b; }

/* ── Input / Button ───────────────────────────────────── */
.input-field {
  width: 100%;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: .875rem;
  font-weight: 400;
  color: #0f172a;
  outline: none;
  transition: border-color .2s;
  font-family: 'Outfit', sans-serif;
}
.input-field:focus { border-color: #16a34a; }

.btn-primary {
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  font-family: 'Outfit', sans-serif;
}
.btn-primary:hover { background: #15803d; box-shadow: 0 4px 12px rgba(22, 163, 74, .2); }

.btn-ghost {
  background: transparent;
  border: 1.5px solid #e2e8f0;
  color: #334155;
  border-radius: 12px;
  padding: 10px 20px;
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  font-family: 'Outfit', sans-serif;
}
.btn-ghost:hover { background: #f8fafc; border-color: #cbd5e1; color: #0f172a; }

/* ── Card ─────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  transition: all .2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .02);
}
.card:hover { border-color: #cbd5e1; box-shadow: 0 4px 20px rgba(0, 0, 0, .05); }
.section-title { font-size: 1.25rem; font-weight: 700; color: #0f172a; margin-bottom: 16px; }

/* ── Profile tabs ─────────────────────────────────────── */
.profile-tab {
  padding: 10px 20px;
  font-size: .875rem;
  font-weight: 600;
  color: #64748b;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all .2s;
}
.profile-tab.active { color: #16a34a; border-bottom-color: #16a34a; }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeUp .3s ease forwards; }

/* ── App Layout ───────────────────────────────────────── */
.app-layout { display: flex; min-height: 100vh; width: 100%; }
.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid #e2e8f0;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 40;
  transform: translateX(-100%);
  transition: transform .3s;
}
.sidebar.open { transform: translateX(0); }
.main-area { flex: 1; min-height: 100vh; display: flex; flex-direction: column; align-items: center; background: #f8fafc; }
.main-content-wrapper { width: 100%; max-width: 1200px; }

.topbar {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
}
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  padding: 8px 16px;
  z-index: 40;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, .03);
}

/* ── Responsive ───────────────────────────────────────── */
@media (min-width: 768px) {
  .sidebar { transform: translateX(0) !important; position: sticky; top: 0; height: 100vh; }
  .main-area { margin-left: 0; }
  .bottom-nav { display: none !important; }
  .app-layout { align-items: flex-start; }
  .topbar .menu-btn { display: none; }
  .desktop-hide { display: none !important; }
  .desktop-show { display: flex !important; }
}
@media (max-width: 767px) {
  .sidebar { width: 100%; max-width: 280px; }
  .mobile-hide { display: none !important; }
}

/* ── Dropdown ─────────────────────────────────────────── */
.dropdown {
  position: absolute;
  z-index: 100;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .08);
  padding: 8px;
  min-width: 240px;
}

/* ── Modal ────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .5);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay.open { display: flex; }

/* ── Chat layout ──────────────────────────────────────── */
.chat-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  margin-top: 8px;
  height: calc(100vh - 120px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .02);
}
.contact-pane {
  width: 100%;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: #fff;
}
.message-pane { flex: 1; display: none; flex-direction: column; overflow: hidden; background: #f8fafc; }

@media (min-width: 768px) {
  .contact-pane { width: 340px; flex-shrink: 0; }
  .message-pane { display: flex !important; }
}
.message-pane.mobile-open { display: flex; }

/* ── Hero banner (app pages) ──────────────────────────── */
.hero-banner {
  background: linear-gradient(135deg, #16a34a 0%, #065f46 100%);
  color: white;
  border-radius: 24px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.hero-banner::after {
  content: '';
  position: absolute;
  right: -50px;
  top: -50px;
  width: 250px;
  height: 250px;
  background: rgba(255, 255, 255, .08);
  border-radius: 50%;
}

/* ── Landing Page Specific ────────────────────────────── */
.bauhaus-shape { clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%); }
.urdu-text { line-height: 1.6; font-family: 'Noto Nastaliq Urdu', serif; }

/* ── Keyframes ────────────────────────────────────────── */
@keyframes shimmer {
  0% { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes slideRight {
  0% { opacity: 0; transform: translateX(-16px); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes ripple {
  0% { transform: scale(1); opacity: .5; }
  100% { transform: scale(2.6); opacity: 0; }
}
@keyframes pulse2 {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
@keyframes slideDown {
  0% { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes toastIn {
  0% { opacity: 0; transform: translateX(110%); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes spin3d {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
