/* ═══════════════════════════════════════════════════════════════
   UAE Secured Access — Modern B/W Theme
   ═══════════════════════════════════════════════════════════════ */

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pulse-ring {
  0% {
    transform: scale(0.9);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}
@keyframes countdownStroke {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: 283;
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
@keyframes celebrate {
  0% {
    transform: scale(0.8) rotate(-5deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.05) rotate(2deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}
.animate-fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}
.animate-slide-down {
  animation: slideDown 0.4s ease-out forwards;
}
.animate-float {
  animation: float 3s ease-in-out infinite;
}
.animate-celebrate {
  animation: celebrate 0.7s ease-out forwards;
}
.animate-shimmer {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 0, 0, 0.04),
    transparent
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* Stagger children */
.stagger > *:nth-child(1) {
  animation-delay: 0.05s;
}
.stagger > *:nth-child(2) {
  animation-delay: 0.1s;
}
.stagger > *:nth-child(3) {
  animation-delay: 0.15s;
}
.stagger > *:nth-child(4) {
  animation-delay: 0.2s;
}
.stagger > *:nth-child(5) {
  animation-delay: 0.25s;
}
.stagger > *:nth-child(6) {
  animation-delay: 0.3s;
}
.stagger > *:nth-child(7) {
  animation-delay: 0.35s;
}
.stagger > *:nth-child(8) {
  animation-delay: 0.4s;
}
.stagger > *:nth-child(9) {
  animation-delay: 0.45s;
}

/* ---------- Glass (B/W) ---------- */
.glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.glass-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.glass-card:hover {
  border-color: rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

/* ---------- Drop Zone (B/W) ---------- */
.drop-zone {
  border: 2px dashed rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  background: rgba(0, 0, 0, 0.01);
}
.drop-zone:hover,
.drop-zone.dragover {
  border-color: #000;
  background: rgba(0, 0, 0, 0.02);
}
.drop-zone.has-file {
  border-color: #000;
  background: rgba(0, 0, 0, 0.02);
}

/* ---------- Countdown ring ---------- */
.countdown-ring {
  transform: rotate(-90deg);
}
.countdown-ring circle.progress {
  stroke-dasharray: 283;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}

/* ---------- Utility ---------- */
.gradient-text {
  color: #000;
  font-weight: 800;
}
.gradient-border {
  position: relative;
}
.gradient-border::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: #000;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* ---------- Custom scrollbar ---------- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.2);
}

/* ---------- Input styles (B/W) ---------- */
.form-input {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #000;
  transition: all 0.3s ease;
}
.form-input:focus {
  outline: none;
  border-color: #000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
  background: #fff;
}
.form-input::placeholder {
  color: #9ca3af;
}

/* ---------- Buttons (B/W) ---------- */
.btn-primary {
  background: #000;
  color: #fff;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-primary:hover::after {
  opacity: 1;
}

.btn-danger {
  background: #fff;
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.2);
  transition: all 0.3s ease;
}
.btn-danger:hover {
  background: #fef2f2;
  border-color: rgba(220, 38, 38, 0.4);
}

.btn-ghost {
  background: transparent;
  color: #374151;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}
.btn-ghost:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #000;
}

/* ---------- File Viewer ---------- */
.pdf-viewer-container {
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.pdf-viewer-container.hidden-viewer {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  position: absolute;
  inset: 0;
}
.pdf-viewer-container.active-viewer {
  opacity: 1;
  transform: scale(1);
}
