/* 
  SDIA 28 Penjemputan Siswa - shadcn/ui Theme & Component Utility Styles
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --background: 0 0% 100%;
  --foreground: 240 10% 3.9%;
  --card: 0 0% 100%;
  --card-foreground: 240 10% 3.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 240 10% 3.9%;
  --primary: 240 5.9% 10%;
  --primary-foreground: 0 0% 98%;
  --secondary: 240 4.8% 95.9%;
  --secondary-foreground: 240 5.9% 10%;
  --muted: 240 4.8% 95.9%;
  --muted-foreground: 240 3.8% 46.1%;
  --accent: 240 4.8% 95.9%;
  --accent-foreground: 240 5.9% 10%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;
  --border: 240 5.9% 90%;
  --input: 240 5.9% 90%;
  --ring: 240 5.9% 10%;
  --radius: 0.75rem;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #fafafa;
  color: #09090b;
  -webkit-font-smoothing: antialiased;
}

/* Custom Ultra-thin Scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #e4e4e7;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #d4d4d8;
}

/* shadcn Card Container */
.shadcn-card {
  background-color: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: var(--radius);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.shadcn-card:hover {
  border-color: #d4d4d8;
}

/* shadcn Buttons */
.btn-shadcn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.25rem;
  padding: 0.5rem 0.875rem;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  cursor: pointer;
  user-select: none;
  gap: 0.5rem;
}

.btn-shadcn-default {
  background-color: #18181b;
  color: #fafafa;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.btn-shadcn-default:hover {
  background-color: #27272a;
}

.btn-shadcn-outline {
  border: 1px solid #e4e4e7;
  background-color: #ffffff;
  color: #18181b;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
}
.btn-shadcn-outline:hover {
  background-color: #f4f4f5;
  border-color: #d4d4d8;
}

.btn-shadcn-secondary {
  background-color: #f4f4f5;
  color: #18181b;
}
.btn-shadcn-secondary:hover {
  background-color: #e4e4e7;
}

.btn-shadcn-destructive {
  background-color: #ef4444;
  color: #ffffff;
}
.btn-shadcn-destructive:hover {
  background-color: #dc2626;
}

/* shadcn Badges */
.badge-shadcn {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.125rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1rem;
  transition: color 0.15s ease;
  border: 1px solid transparent;
}

.badge-shadcn-default {
  background-color: #18181b;
  color: #fafafa;
}

.badge-shadcn-secondary {
  background-color: #f4f4f5;
  color: #18181b;
  border-color: #e4e4e7;
}

.badge-shadcn-outline {
  background-color: transparent;
  color: #18181b;
  border-color: #e4e4e7;
}

.badge-shadcn-success {
  background-color: #f0fdf4;
  color: #15803d;
  border-color: #bbf7d0;
}

.badge-shadcn-warning {
  background-color: #fffbeb;
  color: #b45309;
  border-color: #fef3c7;
}

.badge-shadcn-destructive {
  background-color: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

/* Segmented Tabs Control */
.shadcn-tabs-list {
  display: inline-flex;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background-color: #f4f4f5;
  padding: 0.1875rem;
  color: #71717a;
}

.shadcn-tab-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 0.375rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.15s ease;
  cursor: pointer;
  user-select: none;
}

.shadcn-tab-trigger.active {
  background-color: #ffffff;
  color: #09090b;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Form Input & Select */
.shadcn-input {
  display: flex;
  height: 2.25rem;
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid #e4e4e7;
  background-color: #ffffff;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  color: #09090b;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.shadcn-input:focus {
  outline: none;
  border-color: #18181b;
  box-shadow: 0 0 0 1px #18181b;
}

/* Pulsing Status Indicator */
.status-ping {
  position: relative;
  display: inline-flex;
  height: 0.5rem;
  width: 0.5rem;
}
.status-ping::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background-color: currentColor;
  opacity: 0.75;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}

/* Countdown SVG Ring */
.circular-progress {
  position: relative;
  width: 84px;
  height: 84px;
}
.circular-progress svg {
  transform: rotate(-90deg);
}
.circular-progress .progress-ring-bg {
  stroke: #f4f4f5;
}
.circular-progress .progress-ring-circle {
  stroke: #18181b;
  stroke-dasharray: 251;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.3s ease;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background-color: #18181b;
  color: #fafafa;
  font-size: 0.75rem;
  font-weight: 500;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid #27272a;
}

/* ==========================================================================
   Micro-Interactions & Interactive Animation Utilities
   ========================================================================== */

/* Tactile Spring Press & Hover Lift */
.hover-lift {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease !important;
}
.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.active-press {
  transition: transform 0.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.active-press:active {
  transform: scale(0.97);
}

/* Entrance Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-in-up {
  animation: fadeInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.animate-scale-in {
  animation: scaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Skeleton Shimmer Loading Effect */
@keyframes skeleton-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton-box {
  background: linear-gradient(90deg, #f4f4f5 25%, #e4e4e7 50%, #f4f4f5 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite linear;
  border-radius: 0.375rem;
}

