@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg: #09090b;
  --panel-bg: #121216;
  --card-bg: rgba(24, 24, 29, 0.7);
  --border: #27272a;
  --border-focus: #6366f1;
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: rgba(9, 9, 11, 0.8);
}
::-webkit-scrollbar-thumb {
  background: #3f3f46;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #71717a;
}

/* Glassmorphism & High-Ticket Polish */
.glass-panel {
  background: rgba(18, 18, 22, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
}

.glass-card {
  background: rgba(24, 24, 30, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.5), inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: rgba(99, 102, 241, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.7), inset 0 1px 0 0 rgba(99, 102, 241, 0.2);
}

/* Kanban Columns */
.kanban-col {
  min-width: 320px;
  max-width: 330px;
  background: rgba(18, 18, 24, 0.5);
  border: 1px solid rgba(39, 39, 42, 0.8);
  border-radius: 16px;
}

/* 1-Click WhatsApp Button */
.whatsapp-btn {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  transition: all 0.2s ease;
}
.whatsapp-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

/* Slide-over Drawer */
.drawer-backdrop {
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}
.drawer-content {
  background-color: #101014;
  border-left: 1px solid var(--border);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.8);
}

/* Drag and Drop styling */
.dragging {
  opacity: 0.4;
  transform: scale(0.96);
}
.drag-over {
  background: rgba(99, 102, 241, 0.12) !important;
  border: 1px dashed #6366f1 !important;
}

/* ========================================================= */
/* INVOICING & RECEIPT STUDIO LIVE A4 CANVAS */
/* ========================================================= */
.a4-canvas-container {
  background: #09090b;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid #27272a;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  max-height: calc(100vh - 210px);
}

.a4-paper {
  width: 210mm;
  min-height: 297mm;
  background: #ffffff;
  color: #111827;
  padding: 16mm 18mm;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8);
  border-radius: 2px;
  font-family: var(--font-sans);
  display: flex;
  flex-direction: column;
  position: relative;
  font-size: 12.5px;
  line-height: 1.5;
  margin: 0 auto;
}

/* High-Quality Print Styles */
@media print {
  body * {
    visibility: hidden;
  }
  .a4-paper, .a4-paper * {
    visibility: visible;
  }
  .a4-paper {
    position: absolute;
    left: 0;
    top: 0;
    width: 210mm;
    min-height: 297mm;
    margin: 0;
    padding: 15mm 15mm;
    box-shadow: none;
    border: none;
  }
  @page {
    size: A4;
    margin: 0;
  }
}
