/* IDCG (Insight Development Consulting Group) - Brand Theme & Stylesheet */
:root {
  --idcg-navy-dark: #0a192f;
  --idcg-navy: #0f2942;
  --idcg-navy-light: #1e3a5f;
  --idcg-orange: #f15a24;
  --idcg-orange-hover: #d94814;
  --idcg-orange-light: #fff7ed;
  --idcg-orange-border: #fdba74;
  --idcg-green: #0d9488;
  --idcg-green-light: #f0fdf4;
  --idcg-slate-50: #f8fafc;
  --idcg-slate-100: #f1f5f9;
  --idcg-slate-200: #e2e8f0;
  --idcg-slate-300: #cbd5e1;
  --idcg-slate-600: #475569;
  --idcg-slate-700: #334155;
  --idcg-slate-800: #1e293b;
  --idcg-slate-900: #0f172a;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--idcg-slate-50);
  color: var(--idcg-slate-900);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

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

/* Header & Navigation */
.idcg-header {
  background: linear-gradient(135deg, #091a2e 0%, #0f2942 60%, #163659 100%);
  border-bottom: 3px solid var(--idcg-orange);
}

.idcg-badge-orange {
  background-color: rgba(241, 90, 36, 0.15);
  color: #ea580c;
  border: 1px solid rgba(241, 90, 36, 0.3);
}

.idcg-btn-primary {
  background: linear-gradient(135deg, #f15a24 0%, #ea580c 100%);
  color: #ffffff;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 4px rgba(241, 90, 36, 0.25);
}
.idcg-btn-primary:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  box-shadow: 0 4px 8px rgba(241, 90, 36, 0.35);
  transform: translateY(-1px);
}

.idcg-btn-navy {
  background: linear-gradient(135deg, #0f2942 0%, #1e3a5f 100%);
  color: #ffffff;
  transition: all 0.2s ease-in-out;
}
.idcg-btn-navy:hover {
  background: linear-gradient(135deg, #0a192f 0%, #0f2942 100%);
  box-shadow: 0 2px 6px rgba(15, 41, 66, 0.3);
}

/* Navigation Tabs */
.nav-tab-btn {
  position: relative;
  transition: all 0.2s ease;
  font-weight: 500;
}
.nav-tab-btn.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-bottom: 3px solid var(--idcg-orange);
}
.nav-tab-btn:not(.active) {
  color: #cbd5e1;
}
.nav-tab-btn:not(.active):hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

/* Metric Cards */
.kpi-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(15, 41, 66, 0.08);
}

/* Table Styles */
.idcg-table-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.idcg-table thead th {
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 2px solid #e2e8f0;
  padding: 0.85rem 1rem;
  white-space: nowrap;
}
.idcg-table tbody tr {
  transition: background-color 0.15s ease;
  border-bottom: 1px solid #f1f5f9;
}
.idcg-table tbody tr:hover {
  background-color: #f8fafc;
}

/* Relevance Badges */
.badge-relevance-high {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.badge-relevance-medium {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}
.badge-relevance-low {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

/* Status Selectors */
.status-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  border-width: 1px;
}
.status-discovered {
  background-color: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}
.status-review {
  background-color: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}
.status-go {
  background-color: #f0fdf4;
  color: #15803d;
  border-color: #86efac;
}
.status-prep {
  background-color: #fdf4ff;
  color: #a21caf;
  border-color: #f0abfc;
}
.status-submitted {
  background-color: #fff7ed;
  color: #c2410c;
  border-color: #fdba74;
}
.status-won {
  background-color: #ecfdf5;
  color: #047857;
  border-color: #34d399;
}
.status-nogo {
  background-color: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

/* Kanban Board */
.kanban-column {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  min-height: 520px;
  max-height: 720px;
  display: flex;
  flex-direction: column;
}
.kanban-cards-wrapper {
  overflow-y: auto;
  flex: 1;
  padding: 0.65rem;
}
.kanban-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.85rem;
  margin-bottom: 0.65rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.kanban-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(15, 41, 66, 0.1);
  border-color: var(--idcg-orange);
}

/* Modals */
.modal-backdrop {
  background-color: rgba(10, 25, 47, 0.7);
  backdrop-filter: blur(4px);
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-window {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalEnter 0.2s ease-out;
}
@keyframes modalEnter {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Toast Alerts */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toast-msg {
  background: #0f2942;
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-left: 4px solid var(--idcg-orange);
  animation: slideInRight 0.2s ease;
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
