/* Jameel Noori Nastaleeq Regular — template font, bundled in public/fonts */
@font-face {
  font-family: "Jameel Noori Nastaleeq";
  src: url("fonts/JameelNooriNastaleeq.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Jameel";
  src: url("fonts/JameelNooriNastaleeq.ttf") format("truetype");
  font-display: swap;
}

:root {
  --navy: #052848;
  --navy-2: #0f314d;
  --yellow: #ffec08;
  --ur: "Jameel Noori Nastaleeq", "Noto Nastaliq Urdu", serif;
  --ui: "Plus Jakarta Sans", Inter, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  height: 100%;
  max-height: 100dvh;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background-color: #f1f5f9;
  font-family: var(--ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.admin-page {
  height: auto !important;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  min-height: 100vh;
  background-color: #f8fafc;
}

.font-urdu {
  font-family: var(--ur);
  line-height: 1.95;
}

.ur {
  font-family: var(--ur);
  font-size: 16px;
  line-height: 1.85;
}

/* Custom Scrollbar matching ABN News Studio */
.custom-scrollbar::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 9999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.7);
}

/* Tab Switching */
.tab {
  transition: all 0.15s ease;
}
.tab.active {
  background-color: #ffffff !important;
  color: #052848 !important;
  font-weight: 700 !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.pane {
  display: none !important;
}
.pane.active {
  display: flex !important;
}

/* Drag & Drop */
.drop.over {
  border-color: #052848 !important;
  background-color: #f0f5fa !important;
}

/* Active photo thumbnail */
.thumbs img.active {
  border-color: #ffec08 !important;
  box-shadow: 0 0 0 2px #052848 !important;
}

/* Canvas Dragging */
#poster {
  touch-action: none;
  cursor: grab;
}
#poster.dragging {
  cursor: grabbing !important;
}

/* Range input accent */
input[type="range"] {
  accent-color: #052848;
}

/* Admin Styles */
.admin { max-width: 900px; margin: 0 auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.card h2 { margin: 0; font-size: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
td, th { padding: 6px 4px; border-bottom: 1px solid #e2e8f0; text-align: left; }
td input { width: 100%; font: inherit; padding: 5px 8px; border: 1px solid #cbd5e1; border-radius: 6px; }
td input.ur { font-family: var(--ur); font-size: 16px; direction: rtl; }
