/* ===== REVIEW SCREEN ===== */
.review-card { background: #fff; border-radius: 16px; padding: 32px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.review-card h2 { font-size: 22px; font-weight: 800; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 2px solid #f0f0f0; }
.review-section h3 { font-size: 16px; font-weight: 700; color: #2d6a4f; margin: 24px 0 12px 0; padding-bottom: 8px; border-bottom: 1px solid #e9ecef; }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .review-grid { grid-template-columns: 1fr; } }
.review-actions { margin-top: 28px; display: flex; gap: 12px; }



/* ===== ACTION ITEMS (مصوبات) ===== */
.action-items-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-item {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 140px 120px 40px;
  gap: 10px;
  align-items: start;
}

.action-item input, 
.action-item textarea {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 8px;
  font-family: inherit;
  font-size: 14px;
}

.action-item textarea {
  resize: vertical;
  min-height: 40px;
}

.btn-remove-item {
  background: #ff4d4f;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.2s;
}

.btn-remove-item:hover {
  background: #d9363e;
}

/* در موبایل فیلدها زیر هم قرار بگیرند */
@media (max-width: 600px) {
  .action-item {
    grid-template-columns: 1fr;
  }
  .btn-remove-item {
    width: 100%;
  }
}

/* ===== ACTION ITEMS HEADER ===== */
.action-items-header {
  display: grid;
  grid-template-columns: 1fr 140px 120px; /* ستون 40 پیکسلی دکمه حذف شد */
  gap: 12px;
  padding: 0 12px 6px 0;
  margin-left: 52px; /* جبران فضای دکمه شناور در سمت چپ برای هم‌ترازی با فیلدها */
  font-weight: 700;
  font-size: 14px;
  color: #495057;
  text-align: right;
}

.action-items-container {
  display: flex;
  flex-direction: column;
  gap: 16px; 
}

/* ===== ACTION ITEM CARD ===== */
.action-item {
  position: relative; /* برای شناور کردن دکمه حذف در دسکتاپ */
  background: #fcfcfc;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 16px;
  padding-left: 52px; /* ایجاد فضا در سمت چپ برای دکمه حذف */
  display: flex;
  flex-direction: column;
  gap: 12px; 
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.action-item-top {
  display: grid;
  grid-template-columns: 1fr 140px 120px; 
  gap: 12px;
  align-items: start;
}

.action-item input, 
.action-item textarea {
  width: 100%;
  border: 1px solid #ced4da;
  border-radius: 6px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s;
}

.action-item input:focus, 
.action-item textarea:focus {
  outline: none;
  border-color: #a3c4f3; /* یک رنگ ملایم برای حالت فوکوس */
}

.action-item textarea {
  resize: vertical;
  min-height: 70px; 
  background: #ffffff; 
}

/* ===== DELETE BUTTON (DESKTOP) ===== */
.btn-remove-item {
  position: absolute;
  left: 12px;
  top: 16px;
  width: 32px;
  height: 32px;
  background: #fff1f0; /* پس‌زمینه پاستلی ملایم */
  color: #ff4d4f;
  border: 1px solid #ffa39e;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  transition: all 0.2s ease;
}

.btn-remove-item:hover {
  background: #ff4d4f;
  color: #ffffff;
}

.btn-remove-item .remove-text {
  display: none; /* مخفی کردن متن در دسکتاپ */
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 600px) {
  .action-items-header {
    display: none !important;
  }
  .action-item {
    padding: 16px; /* حذف پدینگ اضافی سمت چپ */
  }
  .action-item-top {
    grid-template-columns: 1fr;
  }
  
  /* تغییر استایل دکمه حذف به یک دکمه تمام عرض در پایین کارت */
  .btn-remove-item {
    position: relative;
    left: auto;
    top: auto;
    order: 3; /* CSS Magic: انتقال المان به پایین‌ترین قسمت (زیر textarea) */
    width: 100%;
    height: 40px;
    margin-top: 4px;
    background: transparent;
    border: 1px dashed #ffa39e;
    border-radius: 6px;
    font-size: 14px;
  }
  
  .btn-remove-item:hover {
    background: #fff1f0;
    color: #d9363e;
  }

  .btn-remove-item .remove-icon {
    margin-left: 6px;
    font-size: 18px;
  }
  
  .btn-remove-item .remove-text {
    display: inline; /* نمایش متن "حذف مصوبه" در موبایل */
  }
}
