/* ==========================================================================
   Blucher BuildTrack - Executive Construction SaaS & 2-Way LINE AI Bot
   Global Styles & Executive Theme (Including Unified LINE 7-Group Inbox)
   ========================================================================== */

:root {
  --brand-navy: #0b192c;
  --brand-navy-light: #15263f;
  --brand-blue: #0284c7;
  --brand-blue-hover: #0369a1;
  --brand-accent: #0ea5e9;
  --brand-line: #06c755;
  --bg-slate: #f8fafc;
  --card-border: #e2e8f0;
}

/* Custom Smooth Typography & Rendering */
html {
  font-family: 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Kanit', sans-serif;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(241, 245, 249, 0.6);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Dark sidebar scrollbar */
.dark-scrollbar::-webkit-scrollbar-track {
  background: #0b192c;
}
.dark-scrollbar::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 9999px;
}
.dark-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-panel-dark {
  background: rgba(11, 25, 44, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(51, 65, 85, 0.6);
}

/* Executive Card Shadow & Elevation */
.card-elevation {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-elevation:hover {
  box-shadow: 0 6px 16px -2px rgba(14, 165, 233, 0.08), 0 2px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

/* Pulse Glows */
@keyframes pulse-subtle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.05); }
}
.animate-pulse-subtle {
  animation: pulse-subtle 2.5s infinite ease-in-out;
}

@keyframes ping-slow {
  0% { transform: scale(1); opacity: 0.8; }
  80%, 100% { transform: scale(2.2); opacity: 0; }
}
.animate-ping-slow {
  animation: ping-slow 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Kanban Board Styling */
.kanban-col {
  min-height: 480px;
  transition: background-color 0.2s ease;
}
.kanban-card {
  transition: all 0.2s ease;
  cursor: grab;
}
.kanban-card:active {
  cursor: grabbing;
}
.kanban-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.1);
}

/* Badge Glows */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* LINE Unified Inbox Styles */
.line-room-active {
  background-color: #f0fdf4 !important;
  border-left: 4px solid #06c755 !important;
}

.line-bubble-boss {
  background-color: #06c755;
  color: #ffffff;
  border-radius: 1.25rem 1.25rem 0.25rem 1.25rem;
}

.line-bubble-other {
  background-color: #f1f5f9;
  color: #1e293b;
  border-radius: 1.25rem 1.25rem 1.25rem 0.25rem;
  border: 1px solid #e2e8f0;
}

.line-bubble-abdul {
  background-color: #eff6ff;
  color: #1e3a8a;
  border: 1px solid #bfdbfe;
  border-radius: 1.25rem 1.25rem 1.25rem 0.25rem;
}

/* Toast Container */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.toast-msg {
  pointer-events: auto;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom Table Row Striping & Active States */
.table-row-hover:hover {
  background-color: #f8fafc;
}

/* Range input accent */
input[type="range"] {
  accent-color: #0284c7;
}

/* Code & Terminal simulation font */
.font-mono-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Print CSS for Clean A4 / PDF Export */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt !important;
  }
  aside,
  header,
  #floatingAssistantBtn,
  #assistantDrawer,
  .no-print,
  #toast-container,
  button,
  .action-buttons {
    display: none !important;
  }
  main {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    overflow: visible !important;
  }
  .print-page-break {
    page-break-before: always;
  }
  .card-elevation {
    box-shadow: none !important;
    border: 1px solid #cbd5e1 !important;
  }
}
