/* SaccoFX – supplemental styles (Tailwind handles most) */

:root {
  --navy:   #0F172A;
  --emerald:#10B981;
  --emerald-dark: #059669;
}

/* Smooth page transitions */
body { opacity: 0; animation: fadeIn .25s ease forwards; }
@keyframes fadeIn { to { opacity: 1; } }

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 3px; }

/* Toast container */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 380px;
  padding: .875rem 1.125rem;
  border-radius: .75rem;
  font-size: .875rem;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  animation: toastIn .25s ease forwards;
}
@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
.toast.removing { animation: toastOut .2s ease forwards; }
@keyframes toastOut {
  to { transform: translateX(110%); opacity: 0; }
}
.toast-success { background: #fff; border-left: 4px solid #10B981; color: #0f172a; }
.toast-error   { background: #fff; border-left: 4px solid #ef4444; color: #0f172a; }
.toast-info    { background: #fff; border-left: 4px solid #3b82f6; color: #0f172a; }
.toast-warning { background: #fff; border-left: 4px solid #f59e0b; color: #0f172a; }

/* Countdown pill */
.countdown-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .2rem .65rem;
  border-radius: 9999px;
  font-size: .75rem;
  font-weight: 600;
  transition: background .5s, color .5s;
}
.countdown-pill.green  { background: #d1fae5; color: #065f46; }
.countdown-pill.yellow { background: #fef3c7; color: #92400e; }
.countdown-pill.red    { background: #fee2e2; color: #991b1b; animation: pulse 1s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.6} }

/* Card hover lift */
.listing-card { transition: transform .2s, box-shadow .2s; }
.listing-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(15,23,42,.12); }

/* Health score ring */
.health-ring { position: relative; display: inline-flex; align-items:center; justify-content:center; }

/* Loading overlay */
.btn-loading { position: relative; pointer-events: none; }
.btn-loading::after {
  content: '';
  position: absolute;
  width: 1rem; height: 1rem;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}
.btn-loading span { opacity: 0; }
@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }

/* Modal backdrop */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(15,23,42,.6);
  backdrop-filter: blur(4px);
  z-index: 50;
  display: flex; align-items:center; justify-content:center;
  animation: fadeIn .2s ease;
}
.modal-box {
  background: #fff;
  border-radius: 1.25rem;
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  margin: 1rem;
  box-shadow: 0 25px 60px rgba(0,0,0,.25);
  animation: modalIn .25s cubic-bezier(.34,1.56,.64,1);
}
@keyframes modalIn {
  from { transform: scale(.9) translateY(10px); opacity: 0; }
  to   { transform: scale(1)  translateY(0);    opacity: 1; }
}

/* OTP input group */
.otp-inputs { display: flex; gap: .5rem; justify-content: center; }
.otp-input {
  width: 2.75rem; height: 3.25rem;
  text-align: center;
  font-size: 1.5rem; font-weight: 700;
  border: 2px solid #e2e8f0;
  border-radius: .5rem;
  transition: border-color .2s;
  outline: none;
}
.otp-input:focus { border-color: #10B981; box-shadow: 0 0 0 3px rgba(16,185,129,.15); }

/* Verified badge */
.verified-badge {
  display: inline-flex; align-items: center; gap: .2rem;
  font-size: .65rem; font-weight: 700; letter-spacing: .03em;
  padding: .15rem .45rem;
  background: #d1fae5; color: #065f46;
  border-radius: 9999px;
}

/* Admin sidebar active */
.nav-link.active {
  background: rgba(16,185,129,.12);
  color: #10B981;
  border-right: 3px solid #10B981;
}

/* Responsive table */
@media (max-width: 640px) {
  .responsive-table thead { display: none; }
  .responsive-table tr {
    display: block;
    border: 1px solid #e2e8f0;
    border-radius: .5rem;
    margin-bottom: .75rem;
    padding: .75rem;
  }
  .responsive-table td {
    display: flex; justify-content: space-between;
    padding: .3rem 0;
    border: none;
  }
  .responsive-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #64748b;
    font-size: .8rem;
  }
}

/* Filter bar */
.filter-input {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: .625rem;
  padding: .5rem .875rem;
  font-size: .875rem;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  width: 100%;
}
.filter-input:focus {
  border-color: #10B981;
  box-shadow: 0 0 0 3px rgba(16,185,129,.12);
}
