@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons+Round');

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
}

/* Material Design Elevation Shadows */
.elevation-1 {
  box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15), 0px 1px 2px 0px rgba(0, 0, 0, 0.3);
}

.elevation-2 {
  box-shadow: 0px 2px 6px 2px rgba(0, 0, 0, 0.15), 0px 1px 2px 0px rgba(0, 0, 0, 0.3);
}

.elevation-3 {
  box-shadow: 0px 4px 8px 3px rgba(0, 0, 0, 0.15), 0px 1px 3px 0px rgba(0, 0, 0, 0.3);
}

.elevation-4 {
  box-shadow: 0px 6px 10px 4px rgba(0, 0, 0, 0.15), 0px 2px 3px 0px rgba(0, 0, 0, 0.3);
}

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

::-webkit-scrollbar-track {
  background: transparent;
}

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

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

/* Card Hover Animation */
.material-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.material-card:hover {
  transform: translateY(-2px);
  box-shadow: 0px 8px 16px 4px rgba(0, 0, 0, 0.08), 0px 2px 4px 0px rgba(0, 0, 0, 0.12);
}

/* Print Styles */
@media print {
  body {
    background-color: white !important;
    color: black !important;
  }
  
  .no-print {
    display: none !important;
  }
  
  .print-card {
    box-shadow: none !important;
    border: 1px solid #e2e8f0 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }
}

/* Smooth Pulse Animation for Status Chip */
@keyframes soft-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.pulse-active {
  animation: soft-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Ripple-like button effect transition */
.btn-material {
  position: relative;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-material::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0.5s, opacity 1s;
}

.btn-material:active::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  transition: 0s;
}

/* ==========================================
   Quill Editor Material Adaptation
   ========================================== */
.ql-toolbar.ql-snow {
  border: 1px solid #cbd5e1 !important;
  border-top-left-radius: 12px !important;
  border-top-right-radius: 12px !important;
  background-color: #f8fafc;
  padding: 8px 12px !important;
}

.ql-container.ql-snow {
  border: 1px solid #cbd5e1 !important;
  border-bottom-left-radius: 12px !important;
  border-bottom-right-radius: 12px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 0.875rem !important;
  color: #1e293b !important;
}

.ql-editor {
  min-height: 180px;
}

/* ==========================================
   Rich HTML Instruction Content styling
   ========================================== */
.instruction-content {
  word-wrap: break-word;
}

.instruction-content p {
  margin-bottom: 0.75rem;
}

.instruction-content p:last-child {
  margin-bottom: 0;
}

.instruction-content strong {
  font-weight: 700;
  color: #0f172a;
}

.instruction-content em {
  font-style: italic;
}

.instruction-content u {
  text-decoration: underline;
}

.instruction-content blockquote {
  border-left: 4px solid #6750A4;
  padding-left: 1rem;
  margin: 1rem 0;
  color: #475569;
  font-style: italic;
  background-color: #f8fafc;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-radius: 0 8px 8px 0;
}

.instruction-content pre {
  background-color: #f1f5f9;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-family: monospace;
  font-size: 0.85rem;
  overflow-x: auto;
  margin: 0.75rem 0;
  border: 1px solid #e2e8f0;
}

.instruction-content ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.instruction-content ol {
  list-style-type: decimal;
  margin-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.instruction-content h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.instruction-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: #1e293b;
}

.instruction-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  color: #334155;
}

.instruction-content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 1.5rem auto;
  display: block;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  border: 1px solid #f1f5f9;
}

.instruction-content a {
  color: #6750A4;
  text-decoration: underline;
  font-weight: 600;
}

.instruction-content a:hover {
  color: #513c8a;
}
