/* SmartDoc & Tenant Pro - Bright Vibrant Pop Design System */
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700;800&family=Sarabun:wght@300;400;500;600;700&display=swap');

:root {
  --font-ui: 'Prompt', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-doc: 'Sarabun', 'TH Sarabun New', sans-serif;
  
  /* Bright Vibrant Theme Palette */
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-desk: #f1f5f9;
  --border-light: #e2e8f0;
  --border-soft: #cbd5e1;
  
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  /* Bright Pastel Accent Colors */
  --pastel-blue-bg: #eff6ff;
  --pastel-blue-border: #bfdbfe;
  --pastel-blue-text: #2563eb;

  --pastel-mint-bg: #ecfdf5;
  --pastel-mint-border: #a7f3d0;
  --pastel-mint-text: #059669;

  --pastel-lilac-bg: #f5f3ff;
  --pastel-lilac-border: #ddd6fe;
  --pastel-lilac-text: #7c3aed;

  --pastel-peach-bg: #fff7ed;
  --pastel-peach-border: #fed7aa;
  --pastel-peach-text: #ea580c;

  --pastel-rose-bg: #fff1f2;
  --pastel-rose-border: #fecdd3;
  --pastel-rose-text: #e11d48;

  /* Vibrant Glow Shadows */
  --shadow-cozy: 0 4px 20px -2px rgba(99, 102, 241, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  --shadow-float: 0 14px 34px -4px rgba(99, 102, 241, 0.12), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
}

body {
  font-family: var(--font-ui);
  background-color: var(--bg-main);
  color: var(--text-main);
  -webkit-tap-highlight-color: transparent;
  line-height: 1.6;
}

/* Glassmorphism Navigation */
.glass-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 2px 14px rgba(99, 102, 241, 0.04);
}

.glass-nav {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

/* Cozy Floating Cards */
.card-cozy {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-cozy);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-cozy:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-float);
  border-color: #cbd5e1;
}

/* Pill Tabs with Vibrant Active Glow */
.nav-pill {
  padding: 0.5rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.2s ease;
  color: #64748b;
}

.nav-pill:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

.nav-pill.active {
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35) !important;
}

/* A4 Executive Desk Workspace */
.a4-desk-workspace {
  background: radial-gradient(circle at 50% 50%, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 1.75rem;
  padding: 2.5rem 1.5rem;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.03);
}

.editor-a4-sheet, .doc-paper {
  font-family: var(--font-doc);
  background: #ffffff;
  width: 100%;
  max-width: 210mm;
  min-height: 297mm;
  margin: 0 auto;
  padding: 22mm 20mm;
  box-sizing: border-box;
  color: #1c1917;
  line-height: 1.75;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(60, 50, 40, 0.04), 0 12px 32px -4px rgba(60, 50, 40, 0.09), 0 25px 60px -12px rgba(60, 50, 40, 0.12);
  outline: none;
  transition: box-shadow 0.25s ease;
}

.editor-a4-sheet:focus {
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.45), 0 16px 40px -6px rgba(60, 50, 40, 0.12);
}

/* Print Optimization - 100% Clean Professional Documents without Browser Header/Footer */
@media print {
  html, body {
    background: white !important;
    padding: 0 !important;
    margin: 0 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .no-print {
    display: none !important;
  }
  .a4-desk-workspace {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    display: block !important;
    overflow: visible !important;
  }
  .lg\:col-span-7, .tab-content {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .editor-a4-sheet, .doc-paper {
    box-shadow: none !important;
    border: none !important;
    margin: 0 auto !important;
    padding: 18mm 20mm !important;
    width: 100% !important;
    max-width: 210mm !important;
    min-height: 297mm !important;
    page-break-after: avoid;
  }
  /* Setting page margin to 0 suppresses browser default header (Date/Title) and footer (URL/Page#) */
  @page {
    size: A4 portrait;
    margin: 0 !important;
  }
}


/* Pastel Micro Badges */
.badge-pastel-mint {
  background-color: var(--pastel-mint-bg);
  border: 1px solid var(--pastel-mint-border);
  color: var(--pastel-mint-text);
}

.badge-pastel-blue {
  background-color: var(--pastel-blue-bg);
  border: 1px solid var(--pastel-blue-border);
  color: var(--pastel-blue-text);
}

.badge-pastel-lilac {
  background-color: var(--pastel-lilac-bg);
  border: 1px solid var(--pastel-lilac-border);
  color: var(--pastel-lilac-text);
}

.badge-pastel-peach {
  background-color: var(--pastel-peach-bg);
  border: 1px solid var(--pastel-peach-border);
  color: var(--pastel-peach-text);
}

.badge-pastel-rose {
  background-color: var(--pastel-rose-bg);
  border: 1px solid var(--pastel-rose-border);
  color: var(--pastel-rose-text);
}

/* Minimal Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #d6cfc4;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a8a29e;
}

/* Tab Transition */
.tab-content {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Drawer Transitions */
.drawer-backdrop {
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.drawer-panel {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========================================================
   CUTE PASTEL MINIMALIST PIN LOGIN & LOCK SCREEN
   ======================================================== */
.pin-glass-backdrop {
  background: radial-gradient(circle at 10% 20%, rgba(253, 242, 248, 0.96) 0%, rgba(245, 243, 255, 0.96) 45%, rgba(238, 242, 255, 0.96) 100%);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}

.pin-glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 25px 60px -15px rgba(124, 58, 237, 0.16), 0 10px 25px -5px rgba(236, 72, 153, 0.1);
  border-radius: 2.25rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 9999px;
  border: 2px solid #ddd6fe;
  background-color: transparent;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pin-dot.filled {
  border-color: #7c3aed;
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  transform: scale(1.28);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.45);
}

.pin-dot.success {
  border-color: #059669;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  transform: scale(1.35);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.45);
}

.pin-btn {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(243, 232, 255, 0.9);
  color: #334155;
  font-weight: 700;
  font-size: 1.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.05);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 640px) {
  .pin-btn {
    width: 4.5rem;
    height: 4.5rem;
    font-size: 1.5rem;
  }
}

.pin-btn:hover {
  background: #faf5ff;
  border-color: #d8b4fe;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(168, 85, 247, 0.15);
  color: #6b21a8;
}

.pin-btn:active {
  transform: scale(0.92);
  background: #f3e8ff;
  border-color: #c084fc;
}

.pin-btn-sub {
  font-size: 0.55rem;
  font-weight: 600;
  color: #a855f7;
  letter-spacing: 0.08em;
  line-height: 1;
  margin-top: 1px;
}

/* Cute Shake Animation on Wrong PIN */
@keyframes cuteShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-9px); }
  40%, 80% { transform: translateX(9px); }
}

.pin-shake {
  animation: cuteShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Cute floating animation for mascot */
@keyframes cuteFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(1deg); }
}

.mascot-float {
  animation: cuteFloat 3s ease-in-out infinite;
}

/* Cute blink animation */
@keyframes eyeBlink {
  0%, 90%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.1); }
}

.cat-eye {
  animation: eyeBlink 3.5s infinite;
  transform-origin: center;
}

/* ========================================================
   SOFT 3D & CLAYMORPHISM DIMENSIONAL ICON SYSTEM
   ======================================================== */
.icon-box-3d {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.25rem;
  box-shadow: 
    0 8px 16px -4px rgba(124, 58, 237, 0.12),
    0 4px 6px -2px rgba(0, 0, 0, 0.04),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -2px 4px 0 rgba(0, 0, 0, 0.06);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.icon-box-3d:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 14px 24px -4px rgba(124, 58, 237, 0.2),
    0 6px 10px -2px rgba(0, 0, 0, 0.05),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.9);
}

/* Claymorphic Badges & Buttons */
.badge-clay {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.75rem;
  box-shadow: 
    0 4px 10px -2px rgba(0, 0, 0, 0.06),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1.5px 3px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.badge-clay:hover {
  transform: translateY(-1.5px) scale(1.03);
}

.btn-clay {
  border-radius: 9999px;
  font-weight: 700;
  box-shadow: 
    0 6px 16px -2px rgba(124, 58, 237, 0.2),
    0 2px 4px 0 rgba(0, 0, 0, 0.04),
    inset 0 1.5px 2px 0 rgba(255, 255, 255, 0.7),
    inset 0 -2px 4px 0 rgba(0, 0, 0, 0.1);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-clay:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 10px 22px -2px rgba(124, 58, 237, 0.28),
    inset 0 1.5px 2px 0 rgba(255, 255, 255, 0.8);
}

.btn-clay:active {
  transform: translateY(1px) scale(0.97);
  box-shadow: 
    0 2px 6px 0 rgba(124, 58, 237, 0.15),
    inset 0 2px 4px 0 rgba(0, 0, 0, 0.15);
}

/* 3D Floating Clouds & Pulse */
@keyframes cloudDrift {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.03); }
}

.cloud-drift {
  animation: cloudDrift 4s ease-in-out infinite;
}

/* Glow Pill indicator for Online status */
.pulse-online {
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* 3D Pastel Icon Boxes */
.icon-3d-purple {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%) !important;
  border: 1px solid #ddd6fe !important;
  color: #7c3aed !important;
}

.icon-3d-mint {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%) !important;
  border: 1px solid #a7f3d0 !important;
  color: #059669 !important;
}

.icon-3d-sky {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
  border: 1px solid #bae6fd !important;
  color: #0284c7 !important;
}

.icon-3d-peach {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%) !important;
  border: 1px solid #fed7aa !important;
  color: #ea580c !important;
}

.icon-3d-rose {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%) !important;
  border: 1px solid #fecdd3 !important;
  color: #e11d48 !important;
}

/* 100% Online Cloud Card with Claymorphic Depth */
.card-cloud-live {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 50%, #f8fafc 100%) !important;
  border: 1.5px solid #bbf7d0 !important;
  box-shadow: 
    0 12px 28px -6px rgba(16, 185, 129, 0.15),
    0 8px 12px -6px rgba(14, 165, 233, 0.08),
    inset 0 1px 2px 0 rgba(255, 255, 255, 0.95),
    inset 0 -2px 4px 0 rgba(16, 185, 129, 0.05) !important;
}



