/* ── assets/css/style.css ─────────────────────────────── */

/* Gold gradient utility */
.gold-gradient {
  background: linear-gradient(135deg, #d4972a 0%, #efca68 50%, #d4972a 100%);
}

/* Gold text gradient */
.gold-text-gradient {
  background: linear-gradient(135deg, #b8791e, #efca68, #b8791e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Shimmer divider line */
.shimmer-line {
  height: 1px;
  background: linear-gradient(to right, transparent, #efca68, transparent);
  display: block;
}

/* Progress bar */
.progress-fill {
  background: linear-gradient(90deg, #d4972a, #efca68);
  border-radius: 999px;
  height: 100%;
}

/* Card hover lift */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(212, 151, 42, 0.15);
}

/* Nav pill active */
.nav-pill.active {
  background: linear-gradient(135deg, #d4972a, #efca68);
  color: #fff !important;
}

/* Sidebar link active */
.sidebar-link.active {
  background: rgba(212, 151, 42, 0.1) !important;
  color: #b8791e !important;
  border-left: 3px solid #d4972a;
  padding-left: calc(0.75rem - 3px);
  font-weight: 600;
}

/* Badge gold */
.badge-gold {
  background: linear-gradient(135deg, rgba(212,151,42,0.1), rgba(239,202,104,0.1));
  border: 1px solid rgba(212,151,42,0.35);
  color: #b8791e;
}

/* Badge pending */
.badge-pending {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
}

/* Badge active */
.badge-active {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

/* Badge rejected */
.badge-rejected {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

/* Input focus */
.dd-input {
  border: 1px solid #f5dfa0;
  border-radius: 0.75rem;
  padding: 0.625rem 0.875rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  background: white;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
  color: #1a1a1a;
}
.dd-input:focus {
  outline: none;
  border-color: #d4972a;
  box-shadow: 0 0 0 3px rgba(212, 151, 42, 0.12);
}
.dd-input::placeholder {
  color: #9ca3af;
}
/* iOS date input fix */
input[type="date"].dd-input {
  min-height: 2.75rem;
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

@media (max-width: 767px) {
  .dd-input {
    font-size: 16px !important; /* Prevents iOS auto-zoom which causes layout shifting */
  }
}

/* iOS specific inner padding reset */
input[type="date"]::-webkit-date-and-time-value {
  margin: 0;
  padding: 0;
  min-height: 1.5em;
  text-align: left;
}

/* Fix for scroll indicator centering on some mobile browsers */
.scroll-indicator-fixed {
  left: 50% !important;
  transform: translateX(-50%) !important;
}

/* Label */
.dd-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.375rem;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Primary button */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  background: linear-gradient(135deg, #d4972a 0%, #efca68 50%, #d4972a 100%);
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.75rem 1.5rem;
  border-radius: 1rem;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(212, 151, 42, 0.3);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}
.btn-gold:hover {
  opacity: 0.88;
  box-shadow: 0 6px 20px rgba(212, 151, 42, 0.4);
}

/* Outline button */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  background: transparent;
  color: #b8791e;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.75rem 1.5rem;
  border-radius: 1rem;
  border: 1.5px solid #d4972a;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}
.btn-outline:hover {
  background: #faf0d7;
}

/* Template card */
.template-card {
  cursor: pointer;
  border-radius: 1.25rem;
  border: 2px solid transparent;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  background: white;
}
.template-card:hover {
  border-color: #d4972a;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(212, 151, 42, 0.15);
}
.template-card.selected {
  border-color: #d4972a;
  box-shadow: 0 0 0 3px rgba(212, 151, 42, 0.2);
}

/* Photo grid cell */
.photo-cell {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  background: #f5dfa022;
}
.photo-cell img,
.photo-cell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.photo-cell:hover img,
.photo-cell:hover video {
  transform: scale(1.05);
}
.photo-cell .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,26,0.75) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8px;
}
.photo-cell:hover .overlay {
  opacity: 1;
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: #fdfaf5; }
::-webkit-scrollbar-thumb { background: #efca68; border-radius: 3px; }

/* Fade up animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s ease both; }

/* Admin sidebar */
.admin-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  color: rgba(26,26,26,0.6);
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.admin-link:hover { background: #faf0d7; color: #1a1a1a; }
.admin-link.active {
  background: rgba(212,151,42,0.12);
  color: #b8791e;
  font-weight: 600;
  border-left: 3px solid #d4972a;
  padding-left: calc(0.75rem - 3px);
}

/* Mobile hamburger menu */
@media (max-width: 1023px) {
  .sidebar-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26,26,26,0.4);
    z-index: 39;
    display: none;
  }
  .sidebar-mobile-overlay.open {
    display: block;
  }
}

/* Global Table & Tabs Scrolling */
.table-container {
  overflow-x: auto;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.tabs-container {
  overflow-x: auto !important;
  overflow-y: hidden;
  white-space: nowrap !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: auto;
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.tabs-container::-webkit-scrollbar {
  display: none;
}
.tabs-container > div {
  display: flex !important;
  flex-wrap: nowrap !important;
  width: max-content;
}

/* Toggle Switch */
.dd-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.dd-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.dd-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #e5e7eb;
  transition: .4s;
  border-radius: 24px;
}
.dd-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
input:checked + .dd-slider {
  background: linear-gradient(135deg, #d4972a, #efca68);
}
input:focus + .dd-slider {
  box-shadow: 0 0 1px #d4972a;
}
input:checked + .dd-slider:before {
  transform: translateX(20px);
}
