/**
 * Enterprise Design DNA - CSS Stylesheet
 * Bahagian Khidmat Pengurusan (BKP)
 */

:root {
  --color-slate-900: #0f172a;
  --color-slate-800: #1e293b;
  --color-slate-700: #334155;
  --color-slate-600: #475569;
  --color-slate-500: #64748b;
  --color-slate-200: #e2e8f0;
  --color-slate-50: #f8fafc;
  --color-blue-600: #2563eb;
  --color-blue-500: #3b82f6;
  --color-emerald-600: #059669;
  --color-amber-600: #d97706;
  --color-rose-600: #e11d48;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--color-slate-50);
  color: var(--color-slate-800);
}

/* 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;
}

/* 9-Grid Position Selector */
.grid-position-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}
.grid-position-cell:hover {
  background-color: #e2e8f0;
  border-color: #94a3b8;
}
.grid-position-cell.active {
  background-color: #2563eb;
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

/* Drag and Drop Zone */
.drop-zone {
  border: 2px dashed #cbd5e1;
  transition: all 0.2s ease;
  background: #ffffff;
}
.drop-zone.dragover {
  border-color: #2563eb;
  background-color: #eff6ff;
}

/* Studio Canvas Preview Container */
.canvas-preview-box {
  background-color: #0B1120;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Range Slider Styling */
input[type="range"] {
  accent-color: #2563eb;
}

/* Pulse badge animation */
@keyframes soft-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.animate-soft-pulse {
  animation: soft-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
