/* ==============================================================================
   Dental Class Portal - Custom CSS
   File: public/css/style.css
   ============================================================================== */

/* 1. Typography Setup */
@font-face {
  font-family: 'YekanBakh';
  src: url('../fonts/YekanBakh-Bold.woff2') format('woff2');
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

/* Base Body Styles */
body {
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  color: #1e293b;
  background-color: #f8fafc;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings with YekanBakh and heavy Vazirmatn fallback */
h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'YekanBakh', 'Vazirmatn', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* 2. Custom Blinking & Pulsing Indicators */
@keyframes quizPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    transform: scale(1.08);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    transform: scale(1);
  }
}

@keyframes homeworkPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
    transform: scale(1.08);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    transform: scale(1);
  }
}

.pulse-quiz {
  animation: quizPulse 1.8s infinite ease-in-out;
}

.pulse-homework {
  animation: homeworkPulse 1.8s infinite ease-in-out;
}

/* 3. Class Mode Badges */
.badge-inperson {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.badge-online {
  background-color: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.badge-offline {
  background-color: #faf5ff;
  color: #6b21a8;
  border: 1px solid #e9d5ff;
}

.badge-cancelled {
  background-color: #fff1f2;
  color: #9f1239;
  border: 1px solid #fecdd3;
  text-decoration: line-through;
}

/* 4. Glassmorphism & UI Accents */
.glass-panel {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-backdrop {
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* 5. Custom RTL 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;
}

/* 6. Transitions */
.tab-transition {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.07), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

/* 7. Chat Box Auto-scroll Container */
.chat-messages-container {
  max-height: 380px;
  overflow-y: auto;
  scroll-behavior: smooth;
}
