/* Smart Examination Hall - Custom Styles & Animations */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Noto+Sans+Gujarati:wght@400;500;600;700;800&family=Cinzel:wght@600;700;900&display=swap');

:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --danger: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;
}

body {
  font-family: 'Plus Jakarta Sans', 'Noto Sans Gujarati', sans-serif;
}

.font-certificate {
  font-family: 'Cinzel', 'Times New Roman', serif;
}

/* AI Tracking Radar Scan Line */
.ai-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.8), #60a5fa, transparent);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.8);
  animation: scanMove 2.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes scanMove {
  0% { top: 5%; opacity: 0.3; }
  50% { top: 90%; opacity: 1; }
  100% { top: 5%; opacity: 0.3; }
}

/* Pulse indicator */
.pulse-live {
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulseLive 1.5s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulseLive {
  to {
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }
}

/* Glassmorphism */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Certificate Styles */
.certificate-container {
  background: #ffffff;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.certificate-border {
  border: 12px solid #1e293b;
  outline: 4px solid #d97706;
  outline-offset: -8px;
  position: relative;
}

.certificate-inner-border {
  border: 2px dashed #b45309;
}

.certificate-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-25deg);
  opacity: 0.04;
  font-size: 6rem;
  font-weight: 900;
  pointer-events: none;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Print Rules for Certificate */
@media print {
  body * {
    visibility: hidden;
  }
  #certificate-print-area, #certificate-print-area * {
    visibility: visible;
  }
  #certificate-print-area {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 20px;
    background: white;
    z-index: 999999;
  }
  .no-print {
    display: none !important;
  }
}
