/* ID Workbench v2 - Design Tokens & Custom Styles */
:root {
  --bg-canvas: #fafafa;
  --bg-card: #ffffff;
  --border-subtle: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --primary: #4338ca;
  --primary-hover: #3730a3;
  --primary-light: #eef2ff;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  letter-spacing: -0.011em;
}

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

/* Architectural Card & Panel */
.white-card {
  background-color: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.05), 0 1px 2px -1px rgba(15, 23, 42, 0.03);
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.white-card-interactive {
  background-color: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.05), 0 1px 2px -1px rgba(15, 23, 42, 0.03);
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.white-card-interactive:hover {
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

/* Form Inputs with Inset Grounding */
.clean-input {
  width: 100%;
  background-color: rgba(248, 250, 252, 0.7);
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  color: #0f172a;
  outline: none;
  transition: all 0.15s ease;
}
.clean-input:focus {
  background-color: #ffffff;
  border-color: #4338ca;
  box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.12);
}

/* Tactile Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #ffffff;
  background-color: #4338ca;
  border: 1px solid #3730a3;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}
.btn-primary:hover {
  background-color: #3730a3;
}
.btn-primary:active {
  background-color: #312e81;
  transform: translateY(0.5px);
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #334155;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgba(15, 23, 42, 0.02);
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}
.btn-secondary:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}
.btn-secondary:active {
  background-color: #f1f5f9;
  transform: translateY(0.5px);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #be123c;
  background-color: #ffffff;
  border: 1px solid #fecdd3;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}
.btn-danger:hover {
  background-color: #fff1f2;
  border-color: #fda4af;
}

/* Status Badges */
.badge-done {
  font-size: 11px;
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  border-radius: 9999px;
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-waiting {
  font-size: 11px;
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  border-radius: 9999px;
  background-color: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-blocked {
  font-size: 11px;
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  border-radius: 9999px;
  background-color: #fff1f2;
  color: #9f1239;
  border: 1px solid #fecdd3;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-active {
  font-size: 11px;
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  border-radius: 9999px;
  background-color: #eef2ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-neutral {
  font-size: 11px;
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  border-radius: 9999px;
  background-color: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Kanban Column */
.kanban-column {
  min-width: 280px;
  max-width: 280px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 12rem);
}
.kanban-body {
  overflow-y: auto;
  padding: 0.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

/* Toast Container */
#toast-container {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.toast-item {
  pointer-events: auto;
  min-width: 280px;
  max-width: 400px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.625rem;
  padding: 0.75rem 1rem;
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  animation: toastIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
