/* public/app.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Sarabun:wght@300;400;500;600;700&display=swap');

body {
  font-family: 'Outfit', 'Sarabun', sans-serif;
  background-color: #f8fafc;
}

/* เอฟเฟกต์การเปลี่ยนสีและการทำอนิเมชันสำหรับ UX ระดับสูง */
.transition-all-300 {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* กล่องดีไซน์กระจกฝ้า (Glassmorphism) สำหรับหน้า Dashboard */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* แผงลอยสีทึบแบบกระจกเข้ม */
.dark-glass-panel {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* แถบสไลด์ขอบจอแบบแบน */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* กรอบลงนามลายเซ็นแคนวาสแบบทัชสกรีน */
.sig-canvas-container {
  position: relative;
  width: 100%;
  height: 140px;
  background-color: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.sig-canvas-container:hover {
  border-color: #6366f1;
}

.sig-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none; /* ปิดการสกรอลล์จอขณะลงนามบนสมาร์ตโฟน */
}

/* อนิเมชันแสดงความคืบหน้าของกระบวนการทำรายการ */
.progress-bar-container {
  height: 4px;
  width: 100%;
  background-color: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.progress-bar-value {
  width: 0%;
  height: 100%;
  background-color: #4f46e5;
  transition: width 0.3s ease;
}

/* กรอบไฮไลต์สีกระดานเซ็นเพื่อกระตุ้นให้ผู้ใช้วาดภาพ */
@keyframes pulse-border {
  0% {
    border-color: rgba(99, 102, 241, 0.3);
  }
  50% {
    border-color: rgba(99, 102, 241, 1);
  }
  100% {
    border-color: rgba(99, 102, 241, 0.3);
  }
}

.pulse-border-active {
  animation: pulse-border 2s infinite;
}
