/* PrepKampüs Custom Styles */

/* 3D Flip Card for Flashcards */
.perspective-1000 {
  perspective: 1000px;
}

.transform-style-3d {
  transform-style: preserve-3d;
}

.backface-hidden {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.rotate-y-180 {
  transform: rotateY(180deg);
}

.flashcard-inner {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.flashcard-inner.flipped {
  transform: rotateY(180deg);
}

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

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

/* Mobile responsive touch improvements */
@media (max-width: 768px) {
  .mobile-nav-active {
    color: #2563eb !important;
  }
}

/* Smooth pulse for timer */
@keyframes timerPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.02); }
}

.timer-urgent {
  animation: timerPulse 1.5s infinite ease-in-out;
  color: #dc2626 !important;
  border-color: #f87171 !important;
}

/* Print / PDF Export Styles */
@media print {
  header, aside, #level-selector-pills, .no-print, button {
    display: none !important;
  }
  body, html {
    background: white !important;
    color: black !important;
    height: auto !important;
  }
  #printable-report-modal {
    position: static !important;
    background: white !important;
    display: block !important;
    padding: 0 !important;
  }
  .print-card {
    border: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
  }
}

/* ================= DARK MODE STYLES ================= */
html.dark {
  background-color: #0f172a !important;
  color-scheme: dark;
}

html.dark body {
  background-color: #0f172a !important;
  color: #f1f5f9 !important;
}

html.dark header,
html.dark aside,
html.dark .bg-white {
  background-color: #1e293b !important;
  color: #f1f5f9;
}

html.dark .bg-slate-50 {
  background-color: #0f172a !important;
}

html.dark .bg-slate-100 {
  background-color: #334155 !important;
}

html.dark .text-slate-800,
html.dark .text-slate-900 {
  color: #f8fafc !important;
}

html.dark .text-slate-700 {
  color: #e2e8f0 !important;
}

html.dark .text-slate-600,
html.dark .text-slate-500 {
  color: #94a3b8 !important;
}

html.dark .border-slate-200,
html.dark .border-slate-200\/80,
html.dark .border-slate-100 {
  border-color: #334155 !important;
}

html.dark input,
html.dark select,
html.dark textarea {
  background-color: #0f172a !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}

html.dark input::placeholder,
html.dark textarea::placeholder {
  color: #64748b !important;
}

html.dark .glass-panel {
  background: rgba(30, 41, 59, 0.85) !important;
}

html.dark ::-webkit-scrollbar-track {
  background: #0f172a;
}

html.dark ::-webkit-scrollbar-thumb {
  background: #334155;
}

html.dark ::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

