/* ============================================
   WORKSHOP STYLES - نسخه نهایی با 
   برای اطمینان از عدم تداخل با استایل‌های قالب
   ============================================ */

/* ----- ۱. تنظیمات کلی کارگاه ----- */
.workshop-session {
  direction: rtl ;
  text-align: right ;
  font-size: 15px ;
  line-height: 2 ;
  color: #1f2937 ;
  max-width: 800px ;
  margin: 0 auto ;
  padding: 0 16px ;
}

/* ----- ۲. هر بخش ----- */
.workshop-section {
  margin-bottom: 2.5rem ;
  padding-bottom: 2rem ;
  border-bottom: 1px dashed #e5e7eb ;
}

.workshop-section:last-child {
  border-bottom: none ;
}

/* ----- ۳. تیتر هر بخش ----- */
.workshop-section h3 {
  display: flex ;
  align-items: center ;
  margin: 0 0 16px 0 ;
  padding: 12px 16px ;
  font-size: 18px ;
  font-weight: 700 ;
  color: #111827 ;
  background: #f9fafb ;
  border-radius: 10px ;
  border-right: 5px solid #0f766e ;
}

.workshop-section h3 svg {
  width: 22px ;
  height: 22px ;
  flex-shrink: 0 ;
  margin-left: 10px ;
  display: inline-block ;
  vertical-align: middle ;
}

/* ----- ۴. پاراگراف‌ها ----- */
.workshop-section p {
  margin: 0 0 16px 0 ;
  color: #374151 ;
  line-height: 2 ;
  font-size: 15px ;
}

/* ============================================
   ۵. TEXTAREA و INPUT - بخش حیاتی
   ============================================ */
.workshop-input-area {
  margin-top: 12px ;
}

/* استایل اصلی textarea */
.workshop-input-area textarea,
.workshop-section textarea,
textarea[data-input-type="textarea"] {
  display: block ;
  width: 100% ;
  max-width: 100% ;
  min-height: 100px ;
  padding: 16px 18px ;
  border: 2px solid #d1d5db ;
  border-radius: 12px ;
  font-family: 'Vazir', 'IRANSans', 'Vazirmatn', tahoma, sans-serif ;
  font-size: 14px ;
  line-height: 2 ;
  color: #1f2937 ;
  background-color: #ffffff ;
  box-sizing: border-box ;
  resize: vertical ;
  outline: none ;
  transition: all 0.3s ease ;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06) ;
  margin-bottom: 12px ;
}

/* hover textarea */
.workshop-input-area textarea:hover,
.workshop-section textarea:hover {
  border-color: #9ca3af ;
  background-color: #fafafa ;
}

/* focus textarea */
.workshop-input-area textarea:focus,
.workshop-section textarea:focus {
  border-color: #0f766e ;
  background-color: #fafffe ;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12) ;
}

/* placeholder textarea */
.workshop-input-area textarea::placeholder,
.workshop-section textarea::placeholder {
  color: #9ca3af ;
  font-style: italic ;
  opacity: 1 ;
  font-size: 13px ;
}

/* استایل اصلی input text */
.workshop-input-area input[type="text"],
.workshop-section input[type="text"],
input[data-input-type="text"] {
  display: block ;
  width: 100% ;
  max-width: 100% ;
  padding: 14px 18px ;
  border: 2px solid #d1d5db ;
  border-radius: 12px ;
  font-family: 'Vazir', 'IRANSans', 'Vazirmatn', tahoma, sans-serif ;
  font-size: 14px ;
  line-height: 1.8 ;
  color: #1f2937 ;
  background-color: #ffffff ;
  box-sizing: border-box ;
  outline: none ;
  transition: all 0.3s ease ;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06) ;
  margin-bottom: 12px ;
}

/* hover input */
.workshop-input-area input[type="text"]:hover,
.workshop-section input[type="text"]:hover {
  border-color: #9ca3af ;
  background-color: #fafafa ;
}

/* focus input */
.workshop-input-area input[type="text"]:focus,
.workshop-section input[type="text"]:focus {
  border-color: #0f766e ;
  background-color: #fafffe ;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12) ;
}

/* placeholder input */
.workshop-input-area input[type="text"]::placeholder,
.workshop-section input[type="text"]::placeholder {
  color: #9ca3af ;
  font-style: italic ;
  opacity: 1 ;
  font-size: 13px ;
}

/* ----- ۶. لیبل‌ها ----- */
.workshop-input-area label {
  display: block ;
  margin-bottom: 10px ;
  font-weight: 700 ;
  font-size: 15px ;
  color: #111827 ;
}

/* ============================================
   ۷. دکمه‌ها - بخش حیاتی
   ============================================ */

/* گروه دکمه‌ها */
.workshop-button-group {
  margin-top: 12px ;
  display: flex ;
  gap: 10px ;
  align-items: center ;
  flex-wrap: wrap ;
}

/* دکمه ذخیره */
.workshop-save-btn,
button.workshop-save-btn {
  display: inline-flex ;
  align-items: center ;
  justify-content: center ;
  gap: 6px ;
  background: #fe4603 ;
  color: #ffffff ;
  border: none ;
  padding: 12px 28px ;
  border-radius: 10px ;
  cursor: pointer ;
  font-family: 'Vazir', 'IRANSans', 'Vazirmatn', tahoma, sans-serif ;
  font-size: 14px ;
  font-weight: 700 ;
  letter-spacing: -0.2px ;
  transition: all 0.25s ease ;
  box-shadow: 0 2px 6px rgba(15, 118, 110, 0.25) ;
  text-decoration: none ;
  line-height: 1.5 ;
  min-width: 100px ;
  text-align: center ;
}

.workshop-save-btn:hover,
button.workshop-save-btn:hover {
  background: #115e59 ;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.35) ;
  transform: translateY(-2px) ;
  color: #ffffff ;
}

.workshop-save-btn:active,
button.workshop-save-btn:active {
  transform: translateY(0) ;
  box-shadow: 0 1px 3px rgba(15, 118, 110, 0.2) ;
  background: #0d5d56 ;
}

/* دکمه ویرایش */
.workshop-edit-btn,
button.workshop-edit-btn {
  display: inline-flex ;
  align-items: center ;
  justify-content: center ;
  gap: 6px ;
  background: #ffffff ;
  color: #374151 ;
  border: 2px solid #d1d5db ;
  padding: 12px 28px ;
  border-radius: 10px ;
  cursor: pointer ;
  font-family: 'Vazir', 'IRANSans', 'Vazirmatn', tahoma, sans-serif ;
  font-size: 14px ;
  font-weight: 700 ;
  letter-spacing: -0.2px ;
  transition: all 0.25s ease ;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04) ;
  text-decoration: none ;
  line-height: 1.5 ;
  min-width: 100px ;
  text-align: center ;
}

.workshop-edit-btn:hover,
button.workshop-edit-btn:hover {
  background: #f9fafb ;
  border-color: #9ca3af ;
  color: #111827 ;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08) ;
}

.workshop-edit-btn:active,
button.workshop-edit-btn:active {
  background: #f3f4f6 ;
  border-color: #6b7280 ;
}

/* دکمه قبول چالش */
.workshop-challenge-btn,
button.workshop-challenge-btn {
  display: inline-flex ;
  align-items: center ;
  justify-content: center ;
  gap: 8px ;
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%) ;
  color: #ffffff ;
  border: none ;
  padding: 14px 32px ;
  border-radius: 12px ;
  cursor: pointer ;
  font-family: 'Vazir', 'IRANSans', 'Vazirmatn', tahoma, sans-serif ;
  font-size: 15px ;
  font-weight: 700 ;
  letter-spacing: -0.3px ;
  transition: all 0.3s ease ;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.3) ;
  text-decoration: none ;
  line-height: 1.5 ;
  min-width: 140px ;
  text-align: center ;
  margin-top: 12px ;
}

.workshop-challenge-btn:hover,
button.workshop-challenge-btn:hover {
  background: linear-gradient(135deg, #115e59 0%, #0f766e 100%) ;
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.45) ;
  transform: translateY(-3px) ;
  color: #ffffff ;
}

.workshop-challenge-btn:active,
button.workshop-challenge-btn:active {
  transform: translateY(0) ;
  box-shadow: 0 2px 6px rgba(15, 118, 110, 0.25) ;
}

/* ----- ۸. پیام ذخیره شدن ----- */
.workshop-saved-msg {
  display: none ;
  font-size: 13px ;
  color: #0f766e ;
  font-weight: 600 ;
}

/* ----- ۹. باکس چالش ----- */
.workshop-challenge-box {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) ;
  padding: 20px 24px ;
  border-radius: 14px ;
  margin-top: 16px ;
  border: 2px solid #fde68a ;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1) ;
}

.workshop-challenge-box strong {
  display: block ;
  font-size: 16px ;
  color: #92400e ;
  margin-bottom: 6px ;
}

.workshop-challenge-box small {
  display: block ;
  color: #b45309 ;
  font-size: 13px ;
  margin-bottom: 16px ;
}

/* ----- ۱۰. جدول مقایسه ----- */
.workshop-section table {
  width: 100% ;
  border-collapse: collapse ;
  margin: 16px 0 ;
  font-size: 13px ;
  border-radius: 12px ;
  overflow: hidden ;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06) ;
}

.workshop-section table thead tr {
  background: #f3f4f6 ;
}

.workshop-section table th {
  padding: 14px 16px ;
  border: 1px solid #e5e7eb ;
  text-align: right ;
  font-weight: 700 ;
  font-size: 14px ;
  color: #111827 ;
  background: #f3f4f6 ;
}

.workshop-section table td {
  padding: 12px 16px ;
  border: 1px solid #e5e7eb ;
  vertical-align: top ;
  background: #ffffff ;
}

.workshop-section table tr:hover td {
  background: #fafdfc ;
}

/* textarea داخل جدول */
.workshop-section table td textarea {
  width: 100% ;
  border: 1px solid #e5e7eb ;
  resize: vertical ;
  font-family: 'Vazir', 'IRANSans', 'Vazirmatn', tahoma, sans-serif ;
  font-size: 13px ;
  line-height: 1.8 ;
  padding: 10px 12px ;
  border-radius: 8px ;
  background: #fafafa ;
  outline: none ;
  box-sizing: border-box ;
  min-height: 50px ;
  transition: all 0.2s ease ;
  margin-bottom: 0 ;
}

.workshop-section table td textarea:hover {
  border-color: #9ca3af ;
  background: #ffffff ;
}

.workshop-section table td textarea:focus {
  border-color: #0f766e ;
  background: #ffffff ;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1) ;
}

/* ----- ۱۱. باکس نقل‌قول انگیزشی ----- */
.workshop-action-quote {
  margin-top: 24px ;
  padding: 20px 24px ;
  background: #f0fdf4 ;
  border-right: 5px solid #10b981 ;
  border-radius: 10px ;
}

.workshop-action-quote p {
  margin: 0 ;
  font-style: italic ;
  color: #065f46 ;
  font-size: 15px ;
  line-height: 2 ;
}

/* ----- ۱۲. ریسپانسیو موبایل ----- */
@media (max-width: 768px) {
  .workshop-session {
    padding: 0 8px ;
    font-size: 14px ;
  }

  .workshop-section h3 {
    font-size: 16px ;
    padding: 10px 12px ;
  }

  .workshop-input-area textarea,
  .workshop-section textarea {
    padding: 12px 14px ;
    font-size: 13px ;
    min-height: 80px ;
  }

  .workshop-input-area input[type="text"],
  .workshop-section input[type="text"] {
    padding: 10px 14px ;
    font-size: 13px ;
  }

  .workshop-save-btn,
  .workshop-edit-btn {
    padding: 10px 20px ;
    font-size: 13px ;
    min-width: 80px ;
  }

  .workshop-challenge-btn {
    padding: 12px 24px ;
    font-size: 14px ;
    min-width: 120px ;
  }

  .workshop-section table {
    font-size: 11px ;
  }

  .workshop-section table th,
  .workshop-section table td {
    padding: 8px 10px ;
  }

  .workshop-button-group {
    flex-direction: column ;
    align-items: flex-start ;
  }
}


/* کارت مقایسه */
.comparison-card {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
}

.comparison-card-title {
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: bold;
}

.comparison-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.comparison-good {
  background: #f0fdf4;
  padding: 12px;
  border-radius: 10px;
  border-right: 4px solid #10b981;
}

.comparison-good-label {
  font-size: 11px;
  color: #065f46;
  font-weight: bold;
  margin-bottom: 4px;
}

.comparison-bad {
  background: #fef2f2;
  padding: 12px;
  border-radius: 10px;
  border-right: 4px solid #ef4444;
}

.comparison-bad-label {
  font-size: 11px;
  color: #991b1b;
  font-weight: bold;
  margin-bottom: 4px;
}

.comparison-my-choice {
  background: #fafafa;
  border: 2px dashed #d1d5db;
  border-radius: 10px;
  padding: 12px;
}

.comparison-my-label {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 6px;
}

.comparison-my-choice textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px;
  font-family: inherit;
  font-size: 13px;
  resize: vertical;
  box-sizing: border-box;
}


/* ===========================
   باکس هدف از تمرین
   =========================== */
.exercise-goal-box {
 
    align-items: flex-start;
    gap: 14px;
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 100%);
    border: 1px solid #99f6e4;
    border-right: 5px solid #0f766e;
    border-radius: 14px;
    padding: 18px 22px;
    margin: 20px 0 24px 0;
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.07);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.exercise-goal-box::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 90px;
    height: 90px;
    background: #14b8a6;
    opacity: 0.04;
    border-radius: 50%;
    pointer-events: none;
}

.exercise-goal-box:hover {
    box-shadow: 0 8px 24px rgba(15, 118, 110, 0.12);
    transform: translateY(-1px);
    border-right-color: #0d9488;
}

/* آیکون هدف */
.goal-icon {

    display: flex;
    align-items: center;
    justify-content: center;
    
}

.goal-icon svg {
    width: 20px;
    height: 20px;
    color: #0f766e;
}

.goal-icon svg path {
    stroke: #0f766e;
}

/* محتوای هدف */
.goal-content {
    flex: 1;
    font-family: 'IranSans', 'Vazirmatn', 'Shabnam', sans-serif;
    font-size: 0.92rem;
    line-height: 2;
    color: #134e4a;
}

.goal-content strong {
    display: inline-block;
    color: #0f766e;
    font-weight: 700;
    font-size: 0.95rem;
    margin-left: 6px;
    letter-spacing: -0.2px;
    position: relative;
}

.goal-content strong::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background: #ccfbf1;
    border-radius: 2px;
    margin-top: 1px;
    opacity: 0.8;
}

/* ===========================
   نسخه واکنش‌گرا (موبایل)
   =========================== */
@media (max-width: 600px) {
    .exercise-goal-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 16px 18px;
        border-right: 1px solid #99f6e4;
        border-bottom: 5px solid #0f766e;
        border-radius: 14px;
    }

    .goal-icon {
        width: 32px;
        height: 32px;
    }

    .goal-icon svg {
        width: 17px;
        height: 17px;
    }

    .goal-content {
        font-size: 0.86rem;
        line-height: 1.9;
    }

    .goal-content strong {
        font-size: 0.9rem;
    }

    .exercise-goal-box::before {
        width: 60px;
        height: 60px;
        top: -20px;
        right: -20px;
    }
}
