/* TKA Smart Exam Custom CSS Stylesheet */

@keyframes pulse-red {
  0%, 100% {
    background-color: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  50% {
    background-color: #dc2626;
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }
}

.timer-warning-critical {
  animation: pulse-red 1.5s infinite;
}

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

.glass-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* CBT Option Card transitions */
.option-card {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.option-card:hover {
  transform: translateY(-2px);
}

.option-card.selected {
  border-color: #2563eb;
  background-color: #eff6ff;
  box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.15);
}

/* Question Palette Palette Items */
.palette-btn {
  transition: all 0.15s ease-in-out;
}

.palette-btn:hover {
  transform: scale(1.08);
}

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Toast Notification Animation */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast-animate {
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Printable Certificate / Report Styling */
@media print {
  body {
    background: white !important;
    color: black !important;
  }
  #navbar-container, #toast-container, .no-print {
    display: none !important;
  }
  .print-only {
    display: block !important;
  }
  .shadow-lg, .shadow-md, .shadow-sm {
    box-shadow: none !important;
  }
}
