/* =========================================
   Vazirmatn Font Family (Local)
========================================= */
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Thin.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-ExtraLight.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* =========================================
   Root Variables
========================================= */
:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --line: #dbe3ee;
  --line-soft: #e9eff6;
  --text: #1f2a37;
  --muted: #6b7280;

  --primary: #198754;
  --primary-focus: rgba(25, 135, 84, 0.18);

  --info: #0d6efd;
  --danger: #dc3545;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;

  --shadow-sm: 0 6px 24px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.06);
}

/* =========================================
   Base
========================================= */
html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Vazirmatn", Tahoma, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

/* =========================================
   Shared Utilities
========================================= */
.required-star {
  color: var(--danger);
  margin-right: 3px;
}

.field-error {
  margin-top: 5px;
  color: var(--danger);
  font-size: 0.82rem;
  font-weight: 600;
}

/* =========================================
   Register / Form Pages
========================================= */
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.page-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
}

.page-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.form-shell {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 16px 16px 10px;
}

.form-section {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.form-section:last-of-type {
  border-bottom: 0;
  margin-bottom: 8px;
  padding-bottom: 4px;
}

.section-title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
}

.form-label {
  margin-bottom: 6px;
  font-size: 0.83rem;
  font-weight: 600;
  color: #334155;
}

.form-text {
  margin-top: 4px;
  font-size: 0.75rem;
  color: #7b8794;
}

/* Inputs */
.form-control,
.form-select {
  height: 42px;
  border: 1px solid #cfd8e3;
  border-radius: var(--radius-sm);
  background: #fff;
  color: #111827;
  font-size: 0.9rem;
  padding: 0.42rem 0.72rem;
  box-shadow: none;
}

.form-control::placeholder {
  color: #98a2b3;
  opacity: 1;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-focus);
  outline: 0;
}

textarea.form-control {
  min-height: 130px;
  height: auto;
  resize: vertical;
}

/* Social checkboxes */
.form-check {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #d8e2ee;
  border-radius: var(--radius-sm);
  background: #f9fbff;
  cursor: pointer;
}

.form-check-input {
  width: 18px;
  height: 18px;
  margin: 0 !important;
  accent-color: var(--info);
  cursor: pointer;
}

.form-check-label {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: #334155;
}

/* Actions */
.actions-bar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
}

.actions-bar .btn {
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.5rem 0.9rem;
}

/* spacing in bootstrap rows */
.form-shell .row {
  row-gap: 10px;
}

/* =========================================
   Dashboard
========================================= */
.dashboard-shell {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 32px 16px 56px;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.dashboard-header h1 {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 800;
  color: #172033;
}

.dashboard-header p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.dashboard-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px;
}

.dashboard-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #eef2f7;
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.dashboard-card-header h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: #172033;
}

.dashboard-card-header p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.brief-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
}

.empty-state {
  text-align: center;
  padding: 42px 16px;
}

.empty-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  color: #2563eb;
  font-size: 30px;
  font-weight: 700;
}

.empty-state h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  color: #172033;
}

.empty-state p {
  margin: 0 0 18px;
  color: #64748b;
  font-size: 14px;
}

.brief-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.brief-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #f8fafc;
}

.brief-item h3 {
  margin: 0 0 5px;
  font-size: 16px;
  font-weight: 700;
  color: #172033;
}

.brief-item p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

/* =========================================
   Brief Questions / Answers
========================================= */
.question-box,
.choice-list {
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-sm);
  background-color: #fafafa;
}

.choice-list .form-check {
  padding: 8px 12px;
  border-radius: 8px;
  border: 0;
  background: transparent;
}

.choice-list .form-check:hover {
  background-color: #f0fdf4;
}

.choice-list input[type="checkbox"],
.choice-list input[type="radio"] {
  margin-left: 8px;
}

/* =========================================
   Responsive
========================================= */
@media (max-width: 768px) {
  .form-shell {
    padding: 12px 12px 8px;
  }

  .page-title {
    font-size: 1.05rem;
  }

  .dashboard-header,
  .dashboard-card-header,
  .brief-item {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-actions {
    width: 100%;
  }

  .dashboard-actions .btn {
    flex: 1;
  }
}


/* جلوگیری از بزرگ‌شدن لوگو در هدر */
img {
  max-width: 100%;
  height: auto;
}

/* اگر لوگوی هدر داخل لینک است */
header img,
.navbar img,
.brand img,
.logo img {
  display: block;
  width: auto;
  max-width: 180px;
  max-height: 72px;
  object-fit: contain;
}


/* فونت داشبورد */
body {
  font-family: "Vazirmatn", Tahoma, sans-serif;
}

/* سربرگ برند */
.dashboard-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid #e8edf3;
  background: #fff;
}

.dashboard-brand img {
  display: block;
  width: auto;
  max-width: 150px;
  max-height: 48px;
  object-fit: contain;
}

.dashboard-brand a {
  color: #24324a;
  text-decoration: none;
}

.dashboard-brand .brand-title {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
}

/* دکمه خروج قرمز */
.logout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid #dc3545;
  border-radius: 10px;
  background: #fff;
  color: #c82333;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.logout-button:hover {
  background: #dc3545;
  color: #fff;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.logout-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

/* عنوان و محتوای داشبورد */
.dashboard-shell {
  width: min(100% - 32px, 1100px);
  margin: 32px auto;
}

.dashboard-header h1 {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.dashboard-card {
  border-radius: 16px;
}

@media (max-width: 600px) {
  .dashboard-brand {
    padding: 12px 16px;
  }

  .dashboard-shell {
    margin-top: 20px;
  }
}


/* فقط داشبورد */
.dashboard-shell {
  width: min(100% - 32px, 1100px);
  margin: 36px auto 56px;
  color: #1e293b;
  font-family: "Vazirmatn", Tahoma, sans-serif;
}

.dashboard-shell,
.dashboard-shell * {
  box-sizing: border-box;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.dashboard-welcome h1 {
  margin: 0 0 8px;
  color: #172033;
  font-size: 1.65rem;
  font-weight: 800;
}

.dashboard-welcome > p {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
}

.dashboard-welcome > p strong {
  color: #334155;
  direction: ltr;
  unicode-bidi: isolate;
}

.dashboard-shell .user-details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 6px;
  color: #64748b;
  font-size: 0.88rem;
}

.dashboard-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-shell .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  border-radius: 9px;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
}

.dashboard-shell .btn-primary {
  background: #2563eb;
  border-color: #2563eb;
}

.dashboard-shell .btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.dashboard-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid #dc3545;
  border-radius: 9px;
  background: #fff;
  color: #c82333;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dashboard-logout:hover {
  background: #dc3545;
  color: #fff;
}

.dashboard-logout svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.dashboard-card {
  padding: 22px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.05);
}

.dashboard-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #edf1f5;
}

.dashboard-card-header h2 {
  margin: 0 0 5px;
  color: #172033;
  font-size: 1.15rem;
  font-weight: 800;
}

.dashboard-card-header p {
  margin: 0;
  color: #64748b;
  font-size: 0.88rem;
}

.brief-count {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 600;
}

.brief-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brief-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.brief-item h3 {
  margin: 0 0 4px;
  color: #243247;
  font-size: 0.98rem;
  font-weight: 700;
}

.brief-item p {
  margin: 0;
  color: #64748b;
  font-size: 0.84rem;
}

.dashboard-shell .btn-info {
  border-color: #0e9fbd;
  background: #0e9fbd;
  color: #fff;
}

.dashboard-shell .btn-info:hover {
  border-color: #087f98;
  background: #087f98;
}

.empty-state {
  padding: 30px 16px 22px;
  text-align: center;
}

.empty-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  place-items: center;
  border-radius: 15px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 1.6rem;
}

.empty-state h3 {
  margin: 0 0 6px;
  color: #243247;
  font-size: 1.05rem;
  font-weight: 800;
}

.empty-state p {
  margin: 0 0 16px;
  color: #64748b;
  font-size: 0.88rem;
}

@media (max-width: 700px) {
  .dashboard-header {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-actions {
    justify-content: flex-start;
  }

  .dashboard-card {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .dashboard-card-header,
  .brief-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .brief-item .btn {
    align-self: flex-start;
  }
}

/* =========================
   Navbar / Brand / Logout
   ========================= */
.app-navbar{
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #ffffff;
  border-bottom: 1px solid #e8eef5;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.app-navbar .container-fluid{
  min-height: 68px;
}

/* Brand */
.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo{
  width: auto;
  height: 38px;         /* جلوگیری از بزرگ شدن لوگو */
  max-width: 140px;
  object-fit: contain;
  display: block;
}

.brand-text{
  color: #0f172a;
  font-family: "Vazirmatn", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

/* دکمه خروج اصلی */
.logout-btn{
  --winston: #b22234;          /* قرمز وینستون */
  --winston-dark: #8f1a29;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  min-height: 40px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--winston);

  background: #fff;
  color: var(--winston);
  text-decoration: none;
  font-family: "Vazirmatn", sans-serif;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1;

  transition: all .2s ease;
}

.logout-btn svg{
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.logout-btn:hover{
  background: var(--winston);
  border-color: var(--winston);
  color: #fff;
}

.logout-btn:active{
  background: var(--winston-dark);
  border-color: var(--winston-dark);
  color: #fff;
  transform: translateY(1px);
}

.logout-btn:focus-visible{
  outline: 0;
  box-shadow: 0 0 0 3px rgba(178, 34, 52, 0.25);
}

/* اندازه موبایل */
@media (max-width: 576px){
  .app-navbar .container-fluid{
    min-height: 60px;
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  .brand-logo{
    height: 32px;
    max-width: 110px;
  }

  .brand-text{
    font-size: .9rem;
  }

  .logout-btn{
    min-height: 36px;
    padding: 7px 11px;
    font-size: .82rem;
  }

  .logout-btn svg{
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }
}

/* صفحه مشاهده بریف */
.brief-detail {
  --brief-primary: #2457c5;
  --brief-ink: #182338;
  --brief-muted: #718096;
  --brief-border: #e5eaf1;

  width: min(100% - 32px, 1040px);
  margin: 32px auto 56px;
  color: var(--brief-ink);
  font-family: "Vazirmatn", Tahoma, sans-serif;
}

.brief-detail,
.brief-detail * {
  box-sizing: border-box;
}

.brief-detail__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding: 22px 24px;
  border: 1px solid var(--brief-border);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at top right, rgba(36, 87, 197, .28), transparent 55%),
    #fff;
  box-shadow: 0 8px 26px rgba(20, 38, 70, .045);
}

.brief-detail__eyebrow {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--brief-primary);
  font-size: .8rem;
  font-weight: 700;
}

.brief-detail__heading h1 {
  margin: 0;
  color: var(--brief-ink);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 800;
}

.brief-detail__heading h1 span {
  color: var(--brief-primary);
  direction: ltr;
  unicode-bidi: isolate;
}

.brief-detail__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: var(--brief-muted);
  font-size: .9rem;
}

.brief-detail__meta strong {
  color: #344256;
  font-weight: 700;
}

.brief-detail__meta-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #b7c1d0;
}

.brief-detail__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #d8e2f4;
  border-radius: 10px;
  background: #fff;
  color: #315aa8;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  transition: .18s ease;
}

.brief-detail__back:hover {
  border-color: #b8cbed;
  background: #f4f7fd;
  color: #1e4591;
}

.brief-detail__back svg {
  width: 17px;
  height: 17px;
}

.brief-detail__section {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--brief-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(20, 38, 70, .04);
}

.brief-detail__section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.brief-detail__section-heading h2 {
  margin: 0;
  color: var(--brief-ink);
  font-size: 1.12rem;
  font-weight: 800;
}

.brief-detail__section-heading p {
  margin: 5px 0 0;
  color: var(--brief-muted);
  font-size: .84rem;
}

.brief-detail__count {
  flex: 0 0 auto;
  padding: 6px 11px;
  border: 1px solid #e1e9f7;
  border-radius: 999px;
  background: #f5f8fe;
  color: #385c9e;
  font-size: .78rem;
  font-weight: 700;
}

.brief-detail__answers {
  display: grid;
  gap: 12px;
}

.brief-answer {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 16px;
  border: 1px solid #e8edf4;
  border-radius: 13px;
  background: #fbfcfe;
}

.brief-answer__number {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 9px;
  background: #edf3ff;
  color: var(--brief-primary);
  font-size: .82rem;
  font-weight: 800;
}

.brief-answer__content {
  min-width: 0;
  flex: 1;
}

.brief-answer__content h3 {
  margin: 2px 0 8px;
  color: #334 font-weight  font-size: .9rem;
  font-weight: 700;
  line-height: 1.8;
}

.brief-answer__value {
  color: #58677c;
  font-size: .92rem;
  line-height: 1.9;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.brief-detail__empty {
  padding: 20px;
  border: 1px dashed #d9e1ec;
  border-radius: 12px;
  background: #fafbfd;
  color: var(--brief-muted);
  font-size: .9rem;
  text-align: center;
}

.brief-detail__file-list {
  display: grid;
  gap: 10px;
}

.brief-file {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  border: 1px solid #e8edf4;
  border-radius: 13px;
  background: #fbfcfe;
}

.brief-file__icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 12px;
  background: #edf3ff;
  color: var(--brief-primary);
}

.brief-file__icon svg {
  width: 21px;
  height: 21px;
}

.brief-file__info {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 4px;
}

.brief-file__question {
  overflow: hidden;
  color: var(--brief-muted);
  font-size: .78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brief-file__info a {
  overflow: hidden;
  color: #2858ae;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brief-file__info a:hover {
  text-decoration: underline;
}

.brief-file__download {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid #d8e2f4;
  border-radius: 9px;
  color: #315aa8;
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
  transition: .18s ease;
}

.brief-file__download:hover {
  background: #edf3ff;
}

@media (max-width: 640px) {
  .brief-detail {
    width: min(100% - 24px, 1040px);
    margin-top: 18px;
  }

  .brief-detail__header {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .brief-detail__section {
    padding: 16px;
  }

  .brief-detail__section-heading {
    align-items: flex-start;
  }

  .brief-answer {
    padding: 13px;
  }

  .brief-file {
    flex-wrap: wrap;
  }

  .brief-file__download {
    margin-right: 55px;
  }
}


/* تناسب بهتر سؤال و جواب و استفاده از عرض صفحه */
.brief-detail {
  width: min(100% - 40px, 1320px);
  margin: 24px auto 40px;
}

.brief-detail__header {
  margin-bottom: 16px;
  padding: 17px 21px;
}

.brief-detail__section {
  margin-top: 14px;
  padding: 18px 20px;
}

.brief-detail__section-heading {
  margin-bottom: 14px;
}

/* چیدمان دو ستونه روی صفحه‌های عریض */
.brief-detail__answers {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.brief-answer {
  gap: 11px;
  padding: 12px 14px;
}

.brief-answer__number {
  width: 27px;
  height: 27px;
  flex-basis: 27px;
  font-size: .76rem;
}

.brief-answer__content h3 {
  margin: 1px 0 5px;
  color: #536176;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.6;
}

.brief-answer__value {
  color: #263449;
  font-size: .9rem;
  line-height: 1.75;
}

/* سؤال‌هایی که جواب بلند دارند، تمام عرض باشند */
.brief-answer:has(.brief-answer__value) {
  min-width: 0;
}

.brief-detail__attachments {
  padding-top: 17px;
  padding-bottom: 17px;
}

.brief-detail__file-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.brief-file {
  gap: 10px;
  padding: 10px 12px;
}

.brief-file__icon {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
}

.brief-file__info a {
  font-size: .84rem;
}

@media (max-width: 900px) {
  .brief-detail__answers,
  .brief-detail__file-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brief-detail {
    width: calc(100% - 24px);
    margin-top: 14px;
  }

  .brief-detail__section {
    padding: 14px;
  }

  .brief-detail__header {
    padding: 16px;
  }
}


/* بهبود خوانایی صفحه مشاهده بریف + بک‌گراند نرم */
body:has(.brief-detail) {
  background:
    radial-gradient(circle at 85% 8%, rgba(36, 87, 197, 0.28), transparent 34%),
    radial-gradient(circle at 12% 18%, rgba(0, 171, 142, 0.22), transparent 32%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 42%, #f7fafc 100%);
}

/* اگر مرورگر قدیمی بود و :has را پشتیبانی نکرد، این هم کمک می‌کند */
.brief-detail {
  width: min(100% - 40px, 1360px);
  margin-top: 28px;
  font-size: 15.5px;
}

/* کارت بالای صفحه */
.brief-detail__header {
  background:
    radial-gradient(circle at 90% 0%, rgba(36, 87, 197, 0.28), transparent 34%),
    radial-gradient(circle at 6% 18%, rgba(0, 171, 142, 0.22), transparent 30%),
    rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

/* کارت‌های اصلی */
.brief-detail__section {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(250, 253, 255, 0.94));
  backdrop-filter: blur(8px);
}

/* تیترهای اصلی کمی خواناتر */
.brief-detail__heading h1 {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  letter-spacing: -0.4px;
}

.brief-detail__section-heading h2 {
  font-size: 1.22rem;
}

.brief-detail__section-heading p {
  font-size: .92rem;
}

/* شمارنده پاسخ‌ها */
.brief-detail__count {
  font-size: .84rem;
  padding: 7px 13px;
}

/* کارت هر پاسخ کمی خواناتر و خوش‌رنگ‌تر */
.brief-answer {
  min-height: 116px;
  padding: 16px 18px;
  border-color: rgba(36, 87, 197, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(247, 251, 255, 0.96));
  box-shadow: 0 6px 18px rgba(30, 61, 110, 0.035);
}

/* شماره سؤال */
.brief-answer__number {
  width: 31px;
  height: 31px;
  flex-basis: 31px;
  background: linear-gradient(135deg, #edf4ff, #eafaf7);
  color: #2457c5;
  font-size: .83rem;
}

/* متن سؤال: کمی بزرگ‌تر، اما نه غالب‌تر از جواب */
.brief-answer__content h3 {
  margin: 1px 0 9px;
  color: #44546a;
  font-size: .94rem;
  font-weight: 700;
  line-height: 1.75;
}

/* متن جواب: بزرگ‌تر و پررنگ‌تر از قبل */
.brief-answer__value {
  color: #172338;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.9;
}

/* فایل‌های پیوست هم کمی خواناتر */
.brief-file {
  padding: 13px 15px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.96));
}

.brief-file__question {
  font-size: .86rem;
}

.brief-file__info a {
  font-size: .96rem;
}

.brief-file__download {
  font-size: .86rem;
  padding: 8px 13px;
}


/* صفحه شروع بریف جدید */
body:has(.brief-start) {
  background:
    radial-gradient(circle at 88% 8%, rgba(36, 87, 197, .28), transparent 34%),
    radial-gradient(circle at 10% 20%, rgba(0, 171, 142, .22), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #fff 48%, #f7fafc 100%);
}

.brief-start {
  --start-blue: #2457c5;
  --start-ink: #182338;
  --start-muted: #718096;
  --start-border: #e3eaf2;

  width: min(100% - 40px, 1180px);
  margin: 28px auto 48px;
  color: var(--start-ink);
  font-family: "Vazirmatn", Tahoma, sans-serif;
  font-size: 15.5px;
}

.brief-start,
.brief-start * {
  box-sizing: border-box;
}

.brief-start__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 20px 24px;
  border: 1px solid rgba(227, 234, 242, .95);
  border-radius: 18px;
  background:
    radial-gradient(circle at 90% 0%, rgba(36, 87, 197, .28), transparent 34%),
    radial-gradient(circle at 8% 20%, rgba(0, 171, 142, .22), transparent 30%),
    rgba(255, 255, 255, .94);
  box-shadow: 0 8px 26px rgba(20, 38, 70, .045);
}

.brief-start__eyebrow {
  display: inline-block;
  margin-bottom: 5px;
  color: var(--start-blue);
  font-size: .86rem;
  font-weight: 700;
}

.brief-start__header h1 {
  margin: 0;
  color: var(--start-ink);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 800;
}

.brief-start__header p {
  margin: 7px 0 0;
  color: var(--start-muted);
  font-size: .96rem;
}

.brief-start__back,
.brief-start__cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  padding: 9px 15px;
  border: 1px solid #d8e2f4;
  border-radius: 10px;
  background: rgba(255, 255, 255, .92);
  color: #315aa8;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  transition: .18s ease;
}

.brief-start__back:hover,
.brief-start__cancel:hover {
  border-color: #b8cbed;
  background: #f3f7ff;
  color: #1e4591;
}

.brief-start__back span {
  font-size: 1.1rem;
  line-height: 1;
}

.brief-start__card {
  padding: 24px;
  border: 1px solid var(--start-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 26px rgba(20, 38, 70, .045);
}

.brief-start__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 22px;
}

.brief-start__field {
  min-width: 0;
}

.brief-start__field--wide {
  grid-column: 1 / -1;
}

.brief-start__label {
  display: block;
  margin-bottom: 8px;
  color: #344256;
  font-size: .96rem;
  font-weight: 700;
}

.brief-start__field input:not([type="checkbox"]):not([type="radio"]),
.brief-start__field select,
.brief-start__field textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid #dce4ed;
  border-radius: 10px;
  outline: none;
  background-color: #fff;
  color: #263449;
  font: inherit;
  font-size: .96rem;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.brief-start__field textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.8;
}

.brief-start__field input:focus,
.brief-start__field select:focus,
.brief-start__field textarea:focus {
  border-color: #7fa5ed;
  box-shadow: 0 0 0 4px rgba(36, 87, 197, .28);
}

.brief-start__field-error {
  margin-top: 6px;
  color: #b42335;
  font-size: .86rem;
}

.brief-start__errors {
  margin-bottom: 18px;
  padding: 12px 15px;
  border: 1px solid #f1c2c8;
  border-radius: 10px;
  background: #fff5f6;
  color: #a32132;
  font-size: .92rem;
}

.brief-start__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #edf0f4;
}

.brief-start__submit {
  min-height: 44px;
  padding: 10px 19px;
  border: 1px solid #2457c5;
  border-radius: 10px;
  background: linear-gradient(135deg, #2863d5, #2457c5);
  color: #fff;
  font: inherit;
  font-size: .94rem;
  font-weight: 700;
  cursor: pointer;
  transition: .18s ease;
}

.brief-start__submit:hover {
  border-color: #1e4591;
  background: #1e4eae;
  box-shadow: 0 5px 14px rgba(36, 87, 197, .28);
}

@media (max-width: 700px) {
  .brief-start {
    width: calc(100% - 24px);
    margin-top: 16px;
  }

  .brief-start__header {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .brief-start__card {
    padding: 17px;
  }

  .brief-start__fields {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .brief-start__field--wide {
    grid-column: auto;
  }
}

/* صفحه پاسخ به بریف */
body:has(.brief-response) {
  background:
    radial-gradient(circle at 88% 8%, rgba(36, 87, 197, .28), transparent 34%),
    radial-gradient(circle at 10% 20%, rgba(0, 171, 142, .22), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 45%, #f7fafc 100%);
}

.brief-response {
  --response-blue: #2457c5;
  --response-green: #00ab8e;
  --response-ink: #182338;
  --response-muted: #718096;
  --response-border: #e3eaf2;

  width: min(100% - 40px, 1260px);
  margin: 28px auto 50px;
  color: var(--response-ink);
  font-family: "Vazirmatn", Tahoma, sans-serif;
  font-size: 15.5px;
}

.brief-response,
.brief-response * {
  box-sizing: border-box;
}

/* هدر صفحه */
.brief-response__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
  padding: 20px 24px;
  border: 1px solid rgba(227, 234, 242, .95);
  border-radius: 18px;
  background:
    radial-gradient(circle at 90% 0%, rgba(36, 87, 197, .28), transparent 34%),
    radial-gradient(circle at 8% 20%, rgba(0, 171, 142, .22), transparent 30%),
    rgba(255, 255, 255, .94);
  box-shadow: 0 8px 26px rgba(20, 38, 70, .045);
}

.brief-response__eyebrow {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--response-blue);
  font-size: .86rem;
  font-weight: 700;
}

.brief-response__header h1 {
  margin: 0;
  color: var(--response-ink);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.35px;
}

.brief-response__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: var(--response-muted);
  font-size: .96rem;
}

.brief-response__meta strong {
  color: #344256;
  font-weight: 700;
}

.brief-response__meta-divider {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #b7c1d0;
}

/* دکمه برگشت */
.brief-response__back,
.brief-response__cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  padding: 9px 15px;
  border: 1px solid #d8e2f4;
  border-radius: 10px;
  background: rgba(255, 255, 255, .92);
  color: #315aa8;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  transition: .18s ease;
  cursor: pointer;
}

.brief-response__back:hover,
.brief-response__cancel:hover {
  border-color: #b8cbed;
  background: #f3f7ff;
  color: #1e4591;
}

.brief-response__back span {
  font-size: 1.1rem;
  line-height: 1;
}

/* کارت اصلی فرم */
.brief-response__card {
  padding: 24px;
  border: 1px solid var(--response-border);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .97), rgba(250, 253, 255, .95));
  box-shadow: 0 8px 26px rgba(20, 38, 70, .045);
}

/* خطاهای کلی */
.brief-response__errors {
  margin-bottom: 18px;
  padding: 12px 15px;
  border: 1px solid #f1c2c8;
  border-radius: 10px;
  background: #fff5f6;
  color: #a32132;
  font-size: .92rem;
}

/* چیدمان سوالات */
.brief-response__questions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 980px) {
  .brief-response__questions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* سوال‌های بلند، textarea، checkbox، radio و فایل بهتر است تمام عرض باشند */
  .brief-response__question:has(textarea),
  .brief-response__question:has(input[type="checkbox"]),
  .brief-response__question:has(input[type="radio"]),
  .brief-response__question:has(input[type="file"]) {
    grid-column: 1 / -1;
  }
}

/* کارت هر سوال */
.brief-response__question {
  min-width: 0;
  padding: 17px 18px;
  border: 1px solid rgba(36, 87, 197, .18);
  border-radius: 15px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(247, 251, 255, .96));
  box-shadow: 0 6px 18px rgba(30, 61, 110, .035);
}

/* عنوان سوال */
.brief-response__label {
  display: block;
  margin-bottom: 11px;
  color: #344256;
  font-size: .98rem;
  font-weight: 800;
  line-height: 1.8;
}

.brief-response__control {
  min-width: 0;
}

/* فیلدهای متنی، عدد، تاریخ، فایل و انتخابی */
.brief-response__control input:not([type="checkbox"]):not([type="radio"]),
.brief-response__control select,
.brief-response__control textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid #dce4ed;
  border-radius: 10px;
  outline: none;
  background-color: #fff;
  color: #263449;
  font: inherit;
  font-size: .96rem;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.brief-response__control textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.85;
}

.brief-response__control input:not([type="checkbox"]):not([type="radio"]):focus,
.brief-response__control select:focus,
.brief-response__control textarea:focus {
  border-color: #7fa5ed;
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(36, 87, 197, .28);
}

/* فایل */
.brief-response__control input[type="file"] {
  padding: 9px 12px;
  background:
    linear-gradient(135deg, #ffffff, #f8fbff);
  cursor: pointer;
}

/* checkbox و radio */
.brief-response__control ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.brief-response__control li {
  margin: 0;
  padding: 0;
}

.brief-response__control label:has(input[type="checkbox"]),
.brief-response__control label:has(input[type="radio"]) {
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #e3eaf2;
  border-radius: 10px;
  background: #fff;
  color: #344256;
  font-size: .94rem;
  font-weight: 600;
  line-height: 1.6;
  cursor: pointer;
  transition: .16s ease;
}

.brief-response__control label:has(input[type="checkbox"]):hover,
.brief-response__control label:has(input[type="radio"]):hover {
  border-color: #bfd0ee;
  background: #f6f9ff;
}

.brief-response__control input[type="checkbox"],
.brief-response__control input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--response-blue);
}

/* وقتی چند گزینه‌ای زیاد شد، در عرض صفحه پخش شود */
@media (min-width: 780px) {
  .brief-response__control ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1160px) {
  .brief-response__control ul {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* متن راهنما و خطای هر فیلد */
.brief-response__help {
  display: block;
  margin-top: 9px;
  color: var(--response-muted);
  font-size: .86rem;
  line-height: 1.7;
}

.brief-response__field-error {
  margin-top: 8px;
  color: #b42335;
  font-size: .86rem;
  line-height: 1.7;
}

/* دکمه‌ها */
.brief-response__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #edf0f4;
}

.brief-response__submit {
  min-height: 44px;
  padding: 10px 19px;
  border: 1px solid #2457c5;
  border-radius: 10px;
  background: linear-gradient(135deg, #2863d5, #2457c5);
  color: #fff;
  font: inherit;
  font-size: .94rem;
  font-weight: 700;
  cursor: pointer;
  transition: .18s ease;
}

.brief-response__submit:hover {
  border-color: #1e4591;
  background: #1e4eae;
  box-shadow: 0 5px 14px rgba(36, 87, 197, .18);
}

.brief-response__cancel {
  font-family: inherit;
}

/* موبایل */
@media (max-width: 700px) {
  .brief-response {
    width: calc(100% - 24px);
    margin-top: 16px;
  }

  .brief-response__header {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .brief-response__card {
    padding: 16px;
  }

  .brief-response__question {
    padding: 15px;
  }

  .brief-response__label {
    font-size: .94rem;
  }

  .brief-response__control ul {
    grid-template-columns: 1fr;
  }

  .brief-response__actions {
    flex-direction: column;
  }

  .brief-response__submit,
  .brief-response__cancel {
    width: 100%;
  }
}
/* فشرده‌سازی صفحه پاسخ به بریف و استفاده بهتر از فضا */
.brief-response {
  width: min(100% - 40px, 1180px);
  margin-top: 22px;
}

.brief-response__header {
  padding: 17px 20px;
  margin-bottom: 14px;
}

.brief-response__header h1 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.brief-response__meta {
  margin-top: 7px;
  font-size: .88rem;
}

.brief-response__card {
  padding: 18px;
}

/* چیدمان اصلی سوال‌ها */
.brief-response__questions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 900px) {
  .brief-response__questions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

/* کارت هر سوال فشرده‌تر */
.brief-response__question {
  padding: 13px 14px;
  border-radius: 13px;
  min-height: auto;
}

/* فقط سوال‌های واقعاً بلند تمام‌عرض باشند */
@media (min-width: 900px) {
  .brief-response__question:has(textarea),
  .brief-response__question:has(input[type="file"]) {
    grid-column: 1 / -1;
  }

  /* checkbox و radio دیگر تمام‌عرض نباشند */
  .brief-response__question:has(input[type="checkbox"]),
  .brief-response__question:has(input[type="radio"]) {
    grid-column: auto;
  }
}

.brief-response__label {
  margin-bottom: 8px;
  font-size: .9rem;
  line-height: 1.55;
}

/* فیلدهای متنی فشرده‌تر */
.brief-response__control input:not([type="checkbox"]):not([type="radio"]),
.brief-response__control select,
.brief-response__control textarea {
  min-height: 40px;
  padding: 8px 11px;
  border-radius: 9px;
  font-size: .9rem;
}

.brief-response__control textarea {
  min-height: 92px;
  line-height: 1.7;
}

/* گزینه‌های checkbox/radio به‌جای عمودیِ بلند، فشرده و چندستونه شوند */
.brief-response__control ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.brief-response__control li {
  margin: 0;
  padding: 0;
}

/* اگر CSS قبلی ul را grid کرده بود، این‌ها آن را خنثی می‌کند */
@media (min-width: 780px) {
  .brief-response__control ul {
    display: flex;
    grid-template-columns: none;
  }
}

@media (min-width: 1160px) {
  .brief-response__control ul {
    display: flex;
    grid-template-columns: none;
  }
}

.brief-response__control label:has(input[type="checkbox"]),
.brief-response__control label:has(input[type="radio"]) {
  width: auto;
  min-height: 31px;
  padding: 5px 9px;
  border-radius: 9px;
  font-size: .86rem;
  line-height: 1.4;
  white-space: nowrap;
}

.brief-response__control input[type="checkbox"],
.brief-response__control input[type="radio"] {
  width: 14px;
  height: 14px;
}

/* کمک‌متن و خطاها هم جمع‌وجورتر */
.brief-response__help,
.brief-response__field-error {
  margin-top: 6px;
  font-size: .8rem;
}

/* دکمه‌ها */
.brief-response__actions {
  margin-top: 18px;
  padding-top: 14px;
}

.brief-response__submit,
.brief-response__cancel {
  min-height: 40px;
  padding: 8px 16px;
  font-size: .88rem;
}


@media (min-width: 1250px) {
  .brief-response__questions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .brief-response__question:has(textarea),
  .brief-response__question:has(input[type="file"]) {
    grid-column: 1 / -1;
  }
}

/* یکسان‌سازی اندازه فیلدهای متنی با سوال‌های انتخابی */
@media (min-width: 900px) {
  /* textarea دیگر تمام عرض نباشد */
  .brief-response__question:has(textarea) {
    grid-column: auto;
  }

  /* فقط آپلود فایل اگر خواستی تمام عرض بماند */
  .brief-response__question:has(input[type="file"]) {
    grid-column: auto;
  }
}

/* کارت سوال‌ها کاملاً جمع‌وجور */
.brief-response__question {
  padding: 12px 13px;
  min-height: auto;
}

/* عنوان سوال جمع‌وجورتر */
.brief-response__label {
  margin-bottom: 7px;
  font-size: .88rem;
  line-height: 1.5;
}

/* فیلدهای متنی، عدد، تاریخ، انتخابی و textarea هم‌اندازه‌تر */
.brief-response__control input:not([type="checkbox"]):not([type="radio"]),
.brief-response__control select,
.brief-response__control textarea {
  min-height: 38px;
  padding: 7px 10px;
  border-radius: 9px;
  font-size: .88rem;
}

/* textarea مثل یک فیلد متنی فشرده شود، نه باکس بزرگ */
.brief-response__control textarea {
  min-height: 58px;
  max-height: 110px;
  line-height: 1.55;
  resize: vertical;
}

/* اگر بخواهی textarea حتی کوچک‌تر باشد */
.brief-response__control textarea:not(:focus) {
  height: 58px;
}

/* هنگام فوکوس کمی جا برای تایپ بیشتر بدهد */
.brief-response__control textarea:focus {
  min-height: 86px;
}

/* فاصله بین سوال‌ها کمتر */
.brief-response__questions {
  gap: 10px;
}

@media (min-width: 900px) {
  .brief-response__questions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

/* دکمه‌های checkbox/radio و فیلد متنی از نظر ارتفاع نزدیک شوند */
.brief-response__control label:has(input[type="checkbox"]),
.brief-response__control label:has(input[type="radio"]) {
  min-height: 30px;
  padding: 5px 9px;
  font-size: .85rem;
}


@media (min-width: 1250px) {
  .brief-response__questions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .brief-response__question:has(textarea),
  .brief-response__question:has(input[type="file"]),
  .brief-response__question:has(input[type="checkbox"]),
  .brief-response__question:has(input[type="radio"]) {
    grid-column: auto;
  }
}


/* ================================
   Dashboard Modern UI
   ================================ */

.dashboard-shell {
  width: min(100% - 40px, 980px);
  margin: 34px auto 56px;
  direction: rtl;
  font-family: "Vazirmatn", sans-serif;
}

/* هدر داشبورد */
.dashboard-header {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px 28px;
  margin-bottom: 18px;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 0%, rgba(36, 87, 197, 0.24), transparent 38%),
    radial-gradient(circle at 8% 100%, rgba(0, 171, 142, 0.18), transparent 42%),
    linear-gradient(135deg, #f6f9ff 0%, #eef6fb 100%);
  border: 1px solid rgba(36, 87, 197, 0.12);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.dashboard-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.28));
  pointer-events: none;
}

.dashboard-welcome,
.dashboard-actions {
  position: relative;
  z-index: 1;
}

.dashboard-welcome {
  text-align: right;
}

.dashboard-welcome h1 {
  margin: 0 0 7px;
  color: #0f172a;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 850;
  letter-spacing: -0.04em;
}

.dashboard-welcome p {
  margin: 0;
  color: #475569;
  font-size: 0.94rem;
  line-height: 1.9;
}

.dashboard-welcome strong {
  color: #2457c5;
  font-weight: 800;
  direction: ltr;
  display: inline-block;
}

.user-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 11px;
}

.user-name,
.user-company {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #334155;
  font-size: 0.82rem;
  font-weight: 650;
}

/* دکمه‌های بالای داشبورد */
.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-start;
}

.dashboard-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 15px;
  border-radius: 11px;
  font-size: 0.86rem;
  font-weight: 750;
  border-width: 1px;
  box-shadow: none;
}

.dashboard-actions .btn-primary {
  background: linear-gradient(135deg, #2457c5 0%, #1f6fe5 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 22px rgba(36, 87, 197, 0.24);
}

.dashboard-actions .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(36, 87, 197, 0.30);
}

.dashboard-actions .btn-outline-primary {
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(36, 87, 197, 0.36);
  color: #2457c5;
}

.dashboard-actions .btn-outline-primary:hover {
  background: rgba(36, 87, 197, 0.08);
  border-color: rgba(36, 87, 197, 0.45);
  color: #17429c;
}

/* کارت اصلی لیست بریف‌ها */
.dashboard-card {
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.94));
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.075);
}

/* هدر کارت */
.dashboard-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 2px 15px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.dashboard-card-header h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.06rem;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.dashboard-card-header p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.8;
}

.brief-count {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(36, 87, 197, 0.08);
  color: #2457c5;
  font-size: 0.78rem;
  font-weight: 800;
  border: 1px solid rgba(36, 87, 197, 0.12);
}

/* لیست بریف‌ها */
.brief-list {
  display: grid;
  gap: 10px;
}

/* هر آیتم بریف */
.brief-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 15px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.94));
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
  transition: 180ms ease;
}

.brief-item:hover {
  transform: translateY(-2px);
  border-color: rgba(36, 87, 197, 0.24);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(239, 246, 255, 0.96));
}

.brief-item h3 {
  margin: 0;
  color: #1e293b;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.8;
}

.brief-item p {
  margin: 3px 0 0;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.7;
}

/* دکمه مشاهده */
.brief-item .btn-info {
  min-width: 72px;
  min-height: 36px;
  padding: 7px 13px;
  border-radius: 10px;
  background: linear-gradient(135deg, #00a6c8 0%, #008fb1 100%);
  border: none;
%);
  border:fff;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 9px 18px rgba(0, 166, 200, 0.22);
}

.brief-item .btn-info:hover {
  background: linear-gradient(135deg, #0097b8 0%, #007f9e 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 166, 200, 0.28);
}

/* حالت بدون بریف */
.empty-state {
  padding: 34px 18px 30px;
  text-align: center;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(36, 87, 197, 0.10), transparent 42%),
    linear-gradient(180deg, #f8fbff 0%, #f2f7fb 100%);
  border: 1px dashed rgba(36, 87, 197, 0.22);
}

.empty-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #2457c5, #00ab8e);
  color: #fff;
  font-size: 1.7rem;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(36, 87, 197, 0.22);
}

.empty-state h3 {
  margin: 0 0 7px;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 850;
}

.empty-state p {
  margin: 0 0 17px;
  color: #64748b;
  font-size: 0.86rem;
}

.empty-state .btn-primary {
  min-height: 40px;
  padding: 8px 18px;
  border-radius: 11px;
  background: linear-gradient(135deg, #2457c5 0%, #1f6fe5 100%);
  border: none;
  font-size: 0.86rem;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(36, 87, 197, 0.24);
}

/* اصلاح alert سبز/آبی بالای صفحه که خیلی تخت دیده می‌شود */
.alert,
.messages .alert {
  width: min(100% - 32px, 1180px);
  margin: 14px auto 0;
  border-radius: 14px;
  font-family: "Vazirmatn", sans-serif;
  font-size: 0.86rem;
  border: 1px solid rgba(0, 171, 142, 0.18);
  background:
    linear-gradient(135deg, rgba(0, 171, 142, 0.13), rgba(36, 87, 197, 0.08));
  color: #0f766e;
}

/* دسکتاپ: هدر دو ستونه‌تر و حرفه‌ای‌تر */
@media (min-width: 768px) {
  .dashboard-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .dashboard-actions {
    justify-content: flex-end;
  }
}

/* موبایل */
@media (max-width: 640px) {
  .dashboard-shell {
    width: min(100% - 24px, 980px);
    margin-top: 22px;
  }

  .dashboard-header {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .dashboard-card {
    padding: 13px;
    border-radius: 18px;
  }

  .dashboard-card-header {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .brief-count {
    width: fit-content;
  }

  .brief-item {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 13px;
  }

  .brief-item .btn-info {
    width: 100%;
  }

  .dashboard-actions .btn {
    flex: 1 1 auto;
  }
}

body:has(.dashboard-shell) {
  background:
    radial-gradient(circle at 90% 0%, rgba(36, 87, 197, 0.24), transparent 38%),
    radial-gradient(circle at 8% 100%, rgba(0, 171, 142, 0.18), transparent 42%),
    linear-gradient(135deg, #f6f9ff 0%, #eef6fb 100%);
}

/* ================================
   Login Page Modern UI
   ================================ */

body:has(.login-shell) {
  background:
    radial-gradient(circle at 88% 12%, rgba(36, 87, 197, 0.24), transparent 34%),
    radial-gradient(circle at 8% 88%, rgba(0, 171, 142, 0.18), transparent 38%),
    linear-gradient(180deg, #f3f7ff 0%, #eaf3f6 100%);
}

/* بدنه صفحه ورود */
.login-shell {
  width: min(100% - 32px, 560px);
  min-height: calc(100vh - 210px);
  margin: 34px auto 60px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  direction: rtl;
  font-family: "Vazirmatn", sans-serif;
}

/* کارت ورود */
.login-card {
  position: relative;
  width: 100%;
  padding: 28px 30px 30px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 0%, rgba(36, 87, 197, 0.28), transparent 38%),
    radial-gradient(circle at 4% 100%, rgba(0, 171, 142, 0.22), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.92));
  border: 1px solid rgba(36, 87, 197, 0.14);
  box-shadow:
    0 22px 55px rgba(15, 23, 42, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.18));
  pointer-events: none;
}

.login-card > * {
  position: relative;
  z-index: 1;
}

/* هدر ورود */
.login-card__header {
  text-align: center;
  margin-bottom: 24px;
}

.login-card__icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #2457c5 0%, #00ab8e 100%);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 850;
  box-shadow: 0 16px 32px rgba(36, 87, 197, 0.25);
}

.login-card__header h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 900;
  letter-spacing: -0.045em;
}

.login-card__header p {
  margin: 8px auto 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.9;
}

/* فرم */
.login-form {
  display: grid;
  gap: 16px;
}

.login-field {
  display: grid;
  gap: 8px;
}

.login-field label {
  color: #334155;
  font-size: 0.88rem;
  font-weight: 800;
}

.required-star {
  color: #dc2626;
  font-weight: 900;
}

/* input موبایل */
.login-field input {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(255, 255, 255, 0.90);
  color: #0f172a;
  font-size: 0.92rem;
  font-family: "Vazirmatn", sans-serif;
  outline: none;
  transition: 180ms ease;
  direction: ltr;
  text-align: left;
}

.login-field input::placeholder {
  color: #94a3b8;
}

.login-field input:hover {
  border-color: rgba(36, 87, 197, 0.34);
  background: #fff;
}

.login-field input:focus {
  border-color: rgba(36, 87, 197, 0.72);
  background: #fff;
  box-shadow:
    0 0 0 4px rgba(36, 87, 197, 0.11),
    0 8px 20px rgba(15, 23, 42, 0.06);
}

/* خطا */
.login-field__error {
  color: #b91c1c;
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.7;
}

.login-alert {
  margin-bottom: 16px;
  padding: 11px 13px;
  border-radius: 13px;
  font-size: 0.84rem;
  line-height: 1.8;
}

.login-alert--danger {
  color: #991b1b;
  background: rgba(254, 226, 226, 0.78);
  border: 1px solid rgba(239, 68, 68, 0.20);
}

/* دکمه ورود */
.login-submit {
  width: 100%;
  min-height: 46px;
  border: none;
  border-radius: 13px;
  background: linear-gradient(135deg, #2457c5 0%, #1f6fe5 100%);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 850;
  font-family: "Vazirmatn", sans-serif;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(36, 87, 197, 0.25);
  transition: 180ms ease;
}

.login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(36, 87, 197, 0.32);
  background: linear-gradient(135deg, #1f4eb2 0%, #1d63d0 100%);
}

.login-submit:active {
  transform: translateY(0);
  box-shadow: 0 10px 22px rgba(36, 87, 197, 0.24);
}

/* اصلاح پیام خروج موفق فقط در صفحه ورود */
body:has(.login-shell) .alert,
body:has(.login-shell) .messages .alert {
  width: min(100% - 32px, 840px);
  margin: 14px auto 0;
  border-radius: 14px;
  border: 1px solid rgba(0, 171, 142, 0.18);
  background:
    linear-gradient(135deg, rgba(0, 171, 142, 0.16), rgba(36, 87, 197, 0.10));
  color: #0f766e;
  font-size: 0.86rem;
  font-family: "Vazirmatn", sans-serif;
}

/* موبایل */
@media (max-width: 640px) {
  .login-shell {
    width: min(100% - 24px, 560px);
    margin-top: 24px;
    min-height: auto;
  }

  .login-card {
    padding: 24px 18px 22px;
    border-radius: 20px;
  }

  .login-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  .login-field input,
  .login-submit {
    min-height: 44px;
  }
}

/* ================================
   Person Register Modern UI
   ================================ */

body:has(.person-register-shell) {
  background:
    radial-gradient(circle at 88% 12%, rgba(36, 87, 197, 0.24), transparent 34%),
    radial-gradient(circle at 8% 88%, rgba(0, 171, 142, 0.18), transparent 38%),
    linear-gradient(180deg, #f3f7ff 0%, #eaf3f6 100%);
}

.person-register-shell {
  width: min(100% - 40px, 1180px);
  margin: 28px auto 58px;
  direction: rtl;
  font-family: "Vazirmatn", sans-serif;
}

/* هدر صفحه */
.person-register-header {
  position: relative;
  padding: 24px 28px;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% 0%, rgba(36, 87, 197, 0.28), transparent 38%),
    radial-gradient(circle at 8% 100%, rgba(0, 171, 142, 0.22), transparent 42%),
    linear-gradient(135deg, #f7faff 0%, #eef7fb 100%);
  border: 1px solid rgba(36, 87, 197, 0.13);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.person-register-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.72), rgba(255,255,255,0.24));
  pointer-events: none;
}

.person-register-header > div {
  position: relative;
  z-index: 1;
}

.person-register-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 11px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(36, 87, 197, 0.09);
  color: #2457c5;
  font-size: 0.78rem;
  font-weight: 850;
  border: 1px solid rgba(36, 87, 197, 0.12);
}

.person-register-header h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  font-weight: 900;
  letter-spacing: -0.045em;
}

.person-register-header p {
  margin: 7px 0 0;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.9;
}

/* کارت اصلی فرم */
.person-register-card {
  padding: 20px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,251,255,0.94));
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

/* سکشن‌ها */
.person-section {
  padding: 18px 18px 20px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(247,250,255,0.86));
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.person-section + .person-section {
  margin-top: 14px;
}

.person-section__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 13px;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.person-section__head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.person-section__head p {
  margin: 3px 0 0;
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.8;
}

/* گرید فیلدها */
.person-grid {
  display: grid;
  gap: 14px;
}

.person-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* فیلدها */
.person-field {
  display: grid;
  gap: 7px;
}

.person-field--full {
  width: 100%;
}

.person-field label {
  color: #334155;
  font-size: 0.82rem;
  font-weight: 800;
}

.required-star {
  color: #dc2626;
  font-weight: 900;
}

/* کنترل‌های فرم */
.person-register-shell input[type="text"],
.person-register-shell input[type="email"],
.person-register-shell input[type="tel"],
.person-register-shell input[type="number"],
.person-register-shell input[type="password"],
.person-register-shell select,
.person-register-shell textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 11px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font-family: "Vazirmatn", sans-serif;
  font-size: 0.86rem;
  outline: none;
  transition: 170ms ease;
}

.person-register-shell textarea {
  min-height: 88px;
  resize: vertical;
  line-height: 1.9;
}

.person-register-shell input:hover,
.person-register-shell select:hover,
.person-register-shell textarea:hover {
  border-color: rgba(36, 87, 197, 0.34);
  background: #fff;
}

.person-register-shell input:focus,
.person-register-shell select:focus,
.person-register-shell textarea:focus {
  border-color: rgba(36, 87, 197, 0.72);
  background: #fff;
  box-shadow:
    0 0 0 4px rgba(36, 87, 197, 0.10),
    0 8px 20px rgba(15, 23, 42, 0.055);
}

/* فیلدهای شماره و ایمیل بهتر است چپ‌چین باشند */
.person-register-shell input[type="tel"],
.person-register-shell input[type="email"] {
  direction: ltr;
  text-align: left;
}

/* متن راهنما و خطا */
.person-help {
  color: #64748b;
  font-size: 0.72rem;
  line-height: 1.7;
}

.person-error {
  color: #b91c1c;
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.7;
}

/* شبکه‌های ارتباطی */
.person-social-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.person-check {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 13px;
  cursor: pointer;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(248,251,255,0.90));
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #334155;
  font-size: 0.84rem;
  font-weight: 750;
  transition: 170ms ease;
}

.person-check:hover {
  transform: translateY(-1px);
  border-color: rgba(36, 87, 197, 0.28);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.055);
}

.person-check input {
  width: 16px;
  height: 16px;
  accent-color: #2457c5;
}

/* دکمه‌ها */
.person-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding-top: 16px;
  margin-top: 4px;
}

.person-submit,
.person-cancel {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 12px;
  font-family: "Vazirmatn", sans-serif;
  font-size: 0.86rem;
  font-weight: 850;
  text-decoration: none;
  transition: 170ms ease;
}

.person-submit {
  border: none;
  color: #fff;
  background: linear-gradient(135deg, #00ab8e 0%, #07966e 100%);
  box-shadow: 0 12px 24px rgba(0, 171, 142, 0.24);
  cursor: pointer;
}

.person-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(0, 171, 142, 0.30);
  background: linear-gradient(135deg, #009b80 0%, #07845f 100%);
}

.person-cancel {
  color: #64748b;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.person-cancel:hover {
  color: #334155;
  background: rgba(248, 250, 252, 0.95);
  border-color: rgba(148, 163, 184, 0.42);
}

/* alert */
.person-alert {
  margin-bottom: 14px;
  padding: 11px 13px;
  border-radius: 13px;
  font-size: 0.84rem;
  line-height: 1.8;
}

.person-alert--danger {
  color: #991b1b;
  background: rgba(254, 226, 226, 0.78);
  border: 1px solid rgba(239, 68, 68, 0.20);
}

/* ریسپانسیو */
@media (max-width: 1100px) {
  .person-grid--4,
  .person-social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .person-register-shell {
    width: min(100% - 24px, 1180px);
    margin-top: 22px;
  }

  .person-register-header {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .person-register-card {
    padding: 13px;
    border-radius: 18px;
  }

  .person-section {
    padding: 15px 13px 16px;
    border-radius: 15px;
  }

  .person-section__head {
    display: block;
  }

  .person-grid--4,
  .person-social-grid {
    grid-template-columns: 1fr;
  }

  .person-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .person-submit,
  .person-cancel {
    width: 100%;
  }
}


.login-card__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.42)),
    linear-gradient(135deg, rgba(36, 87, 197, 0.22), rgba(0, 171, 142, 0.18));
  border: 1px solid rgba(36, 87, 197, 0.16);
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 2.45rem;
  line-height: 1;
  box-shadow:
    0 18px 36px rgba(36, 87, 197, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  user-select: none;
}


/* Bigger Brief Login Icon */
.login-card__icon.login-card__icon--brief {
  width: 104px;
  height: 104px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 30px;

  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.34)),
    linear-gradient(135deg, rgba(36, 87, 197, 0.20), rgba(0, 171, 142, 0.18));

  border: 1px solid rgba(36, 87, 197, 0.18);

  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 4.15rem;
  line-height: 1;

  box-shadow:
    0 20px 46px rgba(36, 87, 197, 0.22),
    0 10px 24px rgba(0, 171, 142, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);

  user-select: none;
  transform: translateY(-2px);
}

.brief-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #e6edf5;
  border-radius: 14px;
  background: #fff;
  margin-bottom: 12px;
}

.brief-item-info h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: #1f2d3d;
}

.brief-item-info p {
  margin: 0;
  font-size: 13px;
  color: #6b7a90;
}

.brief-item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.action-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 18px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.action-icon:hover {
  transform: translateY(-2px);
}

.action-view {
  background: #e8f7fc;
  color: #0c8db3;
  border-color: #c9edf7;
}

.action-view:hover {
  background: #d7f2fa;
  color: #086f8d;
}

.action-excel {
  background: #eaf8ef;
  color: #1f8f4e;
  border-color: #cfeeda;
}

.action-excel:hover {
  background: #dbf4e5;
  color: #176b3a;
}

.action-pdf {
  background: #fdecec;
  color: #d64545;
  border-color: #f8cfcf;
}

/* ===== Fix: Darker top navbar + red logout button (scoped) ===== */
nav.navbar.app-navbar{
  background: linear-gradient(135deg, #083b7a 0%, #0d4f9e 45%, #1565c0 100%) !important;
  border-bottom: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 6px 16px rgba(0,0,0,.22);
}

/* only inside top navbar */
nav.navbar.app-navbar .brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

nav.navbar.app-navbar .brand-text{
  color: #ffffff !important;
  font-weight: 800;
}

nav.navbar.app-navbar .brand-logo{
  height: 34px;
  width: auto;
  object-fit: contain;
}

/* logout button: red */
nav.navbar.app-navbar .logout-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #fff !important;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  border: 1px solid #991b1b;
  transition: all .2s ease;
}

nav.navbar.app-navbar .logout-btn:hover{
  color: #fff !important;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: #b91c1c;
  transform: translateY(-1px);
}

nav.navbar.app-navbar .logout-btn svg{
  width: 18px;
  height: 18px;
}



