/* Custom Styles for CERDAS */

/* Hide scrollbar for horizontal navigation */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Custom modern scrollbar for main content */
#mainScrollContainer::-webkit-scrollbar {
  width: 4px;
}
#mainScrollContainer::-webkit-scrollbar-track {
  background: transparent;
}
#mainScrollContainer::-webkit-scrollbar-thumb {
  background-color: rgba(148, 163, 184, 0.4);
  border-radius: 9999px;
}
#mainScrollContainer::-webkit-scrollbar-thumb:hover {
  background-color: rgba(99, 102, 241, 0.6);
}

/* Accordion transition styling */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease-in-out;
  opacity: 0;
}

.accordion-card.open .accordion-content {
  opacity: 1;
}

.accordion-card .chevron-icon {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-card.open .chevron-icon {
  transform: rotate(180deg);
}

/* Smooth Checkbox Animation */
.task-check-circle {
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.task-item.completed .task-title {
  text-decoration: line-through;
  color: #94a3b8;
}

.task-item.completed {
  opacity: 0.75;
  background-color: #f8fafc;
}

/* Late task visual highlight */
.task-item.is-late {
  border-color: #fecdd3 !important;
  background-color: #fff1f2 !important;
}

/* Sub-card tags */
.badge-category {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
}

/* Desktop Sidebar Button Styles */
.desk-nav-btn {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.desk-nav-btn:hover {
  transform: translateX(3px);
}
.desk-nav-btn.active {
  background-color: #4f46e5 !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

/* Custom scrollbar for in-card rich reading preview */
.custom-materi-scroll::-webkit-scrollbar {
  width: 4px;
}
.custom-materi-scroll::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 99px;
}
.custom-materi-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 99px;
}
.custom-materi-scroll::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

