/* S2S Redesign — Custom Styles (on top of Tailwind CDN) */

:root {
  --color-primary: #4F46E5;
  --color-primary-hover: #4338CA;
  --color-primary-light: #EEF2FF;
  --color-secondary: #334155;
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-danger: #F43F5E;
  --color-info: #06B6D4;
  /* Billing status colors */
  --color-billing-red: #EF4444;
  --color-billing-orange: #F97316;
  --color-billing-green: #22C55E;
  --color-billing-aqua: #06B6D4;
  --color-billing-plum: #A855F7;
  --color-billing-pink: #EC4899;
  --color-billing-tan: #D2B48C;
  --color-billing-silver: #94A3B8;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Sidebar */
.sidebar {
  width: 260px;
  transition: width 0.2s ease;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar.collapsed {
  width: 64px;
}
.sidebar.collapsed .sidebar-label {
  display: none;
}

/* Shell layout */
.shell-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  grid-template-rows: 64px 1fr;
  min-height: 100vh;
}
.shell-layout.sidebar-collapsed {
  grid-template-columns: 64px 1fr;
}

/* Card hover */
.card-hover {
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card-hover:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

/* Tab styles */
.tab-active {
  border-bottom: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: 500;
}
.tab-inactive {
  border-bottom: 2px solid transparent;
  color: #64748B;
}
.tab-inactive:hover {
  color: #334155;
  border-bottom-color: #CBD5E1;
}

/* Modal backdrop */
.modal-backdrop {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
}

/* Drawer */
.drawer {
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
.drawer.open {
  transform: translateX(0);
}

/* Sidebar nav section (Staff portal accordion) */
.nav-section {
  padding-top: 8px;
}
.nav-section-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748B; /* slate-500 */
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-section-header:hover {
  color: #CBD5E1; /* slate-300 */
  background: #1E293B; /* slate-800 */
}
.nav-section-header .chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.15s ease;
  flex-shrink: 0;
}
.nav-section-header[aria-expanded="true"] .chevron {
  transform: rotate(90deg);
}
.nav-section-children {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}
.sidebar.collapsed .nav-section-header {
  justify-content: center;
  padding: 6px 4px;
}
.sidebar.collapsed .nav-section-header > span:first-child,
.sidebar.collapsed .nav-section-header .chevron {
  display: none;
}

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.25rem;
}

/* Progress bar */
.progress-bar {
  height: 8px;
  border-radius: 4px;
  background: #E2E8F0;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

/* Form wizard steps */
.step-indicator {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
}
.step-active {
  background: var(--color-primary);
  color: white;
}
.step-complete {
  background: var(--color-success);
  color: white;
}
.step-pending {
  background: #E2E8F0;
  color: #64748B;
}

/* Toast notification */
.toast {
  animation: slideIn 0.3s ease;
}
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Data table */
.data-table th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748B;
}
.data-table tr:hover td {
  background: #F8FAFC;
}

/* Performance chart placeholder */
.chart-placeholder {
  background: linear-gradient(135deg, #EEF2FF 0%, #F8FAFC 100%);
  border: 1px dashed #C7D2FE;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6366F1;
  font-weight: 500;
}

/* ─── Hot Zone System ────────────────────────────────────────────────────── */

/* Toggle button (fixed bottom-right) */
.hotzone-toggle-btn {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.15s ease;
}
.hotzone-toggle-btn:hover {
  border-color: #818cf8;
  color: #4f46e5;
}
.hotzone-toggle-btn.active {
  background: #4f46e5;
  border-color: #4f46e5;
  color: white;
}

/* Hot zone highlights (only visible when toggled on) */
.hotzones-active .hotzone {
  outline: 2px dashed #818cf8 !important;
  outline-offset: 2px;
  position: relative;
}
.hotzones-active .hotzone::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #1e1b4b;
  color: white;
  font-size: 10px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 9998;
}
.hotzones-active .hotzone:hover::after {
  opacity: 1;
}

/* Tooltips always available on hover (subtle) */
.hotzone {
  position: relative;
}
.hotzone[data-tooltip]:hover::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 6px;
  border: 1px solid rgba(99, 102, 241, 0.3);
  pointer-events: none;
}

