@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/Vazirmatn-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/Vazirmatn-ExtraBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  --booking-blue: #2f6ff2;
  --booking-blue-dark: #184ebd;
  --ink: #13213a;
  --muted: #68758b;
  --canvas: #eef4fb;
  --paper: #ffffff;
  --line: #dce5f1;
  --coral: #f06266;
  --amber: #e9a23b;
  --mint: #35aa83;
  --font-fa: "Vazirmatn", Tahoma, Arial, sans-serif;
  --font-latin: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-family: var(--font-fa);
  font-weight: 400;
  color: var(--ink);
  background: var(--canvas);
  color-scheme: light;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--booking-blue) 28%, transparent);
  outline-offset: 2px;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.app-shell { min-height: 100vh; }
.topbar {
  height: 74px; padding: 0 clamp(18px, 4vw, 56px); background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between;
  gap: 24px; position: sticky; top: 0; z-index: 20; backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 12px; direction: ltr; font-family: var(--font-latin); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; letter-spacing: -.02em; }
.brand small { color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.brand-mark { width: 38px; height: 38px; border-radius: 13px; background: var(--booking-blue); display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding: 10px; box-shadow: 0 8px 20px rgba(47,111,242,.25); }
.brand-mark i { width: 4px; border-radius: 4px; background: white; }
.brand-mark i:nth-child(1) { height: 9px; opacity: .7; }.brand-mark i:nth-child(2) { height: 17px; }.brand-mark i:nth-child(3) { height: 13px; opacity: .82; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.search-field { width: min(280px, 25vw); position: relative; }
.search-field svg { position: absolute; width: 17px; right: 13px; top: 50%; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 1.8; }
.search-field input { width: 100%; padding: 10px 40px 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: #f7f9fc; }
.primary-button, .secondary-button, .icon-button, .column-add, .text-button {
  border: 0; border-radius: 11px; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.primary-button { background: var(--booking-blue); color: white; padding: 11px 17px; font-weight: 700; box-shadow: 0 7px 16px rgba(47,111,242,.2); }
.primary-button:hover { background: var(--booking-blue-dark); transform: translateY(-1px); }
.primary-button.wide { width: 100%; margin-top: 18px; }
.secondary-button { background: #f2f5f9; color: var(--ink); padding: 10px 14px; }
.secondary-button:hover { background: #e7edf5; }
.icon-button { width: 40px; height: 40px; background: #f2f5f9; color: var(--ink); display: grid; place-items: center; }
.icon-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
main { padding: 32px clamp(18px, 4vw, 56px) 44px; }
.board-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 25px; }
.eyebrow { color: var(--booking-blue); font-size: 11px; font-weight: 700; letter-spacing: 0; margin: 0 0 7px; }
h1 { font-size: clamp(25px, 3vw, 38px); line-height: 1.35; font-weight: 800; letter-spacing: 0; margin: 0; }
.board-summary { color: var(--muted); margin: 8px 0 0; font-size: 14px; }
.workflow-hint { display: flex; align-items: center; gap: 7px; margin: 10px 0 0; color: #8090a6; font-size: 10px; }
.workflow-hint span { padding: 3px 7px; border: 1px solid #d8e3f1; border-radius: 20px; background: rgba(255,255,255,.65); }
.workflow-hint i { color: var(--booking-blue); font-style: normal; }
.legend { display: flex; gap: 18px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.legend span { display: flex; align-items: center; gap: 6px; }
.priority-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.priority-dot.urgent { background: var(--coral); }.priority-dot.high { background: var(--amber); }.priority-dot.normal { background: var(--booking-blue); }
.notice { padding: 12px 15px; border: 1px solid #b9d1ff; background: #e4eeff; color: #174486; border-radius: 12px; margin-bottom: 18px; }
.notice.error { color: #8a2529; border-color: #f0c2c4; background: #fff0f1; }
.board { display: grid; grid-auto-columns: minmax(276px, 1fr); grid-auto-flow: column; gap: 14px; overflow-x: auto; padding: 2px 2px 18px; scroll-snap-type: x proximity; }
.column { min-height: 480px; background: rgba(255,255,255,.55); border: 1px solid rgba(207,219,234,.85); border-radius: 16px; padding: 12px; scroll-snap-align: start; }
.column > header { display: flex; align-items: center; justify-content: space-between; padding: 5px 4px 13px; }
.column > header div { display: flex; align-items: center; gap: 9px; }
.column > header i { width: 4px; height: 17px; border-radius: 4px; background: var(--column-color, var(--booking-blue)); }
.column h2 { font-size: 13px; margin: 0; }
.count { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 20px; background: #e9eff7; color: var(--muted); display: grid; place-items: center; font: 700 11px/1 var(--font-latin); }
.card-list { min-height: 395px; display: flex; flex-direction: column; gap: 9px; }
.card-list.drag-over { border-radius: 12px; box-shadow: inset 0 0 0 2px var(--booking-blue); background: rgba(47,111,242,.05); }
.work-card { background: var(--paper); border: 1px solid var(--line); border-radius: 13px; padding: 13px; box-shadow: 0 4px 13px rgba(39,62,94,.055); position: relative; cursor: grab; }
.work-card:hover { border-color: #b9c9dd; box-shadow: 0 8px 20px rgba(39,62,94,.09); }
.work-card.dragging { opacity: .45; }
.work-card h3 { font-size: 13px; line-height: 1.8; font-weight: 700; margin: 0 0 7px; padding-left: 17px; }
.work-card p { font-size: 11px; line-height: 1.7; color: var(--muted); margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.execution-panel {
  --execution-accent: var(--booking-blue);
  margin: 11px -5px 12px; padding: 10px 11px; border: 1px solid #d7e4f8;
  border-inline-start: 3px solid var(--execution-accent); border-radius: 10px;
  background: #f7faff; cursor: default;
}
.execution-panel.active { --execution-accent: var(--booking-blue); background: #f2f7ff; }
.execution-panel.success { --execution-accent: var(--mint); background: #f1faf7; border-color: #cce9df; }
.execution-panel.danger { --execution-accent: var(--coral); background: #fff6f6; border-color: #f0d2d4; }
.execution-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.execution-status { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; color: var(--ink); }
.execution-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--execution-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--execution-accent) 13%, transparent); }
.execution-panel.active .execution-status i { animation: execution-pulse 1.8s ease-out infinite; }
.execution-duration { color: var(--muted); font: 600 9px/1 var(--font-fa); white-space: nowrap; }
.work-card .execution-summary { display: block; margin: 7px 0 9px; color: #53647d; font-size: 10px; line-height: 1.75; -webkit-line-clamp: unset; }
.execution-action { width: 100%; border: 1px solid color-mix(in srgb, var(--execution-accent) 30%, white); border-radius: 8px; padding: 7px 9px; background: white; color: var(--execution-accent); font-size: 10px; font-weight: 700; }
.execution-action:hover:not(:disabled) { background: color-mix(in srgb, var(--execution-accent) 7%, white); border-color: var(--execution-accent); }
.execution-action:disabled { cursor: wait; opacity: .65; }
.execution-panel.ready .execution-action { color: white; background: var(--booking-blue); border-color: var(--booking-blue); box-shadow: 0 5px 12px rgba(47,111,242,.16); }
.execution-panel.ready .execution-action:hover:not(:disabled) { background: var(--booking-blue-dark); }
.execution-result { margin: 0 0 9px; border-top: 1px solid color-mix(in srgb, var(--execution-accent) 18%, transparent); padding-top: 7px; }
.execution-result summary { color: var(--execution-accent); cursor: pointer; font-size: 10px; font-weight: 700; }
.execution-result pre { margin: 7px 0 0; padding: 8px; max-height: 190px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; border-radius: 7px; background: rgba(255,255,255,.75); color: #34445d; font: 400 10px/1.8 var(--font-fa); direction: auto; }
@keyframes execution-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--execution-accent) 30%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.card-priority { position: absolute; left: 12px; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--booking-blue); }
.card-priority.urgent { background: var(--coral); }.card-priority.high { background: var(--amber); }.card-priority.low { background: #a5afbd; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.labels { display: flex; flex-wrap: wrap; gap: 4px; }
.label { background: #edf3ff; color: #315eae; border-radius: 6px; padding: 3px 6px; font-size: 9px; direction: ltr; }
.card-actions { display: flex; gap: 4px; margin-right: auto; }
.card-actions button { border: 0; background: transparent; color: var(--muted); padding: 3px 5px; border-radius: 5px; font-size: 11px; }
.card-actions button:hover { background: #edf1f6; color: var(--ink); }
.card-actions button:disabled { cursor: not-allowed; opacity: .42; }
.column-add { width: 100%; margin-top: 10px; padding: 9px; background: transparent; color: var(--muted); border: 1px dashed #c5d1df; }
.column-add:hover { color: var(--booking-blue); border-color: var(--booking-blue); background: rgba(47,111,242,.04); }
.empty-column { color: #9aa6b6; text-align: center; font-size: 11px; padding: 42px 8px; }
.login-view { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 20% 10%, #dceaff 0, transparent 37%), linear-gradient(145deg, #edf4ff, #f8fbff); }
.login-view[hidden] { display: none; }
.login-card { width: min(430px, 100%); background: rgba(255,255,255,.94); border: 1px solid white; border-radius: 24px; padding: 34px; box-shadow: 0 26px 70px rgba(38,75,130,.18); }
.login-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.8; font-size: 13px; }
.login-visual { height: 94px; position: relative; display: grid; place-items: center; margin-bottom: 23px; overflow: hidden; border-radius: 17px; background: #eaf2ff; }
.orbit { position: absolute; border: 1px solid rgba(47,111,242,.2); border-radius: 50%; }.orbit-one { width: 185px; height: 185px; }.orbit-two { width: 120px; height: 120px; }
.login-glyph { width: 55px; height: 55px; border-radius: 17px; background: var(--booking-blue); display: flex; align-items: flex-end; justify-content: center; gap: 4px; padding: 14px; box-shadow: 0 12px 24px rgba(47,111,242,.3); z-index: 1; }
.login-glyph span { width: 5px; background: white; border-radius: 4px; }.login-glyph span:nth-child(1) { height: 14px; opacity: .7; }.login-glyph span:nth-child(2) { height: 27px; }.login-glyph span:nth-child(3) { height: 20px; opacity: .85; }
form label { display: block; font-size: 12px; font-weight: 700; margin: 16px 0 7px; }
input, textarea, select { width: 100%; border: 1px solid var(--line); background: #f9fbfd; border-radius: 10px; color: var(--ink); padding: 11px 12px; }
textarea { resize: vertical; }
.password-row { position: relative; }.password-row input { padding-left: 62px; direction: ltr; }.text-button { position: absolute; left: 7px; top: 6px; background: transparent; color: var(--booking-blue); padding: 6px 7px; font-size: 11px; }
.security-note { color: #8794a6; display: block; text-align: center; margin-top: 20px; }
.form-error { color: #ad3036; font-size: 11px; margin: 8px 0 0; }
.card-dialog { width: min(560px, calc(100% - 28px)); border: 0; border-radius: 20px; padding: 0; box-shadow: 0 30px 80px rgba(20,39,70,.27); }
.card-dialog::backdrop { background: rgba(15,29,52,.45); backdrop-filter: blur(4px); }
.card-dialog form { padding: 25px; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; }.dialog-heading h2 { margin: 0; font-size: 23px; }.dialog-heading .icon-button { font-size: 23px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.form-grid label select { margin-top: 7px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
@media (max-width: 760px) {
  .topbar { height: auto; padding: 12px 15px; display: grid; grid-template-columns: 1fr; gap: 11px; }
  .brand { justify-self: end; }.brand small { display: none; }
  .topbar-actions { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 40px auto; gap: 8px; }
  .search-field { width: auto; min-width: 0; }
  .secondary-button#logout-button { display: none; }.primary-button { padding: 10px 12px; }
  main { padding: 24px 14px 32px; }.board-heading { align-items: flex-start; flex-direction: column; }.legend { width: 100%; justify-content: space-between; }
  .board { grid-auto-columns: minmax(84vw, 1fr); }.column { min-height: 430px; }.card-list { min-height: 345px; }
  .execution-result pre { max-height: 150px; }
  .login-card { padding: 24px; }.form-grid { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
