/* Personal Work Portfolio - Custom Styles & Print Engine */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Prompt:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Sarabun:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --secondary: #0f172a;
  --accent: #0ea5e9;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --bg-main: #f8fafc;
  --card-bg: #ffffff;
}

*, button, input, select, textarea {
  font-family: 'Prompt', 'Plus Jakarta Sans', 'Sarabun', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
  font-family: 'Prompt', 'Plus Jakarta Sans', 'Sarabun', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-main);
  color: #1e293b;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Badge and Tag styles */
.badge-category {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  transition: all 0.15s ease-in-out;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.75rem;
  color: #334155;
  font-weight: 500;
  transition: all 0.15s ease;
}
.skill-chip:hover {
  background-color: #e2e8f0;
  border-color: #cbd5e1;
  color: #0f172a;
}
.skill-chip.active {
  background-color: #dbeafe;
  border-color: #93c5fd;
  color: #1d4ed8;
  font-weight: 600;
}

/* Before / After Comparison Styles */
.before-card {
  background: linear-gradient(135deg, #fff1f2 0%, #ffffff 100%);
  border: 1px solid #fecdd3;
}
.after-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  border: 1px solid #bbf7d0;
}

.diff-positive {
  color: #16a34a;
  background-color: #dcfce7;
}
.diff-negative {
  color: #dc2626;
  background-color: #fee2e2;
}

/* Print Styles for CV / Resume & Project Export */
@media print {
  @page {
    size: A4 portrait;
    margin: 12mm 15mm 15mm 15mm;
  }
  
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt !important;
  }
  
  .no-print,
  #sidebar,
  #top-header,
  #toast-container,
  .action-buttons,
  button,
  .modal-backdrop {
    display: none !important;
  }
  
  #main-content {
    margin-left: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  
  .print-only {
    display: block !important;
  }
  
  .print-page-break {
    page-break-before: always;
  }
  
  .cv-container {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    width: 100% !important;
  }
  
  .card, .project-card, .table-container {
    box-shadow: none !important;
    border: 1px solid #e2e8f0 !important;
    break-inside: avoid;
  }

  a {
    text-decoration: none !important;
    color: inherit !important;
  }
}

/* Toast Notification animations */
.toast-enter {
  transform: translateY(-20px);
  opacity: 0;
  transition: transform 0.25s ease-out, opacity 0.25s ease-out;
}
.toast-show {
  transform: translateY(0);
  opacity: 1;
}
.toast-exit {
  transform: translateY(-20px);
  opacity: 0;
  transition: transform 0.2s ease-in, opacity 0.2s ease-in;
}

/* Interactive Tabs */
.nav-tab.active {
  color: #2563eb;
  border-bottom: 2px solid #2563eb;
  font-weight: 600;
}

/* KPI Card gradient accents */
.kpi-card-blue {
  border-left: 4px solid #3b82f6;
}
.kpi-card-emerald {
  border-left: 4px solid #10b981;
}
.kpi-card-amber {
  border-left: 4px solid #f59e0b;
}
.kpi-card-purple {
  border-left: 4px solid #8b5cf6;
}
.kpi-card-rose {
  border-left: 4px solid #f43f5e;
}
.kpi-card-indigo {
  border-left: 4px solid #6366f1;
}

/* Glass effect for modals */
.modal-overlay {
  backdrop-filter: blur(4px);
  background-color: rgba(15, 23, 42, 0.6);
}
