/**
 * FoodTech Projects · Master Production Stylesheet
 * Responsive across Mobile, Tablet, and Desktop.
 * Full RTL (Arabic) and LTR (English / French) support.
 * Strict zero-inline CSS architecture.
 */

:root {
  --ftp-ink: #111315;
  --ftp-muted: #6b7077;
  --ftp-line: #e3e5e7;
  --ftp-soft: #f5f6f7;
  --ftp-panel: #ffffff;
  --ftp-inverse: #111315;
  --ftp-primary: #101828;
  --ftp-accent: #2563eb;
  --ftp-success: #16a34a;
  --ftp-warning: #d97706;
  --ftp-danger: #dc2626;
  --ftp-sidebar-width: 270px;
  --ftp-topbar-height: 62px;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', Ubuntu, sans-serif;
  color: var(--ftp-ink);
  background-color: #f8fafc;
  line-height: 1.5;
}

/* Base Layout & App Shell */
.ft-app-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.ft-sidebar {
  width: var(--ftp-sidebar-width);
  background: #ffffff;
  border-inline-end: 1px solid var(--ftp-line);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 1040;
  transition: transform 0.25s ease-in-out;
  inset-inline-start: 0;
}

.ftp-hidden { display: none !important; }
.ftp-btn-compact { min-height: 32px !important; padding: 4px 10px !important; font-size: 12px !important; }
.ftp-progress-sm { height: 4px !important; }
.ftp-text-xs { font-size: 10px !important; }
.ftp-progress-fill { width: var(--ftp-progress, 0%); }

.ft-sidebar-brand {
  height: var(--ftp-topbar-height);
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--ftp-line);
  text-decoration: none;
  color: var(--ftp-ink);
}

.ft-brand-mark {
  width: 34px;
  height: 34px;
  background: var(--ftp-inverse);
  color: #fff;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 17px;
}

.ft-brand-title {
  font-size: 16px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.ft-sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.ft-nav-group-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 850;
  color: var(--ftp-muted);
  padding: 0 10px 8px;
  border-bottom: 1px solid var(--ftp-line);
  margin-bottom: 6px;
}

.ft-nav-group-title.ft-systems {
  color: #2563eb;
}

.ft-nav-group-title.ft-operations {
  color: #059669;
}

.ft-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ft-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  color: #334155;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 650;
  transition: background 0.15s ease, color 0.15s ease;
}

.ft-nav-link:hover {
  background: var(--ftp-soft);
  color: var(--ftp-ink);
}

.ft-nav-link.active {
  background: #f1f5f9;
  color: var(--ftp-ink);
  font-weight: 800;
  box-shadow: inset 0 0 0 1px #cbd5e1;
}

.ft-nav-icon {
  font-size: 15px;
  opacity: 0.8;
}

.ft-main-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-inline-start: var(--ftp-sidebar-width);
}

.ft-topbar {
  height: var(--ftp-topbar-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ftp-line);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.ft-topbar-start, .ft-topbar-end {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ft-sidebar-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ftp-line);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 16px;
  color: var(--ftp-ink);
}

.ft-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 1035;
}

.ft-lang-switch {
  display: flex;
  gap: 4px;
  background: var(--ftp-soft);
  border: 1px solid var(--ftp-line);
  border-radius: 9px;
  padding: 3px;
}

.ft-lang-btn {
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 750;
  text-decoration: none;
  color: var(--ftp-muted);
}

.ft-lang-btn.active {
  background: #ffffff;
  color: var(--ftp-ink);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.ft-main-content {
  flex: 1;
  padding: 24px;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}

/* Workspace Dashboard Styles */
.ftp-workspace {
  --ink: #111315;
  --muted: #6b7077;
  --line: #e4e6e8;
  --soft: #f5f6f7;
  --panel: #fff;
  --inverse: #111315;
  max-width: 1600px;
  margin: 0 auto;
}

.ftp-hero {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(135deg, #fff 0%, #f5f6f7 70%, #eceeef 100%);
  padding: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  box-shadow: 0 18px 50px rgba(17, 19, 21, .06);
  margin-bottom: 24px;
}

.ftp-kicker, .ftp-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.ftp-title {
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: -.035em;
  color: var(--ink);
  font-weight: 850;
  margin: 0;
}

.ftp-lead {
  color: var(--muted);
  font-size: 14.5px;
  max-width: 760px;
  margin: 10px 0 0;
  line-height: 1.7;
}

.ftp-branch {
  min-width: 250px;
}

.ftp-branch label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
  display: block;
  margin-bottom: 7px;
}

.ftp-branch-row {
  display: flex;
  gap: 8px;
}

.ftp-select, .ftp-btn {
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 750;
  padding: 0 13px;
  font-size: 13.5px;
}

.ftp-select {
  min-width: 180px;
  flex: 1;
}

.ftp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

.ftp-btn-dark {
  background: var(--inverse);
  border-color: var(--inverse);
  color: #fff;
}

.ftp-btn-primary {
  background: #111315;
  border-color: #111315;
  color: #fff;
}

.ftp-btn-danger {
  color: #dc2626;
  border-color: #fecaca;
  background: #fef2f2;
}

.ftp-btn:hover {
  text-decoration: none;
  filter: brightness(.97);
}

.ftp-section {
  margin-top: 24px;
}

.ftp-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 12px;
}

.ftp-section-title {
  font-size: 18px;
  font-weight: 850;
  color: var(--ink);
  margin: 0;
}

.ftp-section-meta {
  font-size: 12px;
  color: var(--muted);
}

.ftp-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.ftp-kpi, .ftp-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(17, 19, 21, .035);
}

.ftp-kpi {
  padding: 17px;
}

.ftp-kpi-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.ftp-kpi-value {
  display: block;
  font-size: 25px;
  color: var(--ink);
  font-weight: 850;
  letter-spacing: -.025em;
  margin-top: 7px;
}

.ftp-kpi-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.ftp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ftp-card {
  padding: 18px;
  min-height: 165px;
  display: flex;
  flex-direction: column;
}

.ftp-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.ftp-icon {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--soft);
  font-weight: 900;
  color: var(--ink);
}

.ftp-status {
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  white-space: nowrap;
}

.ftp-status-on {
  color: var(--ink);
  background: #f0f1f2;
}

.ftp-card h3 {
  font-size: 15px;
  font-weight: 850;
  margin: 15px 0 5px;
  color: var(--ink);
}

.ftp-card p {
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

.ftp-card-actions {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.ftp-link {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}

.ftp-callout {
  border: 1px solid var(--line);
  background: #fafafa;
  border-radius: 18px;
  padding: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.ftp-callout strong {
  color: var(--ink);
}

.ftp-restricted {
  border-style: dashed;
}

.ftp-finance {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

/* Project List / Portfolio Styles */
.ftp-list {
  --ink: #111315;
  --muted: #6b7077;
  --line: #e3e5e7;
  --soft: #f5f6f7;
  max-width: 1500px;
  margin: 0 auto;
}

.ftp-list-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 16px;
}

.ftp-list h1 {
  font-size: 29px;
  letter-spacing: -.035em;
  font-weight: 880;
  margin: 0;
}

.ftp-list-lead {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  margin: 7px 0 0;
}

.ftp-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ftp-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 9px 28px rgba(17, 19, 21, .035);
  overflow: hidden;
}

.ftp-filters {
  padding: 14px;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr) auto;
  gap: 9px;
  background: #fafafa;
  border-bottom: 1px solid var(--line);
}

.ftp-input, .ftp-select {
  width: 100%;
  height: 40px;
  border: 1px solid #d6d9dc;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 0 11px;
  outline: none;
}

.ftp-input:focus, .ftp-select:focus {
  border-color: #8b9095;
  box-shadow: 0 0 0 3px rgba(17, 19, 21, .06);
}

.ftp-table-wrap {
  overflow: auto;
}

.ftp-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.ftp-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  font-weight: 850;
  background: #fafafa;
  text-align: start;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
}

.ftp-table td {
  padding: 13px;
  border-bottom: 1px solid #eff0f1;
  vertical-align: middle;
  font-size: 13px;
}

.ftp-table tr:last-child td {
  border-bottom: 0;
}

.ftp-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: var(--muted);
}

.ftp-name {
  font-weight: 830;
  color: var(--ink);
  text-decoration: none;
}

.ftp-badge {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 800;
  background: #fafafa;
  white-space: nowrap;
}

.ftp-progress {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ftp-track {
  height: 6px;
  width: 78px;
  background: #eceeef;
  border-radius: 999px;
  overflow: hidden;
}

.ftp-track span {
  height: 100%;
  display: block;
  background: #202326;
  border-radius: inherit;
}

.ftp-money {
  text-align: end;
  font-variant-numeric: tabular-nums;
}

.ftp-row-actions {
  display: flex;
  gap: 7px;
  justify-content: flex-end;
}

.ftp-empty {
  padding: 50px 20px;
  text-align: center;
  color: var(--muted);
}

.ftp-empty strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
  margin-bottom: 7px;
}

.ftp-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}

/* Project Form Styles */
.ftp-form {
  --ink: #111315;
  --muted: #6b7077;
  --line: #e3e5e7;
  --soft: #f5f6f7;
  --panel: #fff;
  max-width: 1180px;
  margin: 0 auto;
}

.ftp-form-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  background: linear-gradient(135deg, #fff, #f4f5f6);
  box-shadow: 0 16px 45px rgba(17, 19, 21, .055);
  margin-bottom: 16px;
}

.ftp-form-hero h1 {
  margin: 6px 0 7px;
  font-size: 28px;
  letter-spacing: -.035em;
  font-weight: 880;
}

.ftp-tabs {
  display: flex;
  gap: 6px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
  overflow: auto;
}

.ftp-tab {
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  padding: 9px 12px;
  font-weight: 820;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
}

.ftp-tab.active {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: 0 2px 8px rgba(17, 19, 21, .04);
}

.ftp-pane {
  display: none;
  padding: 22px;
}

.ftp-pane.active {
  display: block;
}

.ftp-grid-form {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.ftp-col-3 { grid-column: span 3; }
.ftp-col-4 { grid-column: span 4; }
.ftp-col-5 { grid-column: span 5; }
.ftp-col-6 { grid-column: span 6; }
.ftp-col-12 { grid-column: span 12; }

.ftp-field label {
  display: block;
  font-size: 12px;
  font-weight: 820;
  margin-bottom: 6px;
}

.ftp-required { color: #b42318; }

.ftp-textarea {
  width: 100%;
  border: 1px solid #d6d9dc;
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
  min-height: 140px;
  resize: vertical;
}

.ftp-help {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.45;
}

.ftp-invalid {
  border-color: #b42318 !important;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, .08) !important;
}

.ftp-error {
  font-size: 11px;
  color: #b42318;
  margin-top: 5px;
}

.ftp-money-box {
  border: 1px dashed #cfd3d6;
  border-radius: 12px;
  padding: 11px 12px;
  background: #fafafa;
  font-weight: 820;
}

.ftp-money-box small {
  display: block;
  color: var(--muted);
  font-weight: 650;
  margin-top: 3px;
}

.ftp-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  position: sticky;
  bottom: 0;
  z-index: 4;
  backdrop-filter: blur(10px);
}

.ftp-draft-state {
  font-size: 11px;
  color: var(--muted);
}

.ftp-alert {
  border: 1px solid #efc7c2;
  background: #fff8f7;
  color: #8c1d18;
  border-radius: 14px;
  padding: 13px 15px;
  margin-bottom: 14px;
  font-size: 12px;
  line-height: 1.55;
}

.ftp-draft-banner {
  display: none;
  border: 1px solid var(--line);
  background: #fafafa;
  border-radius: 14px;
  padding: 11px 13px;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--muted);
}

.ftp-draft-banner.visible {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.ftp-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 43px;
}

/* Project Show / Detail Hub Styles */
.ftp-project {
  --ink: #111315;
  --muted: #6b7077;
  --line: #e3e5e7;
  --soft: #f5f6f7;
  max-width: 1500px;
  margin: 0 auto;
}

.ftp-project-head {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(135deg, #fff, #f6f7f8);
  padding: 22px;
  box-shadow: 0 14px 40px rgba(17, 19, 21, .05);
  margin-bottom: 18px;
}

.ftp-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}

.ftp-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.ftp-insight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.ftp-nav-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  margin-bottom: 18px;
}

/* Task Graph & CPM Interactive Styles */
.project-graph-shell {
  border: 1px solid var(--ftp-line);
  border-radius: 18px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
}

.project-graph-toolbar {
  padding: 12px 18px;
  background: #fafafa;
  border-bottom: 1px solid var(--ftp-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.project-graph-kpis {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.project-graph-kpi {
  font-size: 12px;
  color: var(--ftp-muted);
}

.project-graph-kpi strong {
  color: var(--ftp-ink);
  font-size: 14px;
}

.project-graph-board {
  display: flex;
  min-height: 600px;
  position: relative;
}

.project-graph-canvas {
  flex: 1;
  position: relative;
  overflow: auto;
  background: #f8fafc;
  min-height: 600px;
}

.project-graph-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 3000px;
  height: 2000px;
  pointer-events: none;
}

.project-graph-node {
  position: absolute;
  width: 240px;
  background: #ffffff;
  border: 1px solid var(--ftp-line);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  cursor: grab;
  user-select: none;
  transition: box-shadow 0.15s ease;
}

.project-graph-node:active {
  cursor: grabbing;
}

.project-graph-node.selected {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.project-graph-node.critical {
  border-color: #ef4444;
  background: #fff8f8;
}

.project-graph-node-title {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-graph-node-meta {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.project-graph-pill {
  font-size: 10px;
  font-weight: 750;
  padding: 2px 6px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
}

.project-graph-cost {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ftp-muted);
  font-weight: 700;
}

.project-graph-progress {
  height: 4px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px;
}

.project-graph-progress span {
  height: 100%;
  display: block;
  background: #2563eb;
}

.project-graph-sidebar {
  width: 340px;
  border-inline-start: 1px solid var(--ftp-line);
  background: #ffffff;
  padding: 16px;
  overflow-y: auto;
  max-height: 800px;
}

.project-graph-mini-row {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

/* Tasks & Kanban Styles */
.tasks-shell {
  width: 100%;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.kanban-col {
  background: #f8fafc;
  border: 1px solid var(--ftp-line);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
}

.kanban-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.kanban-count {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e2e8f0;
}

.kanban-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
}

.kanban-card {
  background: #ffffff;
  border: 1px solid var(--ftp-line);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kanban-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.task-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1060;
  align-items: center;
  justify-content: center;
}

.task-modal.open {
  display: flex;
}

.task-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
}

.task-modal-content {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px;
  max-width: 600px;
  width: 90%;
  position: relative;
  z-index: 1061;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

/* Budget, Costs, and Roles */
.budget-stat {
  padding: 16px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--ftp-line);
}

.budget-progress-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px;
}

.budget-progress-fill {
  height: 100%;
  background: #10b981;
}

.member-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--ftp-line);
  border-radius: 12px;
  background: #ffffff;
}

.member-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #e2e8f0;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
}

/* Responsive Rules */
@media (max-width: 1024px) {
  .ft-sidebar {
    transform: translateX(-100%);
  }
  [dir="rtl"] .ft-sidebar {
    transform: translateX(100%);
  }
  .ft-sidebar.open {
    transform: translateX(0);
  }
  .ft-sidebar-backdrop.open {
    display: block;
  }
  .ft-main-wrap {
    margin-inline-start: 0 !important;
  }
  .ft-sidebar-toggle {
    display: inline-flex;
  }
  .ftp-kpis {
    grid-template-columns: repeat(3, 1fr);
  }
  .ftp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ftp-col-3, .ftp-col-4, .ftp-col-5, .ftp-col-6 {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  .ft-topbar {
    padding: 0 14px;
  }
  .ft-main-content {
    padding: 14px;
  }
  .ftp-hero {
    grid-template-columns: 1fr;
    padding: 18px;
    border-radius: 18px;
  }
  .ftp-title {
    font-size: 24px;
  }
  .ftp-kpis {
    grid-template-columns: 1fr 1fr;
  }
  .ftp-grid {
    grid-template-columns: 1fr;
  }
  .ftp-filters {
    grid-template-columns: 1fr;
  }
  .ftp-filters .ftp-filter-action {
    grid-column: auto;
  }
  .ftp-col-3, .ftp-col-4, .ftp-col-5, .ftp-col-6 {
    grid-column: span 12;
  }
  .project-graph-board {
    flex-direction: column;
  }
  .project-graph-sidebar {
    width: 100%;
    border-inline-start: 0;
    border-top: 1px solid var(--ftp-line);
  }
}

@media (max-width: 480px) {
  .ftp-kpis {
    grid-template-columns: 1fr;
  }
  .ftp-actions {
    flex-direction: column;
  }
  .ftp-btn {
    width: 100%;
  }
}
