/* Custom Styles for Portal Akun Siswa */

:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f8fafc;
}

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

/* Active Class Button */
.class-btn.active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.35);
  border-color: #2563eb;
}
.class-btn.active .badge-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Active Student Item */
.student-item.active {
  background-color: #eff6ff;
  border-color: #3b82f6;
  box-shadow: 0 2px 6px -1px rgba(59, 130, 246, 0.2);
}

/* Animated Toast */
#toast {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(100px);
  opacity: 0;
}
#toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Print specific styles */
@media print {
  body * {
    visibility: hidden;
  }
  #print-area, #print-area * {
    visibility: visible;
  }
  #print-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 10mm;
    background: white;
  }
  .no-print {
    display: none !important;
  }
  .print-page-break {
    page-break-after: always;
  }
}

/* Slip Card in Print Mode */
.print-slip {
  border: 1.5px dashed #475569;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  page-break-inside: avoid;
}

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.animate-fadeIn {
  animation: fadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scaleIn {
  animation: scaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

