/* ==================== style.css ==================== */
* { 
  transition: all 0.2s ease; 
}

::-webkit-scrollbar { 
  width: 6px; 
  height: 6px; 
}

::-webkit-scrollbar-track { 
  background: #f1f1f1; 
}

::-webkit-scrollbar-thumb { 
  background: #c7c7c7; 
  border-radius: 10px; 
}

@keyframes fadeIn { 
  from { 
    opacity: 0; 
    transform: translateY(10px); 
  } 
  to { 
    opacity: 1; 
    transform: translateY(0); 
  } 
}

.animate-fade-in { 
  animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
}

.view-section { 
  display: none; 
}

.view-section.active { 
  display: block; 
}

.nilai-di-atas-kkm { 
  background-color: #d1fae5; 
}

.nilai-di-bawah-kkm { 
  background-color: #fee2e2; 
}

.skeleton {
  animation: skeleton-loading 1s linear infinite alternate;
}

@keyframes skeleton-loading {
  0% { background-color: hsl(200, 20%, 80%); }
  100% { background-color: hsl(200, 20%, 95%); }
}

.progress-bar {
  transition: width 0.3s ease;
}

.daya-serap-table th {
  background-color: #4f46e5;
  color: white;
  font-size: 11px;
  padding: 8px 4px;
  text-align: center;
  border: 1px solid #e5e7eb;
}

.daya-serap-table td {
  padding: 6px 4px;
  text-align: center;
  border: 1px solid #e5e7eb;
  font-size: 12px;
}

.daya-serap-table .nilai-rendah {
  background-color: #fee2e2;
}

.daya-serap-table .nilai-sedang {
  background-color: #fef9c3;
}

.daya-serap-table .nilai-tinggi {
  background-color: #dcfce7;
}

.daya-serap-table .total-row {
  background-color: #f3f4f6;
  font-weight: bold;
}

#sidebarMenu {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
  max-height: calc(100vh - 200px);
}

#sidebarMenu::-webkit-scrollbar {
  width: 3px;
}

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

#sidebarMenu::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
}

#sidebarMenu::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.3);
}

#sidebar.w-20 #sidebarMenu {
  max-height: calc(100vh - 150px);
}

/* Tab Kelas Styles */
.kelas-tab-btn {
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.kelas-tab-btn:active {
  transform: scale(0.97);
}

.kelas-tab-btn i {
  transition: all 0.2s ease;
}

.kelas-tab-btn:hover i {
  transform: translateY(-2px);
}

/* Active tab indicator */
.kelas-tab-btn.active {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Responsive tabs */
@media (max-width: 768px) {
  .kelas-tab-btn {
    padding: 8px 16px;
    font-size: 12px;
  }
  
  .kelas-tab-btn i {
    margin-right: 4px;
  }
}