/**
 * QuickShift - Custom Design System & Tailwind Overrides
 * Tailored for Indian Recruitment Portal
 * Palette: 
 *   Primary (Navy): #174EA6
 *   Secondary (Slate Blue): #196EA9
 *   Accent (Amber/Orange): #D9750D
 *   Neutral Background: #F5F7FA
 *   Dark Slate Text: #1F2937
 */

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

:root {
  --primary: #174EA6;
  --primary-hover: #123e85;
  --secondary: #196EA9;
  --secondary-hover: #135583;
  --accent: #D9750D;
  --accent-hover: #b86109;
  --bg-neutral: #F5F7FA;
  --text-main: #1F2937;
  --text-muted: #4B5563;
  --border-subtle: #E2E8F0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-neutral);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

/* Custom Palette Utilities */
.bg-brand-primary { background-color: #174EA6; }
.bg-brand-primary-hover:hover { background-color: #123e85; }
.text-brand-primary { color: #174EA6; }
.border-brand-primary { border-color: #174EA6; }

.bg-brand-secondary { background-color: #196EA9; }
.text-brand-secondary { color: #196EA9; }
.border-brand-secondary { border-color: #196EA9; }

.bg-brand-accent { background-color: #D9750D; }
.bg-brand-accent-hover:hover { background-color: #b86109; }
.text-brand-accent { color: #D9750D; }
.border-brand-accent { border-color: #D9750D; }

.bg-brand-neutral { background-color: #F5F7FA; }

/* Accessible Focus States */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #D9750D;
  outline-offset: 2px;
}

/* Smooth Scrolling & Scrollbars */
html {
  scroll-behavior: smooth;
}

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: #EDF2F7;
}

::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Indian Notice Period Badge Variations */
.badge-immediate {
  background-color: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.badge-15days {
  background-color: #FFFBEB;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.badge-standard-notice {
  background-color: #EFF6FF;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
}

/* Card Hover Elevate */
.card-hover-elevate {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-hover-elevate:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(23, 78, 166, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

/* Kanban ATS Pipeline Column Styles */
.kanban-column {
  min-height: 520px;
  transition: background-color 0.2s ease;
}

.kanban-column.drag-over {
  background-color: #EBF8FF !important;
  border: 2px dashed #196EA9 !important;
}

.kanban-card {
  cursor: grab;
  user-select: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.kanban-card:active {
  cursor: grabbing;
}

.kanban-card.dragging {
  opacity: 0.45;
  transform: scale(0.97);
}

/* Tag Chips */
.skill-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  background-color: #F1F5F9;
  color: #334155;
  border: 1px solid #E2E8F0;
  transition: all 0.15s ease;
}

.skill-tag:hover {
  background-color: #E2E8F0;
  border-color: #CBD5E1;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  animation: toastSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastSlideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Native dialog backdrop styling */
dialog::backdrop {
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Pulse animation for high priority badges */
@keyframes pulse-subtle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.03); }
}

.animate-pulse-subtle {
  animation: pulse-subtle 2.5s infinite ease-in-out;
}
