/* ====================================================
   Workflow — Team Allocation Game Styles
   Bright, playful theme with drag-drop feedback
   ==================================================== */

:root {
  --wf-bg:         #f2f4ff;
  --wf-bg2:        #fdf9f4;
  --wf-surface:    #ffffff;
  --wf-surface2:   #f7f9ff;
  --wf-border:     rgba(80, 100, 180, 0.12);
  --wf-border2:    rgba(80, 100, 180, 0.22);
  --wf-text:       #1a1c35;
  --wf-muted:      rgba(26, 28, 53, 0.5);
  --wf-accent:     #4a6cf7;
  --wf-success:    #00b894;
  --wf-warning:    #f5a623;
  --wf-error:      #e74c3c;
  --wf-shadow:     0 4px 20px rgba(80, 100, 180, 0.10);
  --wf-shadow-lg:  0 16px 50px rgba(80, 100, 180, 0.16);

  /* Team member colors */
  --designer-color:       #7b68ee;
  --designer-color-dim:   rgba(123, 104, 238, 0.1);
  --senior-color:         #f5a623;
  --senior-color-dim:     rgba(245, 166, 35, 0.1);
  --leader-color:         #e74c3c;
  --leader-color-dim:     rgba(231, 76, 60, 0.1);

  /* Project colors */
  --project1-accent:      #4a6cf7;
  --project2-accent:      #00b894;
  --project3-accent:      #f5a623;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body.wf-page {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #f2f4ff 0%, #faf8ff 50%, #fff9f4 100%);
  min-height: 100vh;
  color: var(--wf-text);
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: 'Cal Sans', 'Inter', sans-serif; font-weight: 700; }

/* ========== HEADER ========== */
.wf-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(80, 100, 180, 0.1);
}

.wf-back {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--wf-accent);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.2s;
}
.wf-back:hover { color: var(--wf-text); }

.wf-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wf-brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wf-accent);
  box-shadow: 0 0 8px var(--wf-accent);
}
.wf-brand-name {
  font-size: 1rem;
  color: var(--wf-text);
  letter-spacing: 0.5px;
}
.wf-header-spacer { width: 80px; }

/* ========== INTRO ========== */
.wf-intro {
  max-width: 900px;
  margin: 40px auto 0;
  padding: 0 24px 30px;
  text-align: center;
}
.wf-intro h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--wf-text);
  margin-bottom: 12px;
}
.wf-intro p {
  font-size: 1rem;
  color: var(--wf-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ========== MAIN GAME LAYOUT ========== */
.wf-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.wf-container {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

/* ========== TEAM POOL (LEFT) ========== */
.team-pool {
  background: var(--wf-surface);
  border: 1px solid var(--wf-border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--wf-shadow);
  height: fit-content;
  position: sticky;
  top: 80px;
}

.pool-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--wf-border);
}
.pool-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--wf-text);
}
.pool-count {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
  color: var(--wf-muted);
  background: rgba(80, 100, 180, 0.06);
  padding: 2px 8px;
  border-radius: 10px;
}

.pool-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  min-height: 340px;
}

.team-member {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  background: rgba(80, 100, 180, 0.03);
  cursor: grab;
  transition: all 0.15s ease;
  user-select: none;
  position: relative;
}
.team-member:active { cursor: grabbing; }
.team-member.is-dragging {
  opacity: 0.4;
  transform: scale(0.97);
  pointer-events: none;
}

.team-member.is-designer {
  background: var(--designer-color-dim);
}
.team-member.is-designer:hover {
  border-color: var(--designer-color);
  background: var(--designer-color-dim);
}

.team-member.is-senior {
  background: var(--senior-color-dim);
}
.team-member.is-senior:hover {
  border-color: var(--senior-color);
  background: var(--senior-color-dim);
}

.team-member.is-leader {
  background: var(--leader-color-dim);
}
.team-member.is-leader:hover {
  border-color: var(--leader-color);
  background: var(--leader-color-dim);
}

.member-avatar {
  font-size: 1.2rem;
  flex-shrink: 0;
}
.member-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--wf-text);
  flex: 1;
}
.member-role {
  font-size: 0.65rem;
  color: var(--wf-muted);
  font-weight: 500;
}

.pool-hint {
  padding-top: 12px;
  border-top: 1px solid var(--wf-border);
}
.pool-hint p {
  font-size: 0.7rem;
  color: var(--wf-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ========== PROJECTS AREA (CENTER) ========== */
.projects-area {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card {
  background: var(--wf-surface);
  border: 1px solid var(--wf-border);
  border-top: 4px solid var(--project-accent, var(--wf-accent));
  border-radius: 16px;
  padding: 0;
  box-shadow: var(--wf-shadow);
  overflow: hidden;
}

.project-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--wf-border);
  background: rgba(74, 108, 247, 0.02);
}
.project-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--wf-text);
  margin-bottom: 8px;
}
.project-metrics {
  display: flex;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--wf-muted);
}
.metric {
  display: flex;
  align-items: center;
  gap: 4px;
}
.metric-label { font-weight: 600; }
.metric-bar {
  width: 40px;
  height: 4px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 2px;
  overflow: hidden;
}
.metric-fill {
  height: 100%;
  border-radius: 2px;
}
.metric-value { font-weight: 500; }

.project-stages {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 16px;
}

.stage-bucket {
  margin-bottom: 12px;
}
.stage-bucket:last-child { margin-bottom: 0; }

.stage-name {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--wf-muted);
  margin-bottom: 8px;
}

.stage-drop {
  min-height: 80px;
  border: 2px dashed rgba(80, 100, 180, 0.22);
  border-radius: 10px;
  padding: 8px;
  background: rgba(80, 100, 180, 0.02);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stage-drop.drag-over {
  border-color: var(--project-accent, var(--wf-accent));
  border-style: solid;
  background: var(--project-color-dim, rgba(74, 108, 247, 0.08));
  transform: scale(1.01);
}

.assigned-member {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--wf-text);
  cursor: move;
  transition: all 0.15s ease;
}
.assigned-member:hover {
  background: rgba(0, 0, 0, 0.08);
}
.assigned-member-avatar {
  font-size: 0.9rem;
}
.assigned-member-remove {
  display: none;
  margin-left: auto;
  width: 16px;
  height: 16px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--wf-muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.15s ease;
}
.assigned-member:hover .assigned-member-remove {
  display: block;
  color: var(--wf-error);
}
.assigned-member-remove:hover {
  background: rgba(231, 76, 60, 0.1);
  color: var(--wf-error);
}

.stage-drop-hint {
  font-size: 0.7rem;
  color: rgba(80, 100, 180, 0.4);
  font-style: italic;
  padding: 8px 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
}

/* ========== EVALUATE BUTTON ========== */
.wf-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.evaluate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: 50px;
  border: none;
  font-family: 'Cal Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, var(--wf-accent), #6b8cff);
  color: #fff;
  box-shadow: var(--wf-shadow);
  opacity: 0.35;
  pointer-events: none;
}
.evaluate-btn:not([disabled]) {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}
.evaluate-btn:not([disabled]):hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(74, 108, 247, 0.3);
}
.evaluate-btn:not([disabled]):active {
  transform: translateY(0);
}

/* ========== RESULT OVERLAY ========== */
.result-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 28, 53, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
  overflow-y: auto;
}
.result-overlay[hidden] { display: none; }

.result-card {
  background: #ffffff;
  border: 1.5px solid var(--wf-border2);
  border-top: 4px solid var(--wf-accent);
  border-radius: 24px;
  padding: 36px 40px 40px;
  max-width: 560px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--wf-shadow-lg);
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.result-header {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--wf-border);
}
.result-title {
  font-size: 1.6rem;
  color: var(--wf-text);
  margin-bottom: 4px;
}
.result-subtitle {
  font-size: 0.9rem;
  color: var(--wf-muted);
}

/* Score Block */
.score-block {
  background: rgba(74, 108, 247, 0.06);
  border: 1px solid var(--wf-border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 24px;
  text-align: center;
}
.score-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 12px;
}
.score-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
  color: var(--wf-muted);
  position: absolute;
  left: 20px;
  top: 20px;
}
.score-value {
  font-family: 'Cal Sans', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--wf-accent);
  line-height: 1;
}
.score-pct {
  font-size: 0.8rem;
  color: var(--wf-muted);
}
.score-bar-wrap {
  height: 8px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  overflow: hidden;
}
.score-bar {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--wf-accent), #6b8cff);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Feedback Sections */
.feedback-section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--wf-border);
}
.feedback-section:last-of-type {
  border-bottom: none;
}
.feedback-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--wf-text);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.feedback-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.feedback-list li {
  font-size: 0.8rem;
  color: var(--wf-text);
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 6px;
  border-left: 3px solid var(--wf-accent);
  padding-left: 10px;
}

/* Comparison Grid */
.comparison-section {
  margin-bottom: 24px;
}
.comparison-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--wf-text);
  margin-bottom: 12px;
}
.comparison-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.comparison-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  border-left: 3px solid var(--comp-color, var(--wf-accent));
}
.comparison-item-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--wf-text);
  min-width: 80px;
}
.comparison-item-score {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.comparison-meter {
  flex: 1;
  height: 6px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 3px;
  overflow: hidden;
}
.comparison-meter-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--comp-color, var(--wf-accent)), color-mix(in srgb, var(--comp-color, var(--wf-accent)) 70%, white));
  transition: width 0.8s ease-out;
}
.comparison-meter-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--wf-text);
  min-width: 28px;
  text-align: right;
}

/* Result Actions */
.result-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--wf-border);
}
.result-replay,
.result-home {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  border: none;
}
.result-replay {
  background: var(--wf-accent);
  color: #fff;
}
.result-replay:hover { opacity: 0.85; transform: translateY(-1px); }
.result-home {
  background: transparent;
  color: var(--wf-accent);
  border: 1.5px solid var(--wf-border2);
}
.result-home:hover { border-color: var(--wf-accent); background: rgba(74, 108, 247, 0.08); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1400px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .wf-container {
    grid-template-columns: 1fr;
  }
  .team-pool {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
    position: static;
    padding: 16px;
    min-height: auto;
    height: auto;
  }
  .pool-header {
    grid-column: 1 / -1;
  }
  .pool-hint {
    grid-column: 1 / -1;
  }
  .pool-list {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    min-height: auto;
  }
  .team-member {
    flex-direction: column;
    text-align: center;
    padding: 8px;
  }
  .member-avatar { font-size: 1.4rem; margin-bottom: 4px; }
  .member-name { font-size: 0.7rem; }
  .member-role { display: none; }
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .wf-main { padding: 0 16px 40px; }
  .wf-intro h1 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
  .wf-intro p { font-size: 0.9rem; }
  .wf-container { gap: 12px; }
  .team-pool { 
    gap: 6px; 
    padding: 12px;
  }
  .pool-header {
    margin-bottom: 8px;
  }
  .pool-title { font-size: 0.9rem; }
  .pool-count { font-size: 0.65rem; padding: 2px 6px; }
  .team-member {
    padding: 6px;
  }
  .member-avatar { font-size: 1.2rem; }
  .member-name { font-size: 0.65rem; }
  .project-card { 
    border-radius: 12px; 
    overflow: hidden;
  }
  .project-header { padding: 12px 16px; }
  .project-name { font-size: 0.95rem; margin-bottom: 6px; }
  .project-metrics { 
    font-size: 0.65rem;
    gap: 8px;
  }
  .metric { gap: 2px; }
  .metric-bar { width: 30px; }
  .project-stages { padding: 12px; gap: 8px; }
  .stage-bucket { margin-bottom: 10px; }
  .stage-name { font-size: 0.7rem; margin-bottom: 6px; }
  .stage-drop { 
    min-height: 70px; 
    padding: 6px;
    border-radius: 8px;
  }
  .assigned-member { 
    font-size: 0.7rem; 
    padding: 5px 6px;
  }
  .assigned-member-avatar { font-size: 0.8rem; }
  .evaluate-btn { 
    padding: 14px 28px; 
    font-size: 0.9rem;
  }
  .result-card { 
    padding: 20px 16px 24px; 
    border-radius: 16px;
  }
}

@media (max-width: 600px) {
  .wf-page { padding-top: 0; }
  .wf-header { height: 56px; padding: 0 16px; }
  .wf-back span { display: none; }
  .wf-header-spacer { display: none; }
  .wf-main { max-width: 100%; margin: 0; padding: 16px 16px 40px; }
  .wf-intro { padding: 20px 0; margin: 20px auto 0; }
  .wf-intro h1 { font-size: 1.3rem; margin-bottom: 8px; }
  .wf-intro p { font-size: 0.85rem; }
  .wf-container { 
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
  }
  .team-pool { 
    order: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
  }
  .pool-header {
    grid-column: 1 / -1;
    margin-bottom: 8px;
    padding-bottom: 8px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .pool-list {
    grid-column: 1 / -1;
    flex-direction: row;
    gap: 6px;
    margin-bottom: 8px;
  }
  .team-member {
    flex-direction: column;
    align-items: center;
    padding: 6px;
    gap: 3px;
    border-radius: 8px;
    display: flex;
  }
  .member-info { display: none; }
  .member-avatar { font-size: 1.1rem; }
  .member-name { display: none; }
  .member-role { display: none; }
  .pool-hint {
    grid-column: 1 / -1;
    padding-top: 8px;
    margin-top: 0;
    border-top: none;
    text-align: center;
  }
  .pool-hint p { font-size: 0.65rem; }
  .projects-area { order: 2; }
  .projects-grid { 
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .project-card {
    border-radius: 10px;
  }
  .project-header { 
    padding: 10px 12px; 
    border-radius: 10px 10px 0 0;
  }
  .project-name { 
    font-size: 0.9rem; 
    margin-bottom: 4px;
  }
  .project-metrics { 
    font-size: 0.6rem;
    flex-direction: column;
    gap: 4px;
  }
  .metric-bar { width: 25px; }
  .project-stages { 
    padding: 10px; 
    gap: 6px;
  }
  .stage-bucket { 
    margin-bottom: 6px;
  }
  .stage-bucket:last-child { margin-bottom: 0; }
  .stage-name { 
    font-size: 0.65rem; 
    margin-bottom: 4px;
  }
  .stage-drop { 
    min-height: 60px;
    padding: 4px;
    border-radius: 6px;
  }
  .stage-drop-hint { 
    font-size: 0.6rem;
    padding: 4px 0;
    min-height: 25px;
  }
  .assigned-member { 
    font-size: 0.65rem; 
    padding: 4px 5px;
    gap: 4px;
  }
  .assigned-member-avatar { font-size: 0.7rem; }
  .wf-actions {
    margin-bottom: 24px;
  }
  .evaluate-btn {
    padding: 12px 24px;
    font-size: 0.85rem;
    width: 100%;
  }
}

/* ========== MOBILE ALLOCATION BUTTON MODAL ========== */

.member-add-btn {
  display: none;
  margin-left: auto;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  background: var(--wf-accent);
  color: #fff;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s ease;
}
.member-add-btn:hover {
  background: var(--wf-accent);
  transform: scale(1.1);
}
.member-add-btn:active {
  transform: scale(0.95);
}

/* Show button on mobile */
@media (max-width: 768px) {
  .member-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    width: 20px;
    height: 20px;
    font-size: 0.8rem;
  }
}
}

/* Allocation Modal */
.allocation-modal {
  position: fixed;
  inset: 0;
  background: rgba(26, 28, 53, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 300;
  padding: 24px 16px 16px;
  overflow-y: auto;
}
.allocation-modal[hidden] { display: none; }

.allocation-modal-content {
  background: #ffffff;
  border: 1.5px solid var(--wf-border2);
  border-radius: 24px 24px 0 0;
  padding: 24px 20px 32px;
  width: 100%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--wf-shadow-lg);
  animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.allocation-modal-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--wf-border);
}

.allocation-modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--wf-text);
  margin-bottom: 4px;
}

.allocation-modal-subtitle {
  font-size: 0.85rem;
  color: var(--wf-muted);
}

.allocation-projects-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.allocation-project-group {
  border-radius: 12px;
  border: 1px solid var(--wf-border);
  overflow: hidden;
}

.allocation-project-name {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(80, 100, 180, 0.04);
  border-bottom: 1px solid var(--wf-border);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--wf-text);
  cursor: pointer;
  transition: background 0.2s;
}
.allocation-project-name:hover {
  background: rgba(80, 100, 180, 0.08);
}

.allocation-project-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--allocation-color, var(--wf-accent));
}

.allocation-stages {
  display: flex;
  flex-direction: column;
}

.allocation-stage {
  padding: 12px 14px;
  border-bottom: 1px solid var(--wf-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s;
}
.allocation-stage:hover {
  background: rgba(80, 100, 180, 0.04);
}
.allocation-stage:last-child {
  border-bottom: none;
}

.allocation-stage-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--wf-text);
  text-transform: capitalize;
}

.allocation-stage-btn {
  padding: 6px 12px;
  border-radius: 20px;
  border: none;
  background: var(--allocation-color, var(--wf-accent));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.allocation-stage-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}
.allocation-stage-btn:active {
  transform: translateY(0);
}

.allocation-modal-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--wf-border);
  display: flex;
  justify-content: flex-end;
}

.modal-close-btn {
  padding: 10px 18px;
  border-radius: 50px;
  border: 1.5px solid var(--wf-border2);
  background: transparent;
  color: var(--wf-text);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.modal-close-btn:hover {
  border-color: var(--wf-accent);
  background: rgba(74, 108, 247, 0.08);
  color: var(--wf-accent);
}
