@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;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% 38%;
  --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.5rem;
  
  --success: 142.1 76.2% 28%;
  --success-foreground: 355.7 100% 97.3%;
  --warning: 38 92% 38%;
  --warning-foreground: 48 96% 89%;
  --info: 215 89% 40%;
  --info-foreground: 200 98% 95%;
}

.dark {
  --background: 240 10% 3.9%;
  --foreground: 0 0% 98%;
  --card: 240 10% 3.9%;
  --card-foreground: 0 0% 98%;
  --popover: 240 10% 3.9%;
  --popover-foreground: 0 0% 98%;
  --primary: 0 0% 98%;
  --primary-foreground: 240 5.9% 10%;
  --secondary: 240 3.7% 15.9%;
  --secondary-foreground: 0 0% 98%;
  --muted: 240 3.7% 15.9%;
  --muted-foreground: 240 5% 72%;
  --accent: 240 3.7% 15.9%;
  --accent-foreground: 0 0% 98%;
  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 0 0% 98%;
  --border: 240 3.7% 15.9%;
  --input: 240 3.7% 15.9%;
  --ring: 240 4.9% 83.9%;
  
  --success: 142.1 70.6% 52%;
  --success-foreground: 144 61% 94%;
  --warning: 38 92% 55%;
  --warning-foreground: 48 96% 10%;
  --info: 199 89% 55%;
  --info-foreground: 200 98% 95%;
}

html {
  font-size: 17px; /* Besarkan font dasar secara global */
}

* {
  border-color: hsl(var(--border));
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  transition: background-color 0.2s ease, color 0.2s ease;
  margin: 0;
  padding: 0;
}

/* Glassmorphism utility */
.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dark .glass {
  background: rgba(9, 9, 11, 0.6);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: hsl(var(--border));
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--muted-foreground) / 0.5);
}

/* Animation utilities */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}
.animate-fade-in {
  animation: fadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Card Shadcn Look */
.shadcn-card {
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Input Fields Shadcn Look */
.shadcn-input {
  background-color: transparent;
  border: 1px solid hsl(var(--input));
  border-radius: var(--radius);
  color: hsl(var(--foreground));
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.shadcn-input:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

/* Button Shadcn Look */
.shadcn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: background-color 0.15s ease, opacity 0.15s;
  cursor: pointer;
}
.shadcn-btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.shadcn-btn-primary:hover {
  opacity: 0.9;
}
.shadcn-btn-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  border: 1px solid hsl(var(--border));
}
.shadcn-btn-secondary:hover {
  background-color: hsl(var(--muted));
}
.shadcn-btn-ghost {
  color: hsl(var(--foreground));
  background-color: transparent;
}
.shadcn-btn-ghost:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

/* Booking cell status styles */
.cell-available {
  background-color: hsl(var(--success) / 0.16);
  color: hsl(var(--success));
  border: 1.5px dashed hsl(var(--success) / 0.6);
}
.cell-available:hover {
  background-color: hsl(var(--success) / 0.26);
}

.cell-booked {
  background-color: hsl(var(--warning) / 0.16);
  color: hsl(var(--warning));
  border: 1.5px solid hsl(var(--warning) / 0.6);
}

.cell-approved {
  background-color: hsl(var(--info) / 0.16);
  color: hsl(var(--info));
  border: 1.5px solid hsl(var(--info) / 0.6);
}

.cell-unavailable {
  background-color: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  border: 1px solid hsl(var(--border) / 0.6);
}

/* Grid columns matching 6 days or 5 days */
.grid-cols-6-custom {
  grid-template-columns: 80px repeat(5, minmax(0, 1fr));
}

/* ============================================================
   KETERBACAAN FONT
   Naikkan ukuran font yang terlalu kecil agar mudah dibaca.
   Memakai !important agar mengalahkan utility Tailwind (CDN)
   yang di-inject setelah file ini.
   ============================================================ */
.text-\[8px\]  { font-size: 0.72rem !important;  line-height: 1rem !important; }   /* ~11.5px */
.text-\[9px\]  { font-size: 0.75rem !important;  line-height: 1.05rem !important; } /* 12px */
.text-\[10px\] { font-size: 0.8125rem !important; line-height: 1.15rem !important; }/* 13px */
.text-\[11px\] { font-size: 0.8125rem !important; line-height: 1.2rem !important; } /* 13px */
.text-xs       { font-size: 0.8125rem !important; line-height: 1.2rem !important; } /* 12px -> 13px */
.text-sm       { font-size: 0.9375rem !important; line-height: 1.35rem !important; }/* 14px -> 15px */
