
body {
  direction: rtl;
  font-family: sans-serif;
background-color: #131722cf !important;
  margin: 0;
  padding: 0;
}

.user-panel {
    position: sticky !important;
    width: 75px;
    z-index: 3;
}

.notifications {
   z-index: 9 !important; 
}


.site-header {
    height: 75px !important;
    top: 0px !important;
}
.site-header>.main-header-user>.head-user-side {
    position: absolute !important;
    bottom: 14px !important;
    left: 0px !important;
    direction: ltr;
    width: fit-content !important;
    right: auto !important;
}
.site-header {
  margin-bottom: 0 !important;
}

.container {
  display: flex;
  flex-direction: row;
  padding: 20px;
  gap: 20px;
}
.main-player {
  flex: 2;
}

video {
  width: 100%;
  border-radius: 12px;
}

#subtitle-de {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 4px;
  color: #000;
  direction: ltr;
  display: block;
}

#subtitle-fa {
  font-size: 18px;
  margin-top: 10px;
  color: #724b01;
  direction: rtl;
  text-align: center;
  display: block;
   min-height: 40px;
}

#subtitle-box {
  background: #fff;
  text-align: center;
  padding: 10px;
  font-size: 20px;
  line-height: 2;
  border-radius: 8px 8px 8px 8px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  margin-top:15px;
}
.subtitle-word {
  cursor: pointer;
  transition: background 0.2s;
  padding: 2px 4px;
  border-radius: 5px;
  margin-left: 5px;
}
.subtitle-word:hover {
  background: #ffeeba;
}

.video-controls button:hover {
  background-color: #fff;
}
.saved-words-list {
  padding-right: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  border-bottom: 2px solid #ccc; /* اضافه کردن خط زیر تب‌ها */
  padding-bottom: 10px; /* فاصله بین تب‌ها و خط */
}
.saved-words-list li {
  margin: 5px;
  background: #e9ecef;
  padding: 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  font-size: 14px; /* کاهش سایز فونت کلمات */
}

.saved-words-list li .delete-word {
  cursor: pointer;
  color: red;
  font-size: 12px; /* کاهش سایز ضربدر */
  visibility: hidden;
  margin-left: 8px;
}

.saved-words-list li:hover .delete-word {
  visibility: visible;
}

.subtitle-word {
  position: relative;
  cursor: pointer;
  padding: 2px 4px;
}

.subtitle-word:hover {
  background: #ffd;
}

/* Tooltip به بالا نمایش داده میشه بدون تاثیر روی بقیه DOM */
.subtitle-word::after {
  content: attr(data-translation);
  position: absolute;
  bottom: 130%; /* فاصله از متن */
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 13px;
  white-space: nowrap;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease-in-out, visibility 0.2s;
  z-index: 999;
  pointer-events: none;
}

.subtitle-word:hover::after {
  visibility: visible;
  opacity: 1;
}

.video-controls {
  display: flex;
  gap: 14px;

  justify-content: center; /* دکمه‌ها را افقی وسط‌چین می‌کند */
  align-items: center; /* دکمه‌ها را عمودی وسط‌چین می‌کند */
  width: 100%; /* عرض کامل برای جا دادن دکمه‌ها */
  padding: 14px 0; /* اضافه کردن فضای داخلی */

}

.video-controls button {
  background: #ffffff;
  color: white;
  border: none;
  padding-top: 10px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 11px;
}


.saved-words-list li {
  margin: 5px;
  background: #e9ecef;
  padding: 5px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  font-size: 12px; /* کاهش سایز فونت کلمات */
}

.saved-words-list li .delete-word {
  cursor: pointer;
  color: red;
  font-size: 10px; /* کاهش سایز ضربدر */
  visibility: hidden;
  margin: 0px 4px;
}

.saved-words-list li:hover .delete-word {
  visibility: visible;
}

.sidebar {
  flex: 1;
  padding: 15px;
  border-radius: 10px;
  margin-top: 32px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
  min-height: 500px;

  background-image: repeating-linear-gradient(
    to bottom,
    #85afd682 0px,
    #e0f0ff 1px,
    transparent 1px,
    transparent 30px
  );
  background-color: #fff;
  background-size: 100% 30px;
}




/* اصلاحات برای محتوای تب‌ها */
.tab-content {
  display: none;
  padding: 0px 20px 0px 20px;
  background-color: #fff;
  border-radius: 8px;
  margin-top: 3px;
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

#saved-words-tab {
  flex-grow: 1; /* این باعث می‌شود که فضای خالی به لغات من اختصاص یابد */
}

.buttons-container {
  margin-top: 20px; /* فاصله از محتوای بالا */
  display: flex;
  justify-content: center;
  gap: 15px;
  bottom: 0px;
  position: absolute;
}

/* استایل پیش‌فرض دکمه */
/* استایل پیش‌فرض دکمه‌ها */
button {
  background-color: transparent;
  border: none;
  cursor: pointer;

  font-size: 14px;
  position: relative;
}

/* استایل برای متن در دکمه */
.buttonText {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: #333;
}

/* هاور دکمه‌ها */
button:hover {
  background-color: rgba(0, 0, 0, 0.1); /* تغییر رنگ پس‌زمینه در هاور */
  transform: scale(1.1); /* بزرگتر کردن دکمه */
}

/* نمایش متن در هاور */
button:hover .buttonText {
  display: inline-block;
}

/* تغییر رنگ آیکون و متن در هاور */
button:hover i {
  color: #ff6347; /* تغییر رنگ آیکون */
}

button:hover .buttonText {
  color: #8d7c02; /* تغییر رنگ متن */
}




.tabs {
    display: flex;
    margin-bottom: 20px;
    justify-content: center;
    border-bottom: 3px solid #b90101;
    padding-bottom: 4px;
    padding-top: 22px;
}

.tab {
  font-size: 30px;
  cursor: pointer;
  padding: 10px;
  transition: color 0.3s ease;
}

.tab:hover {
  color: #007bff;
}

/* نمایش صحیح تب‌ها هنگام فعال شدن */
.tab-content.active {
  display: block;
}

/* تنظیم استایل مخصوص برای تب‌ها */
.tab-content h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

/* تنظیم فاصله‌های داخلی */
#savedWords,
#dictionary,
#help,
#transcript {
  margin-top: 5px;
}

.active-word {
  font-weight: bold;
}

.transcript-word {
  cursor: pointer;
  margin: 4px;
  padding: 3px 5px;
  border-radius: 4px;
  display: inline-block;
  font-size: 16px;
  transition: background 0.3s;
}

.transcript-word:hover {
  background-color: #f0e68c;
}

#transcript-words {
  max-height: 300px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: #fdfdfd;
  font-family: sans-serif;
  direction: ltr;
}

.transcript-line {
  border-bottom: 1px solid #e0e0e0;
  padding: 10px;
  margin-bottom: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  border-radius: 6px;
}

.transcript-line:hover {
  background-color: #f3f9ff;
}

.transcript-line strong {
  display: block;
  color: #333;
  font-size: 16px;
  margin-bottom: 5px;
}

.transcript-line div {
  font-size: 14px;
  color: #666;
  text-align: right;
  direction: rtl;
}
.transcript-line.active {
  background-color: #d0eaff !important;
  border: 2px solid #007bff;
}

.quiz-box {
  background: #fdfdfd;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 15px;
  margin: 20px 0;
}
.quiz-sentence {
  font-size: 18px;
  margin-bottom: 15px;
}
.quiz-options button {
  display: block;
  width: 100%;
  margin: 5px 0;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #f0f0f0;
  cursor: pointer;
  transition: 0.3s;
}
.quiz-options button:hover {
  background: #e0e0e0;
}
.quiz-options button.correct {
  background: #d4edda;
  border-color: #28a745;
}
.quiz-options button.incorrect {
  background: #f8d7da;
  border-color: #dc3545;
}
.quiz-translation {
  margin-top: 10px;
  color: #555;
}

#dictionary-results iframe {
  width: 100%;
  height: 400px;
  border: none;
  background: #f9f9f9;
}

.audio-button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: #007bff;
}
.audio-button:hover {
  color: #0056b3;
}

#dictionary-results small {
  display: block;
  margin-top: 5px;
  color: gray;
  font-size: 0.8em;
}
.audio-button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: #007bff;
}
.audio-button:hover {
  color: #0056b3;
}
.gloss-card {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}
.gloss-card h3 {
  margin-top: 0;
}
.gloss-card p {
  margin: 8px 0;
}
#dictionary-results {
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  line-height: 1.8;
  max-height: 500px;
  font-family: sans-serif;
}
#dictionary-results h3 {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  font-size: 20px;
  color: #111;
}
.audio-button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: #007bff;
}
.audio-button:hover {
  color: #0056b3;
}
#dictionary-results a {
  font-size: 0.9em;
  color: #5e0101;
}
.wiktionary-raw {
  padding: 20px;
  border: 1px solid #c7ac01;
  border-radius: 8px;
  overflow-y: auto;
  line-height: 1.8;
  font-size: 15px;
  color: #111;
  direction: ltr;
  text-align: left;
}
.wiktionary-raw h2,
.wiktionary-raw h3 {
  margin-top: 20px;
  font-size: 1.1em;
  color: #222;
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
}
.wiktionary-raw ul {
  padding-left: 20px;
  margin-top: 10px;
}
.wiktionary-raw li {
  margin-bottom: 5px;
  color: #222;
}
.wiktionary-raw table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 10px;
  background: #fffdf9;
}
.wiktionary-raw table th {
  background-color: #f2f2f2;
  font-weight: bold;
  color: #222;
}
.wiktionary-raw table,
.wiktionary-raw th,
.wiktionary-raw td {
  border: 1px solid #ccc;
  padding: 6px;
  text-align: left;
  font-size: 14px;
  color: #111;
}

.example-box {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 10px;
}
.example-box ul {
  list-style: none;
  padding: 0;
}
.example-box li {
  margin-bottom: 10px;
  text-align: left;
  background: #fff;
  padding: 5px;
  border-radius: 6px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}
.example-box li .de-sentence {
  color: #333;
  font-weight: bold;
}
.example-box li .fa-sentence {
  color: #666;
  font-size: 0.9em;
  margin-top: 4px;
  display: block;
}
.audio-button {
  background: none;
  border: none;
  cursor: pointer;
  color: #007bff;
  font-size: 18px;
  margin-right: 8px;
}
.audio-button:hover {
  color: #0056b3;
}
/* استایل پاپ‌آپ */
.popup {
  display: none; /* مخفی بودن به‌طور پیش‌فرض */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.popup-content {
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  width: 300px;
  margin: 15% auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 25px;
  font-weight: bold;
  cursor: pointer;
}

#settings select,
#settings input {
  margin: 10px 0;
  padding: 5px;
  width: 100%;
}

#settings h3 {
  font-size: 18px;
  color: #333;
}
.settings-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #007bff;
  color: #fff;
  padding: 10px 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  z-index: 1000;
}
.settings-button:hover {
  background: #0056b3;
}

#settingsModal h3 {
  margin-top: 0;
}
#settingsModal label {
  display: block;
  margin-top: 10px;
}
#settingsModal select,
#settingsModal input[type="range"] {
  width: 100%;
}
#settingsModal .close-btn {
  color: #d9a005;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
}


.close-btn {
  position: absolute;
  top: 8px;
  left: 10px;
  font-size: 22px;
  cursor: pointer;
}

/* قاب کلی تنظیمات */
/* قاب کلی */
/* پوشش نیمه‌شفاف پس‌زمینه */
/* حالت اولیه – مخفی */
/* حالت پایه */
#settingsModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 999;
}

#settingsModal .settings-content {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100%;
  background: #fff;
  padding: 20px;
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}

/* باز شدن مدال */
#settingsModal.open {
  opacity: 1;
  visibility: visible;
}

/* انیمیشن slide-in برای محتوای داخل مدال */
#settingsModal:not(.open) .settings-content {
  transform: translateX(-100%);
}

#settingsModal.open .settings-content {
  transform: translateX(0);
  transition: transform 0.4s ease;
}

/* حالت در حال بستن */
#settingsModal.closing {
  opacity: 0;
  visibility: hidden;
}

/* در حال بستن، محتوای تنظیمات برگرده عقب */
#settingsModal.closing .settings-content {
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}

/* رنگ‌های مختلف بر اساس تم */
.theme-light {
  background: yellow !important;
  color: black !important;
}

.theme-dark {
  background: #333 !important;
  color: white !important;
}

.theme-blue {
  background: #007bff !important;
  color: white !important;
}

.settings-content {
  background: rgba(255, 255, 255, 0.95);
  padding: 20px 30px;
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  margin: 0px auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  font-family: "IRANSans", sans-serif;
}

.settings-content label {
  display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
    font-size: 13px;
}

.settings-content select,
.settings-content input[type="range"] {
  width: 100%;
  margin-top: 5px;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-family: inherit;
}
.settings-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0px 0px;
  border-bottom: solid 1px #c1bfbf;

}

.label-text {
  font-size: 12px;
}

/* سوییچ سفارشی */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-switch {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 24px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: 0.4s;
}

.slider-switch:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

.switch input:checked + .slider-switch {
  background-color: #d9a005;
}

.switch input:checked + .slider-switch:before {
  transform: translateX(22px);
}
/* دکمه ستاره در ترنسکریپت */
.save-sentence-btn {
  font-size: 14px;
  margin-left: 8px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  color: goldenrod;
  transition: transform 0.2s;
}
.save-sentence-btn:hover {
  transform: scale(1.2);
}

/* بخش جملات من */
.saved-sentence button {
  font-size: 12px;
  margin: 4px 6px 4px 0;
  padding: 3px 6px;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.saved-sentence button:hover {
  background-color: #e0e0e0;
}

/* دکمه دانلود */
#downloadSentencesBtn {
  margin: 10px 0;
  padding: 6px 12px;
  font-size: 13px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
#downloadSentencesBtn:hover {
  background-color: #0056b3;
}
.transcript-line {
  margin: 6px 0;
  text-align: left;
}

.transcript-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.save-sentence-btn {
  font-size: 14px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  color: goldenrod;
  padding: 2px 4px;
  transition: transform 0.2s;
}

.save-sentence-btn:hover {
  transform: scale(1.2);
}

.translation-text {
  color: #555;
  font-size: 0.9em;
  margin-left: 24px; /* فاصله از ستاره */
}

.plyr--video {
    border-radius: 18px;
}

.plyr__controls{
    direction: ltr;
}

img.icons {
    width: 33px;
}

.sidebar-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 37%;
  
}

.spiral-top {
  z-index: 2;
}

img.spiral-top {
    position: absolute;
    width: 100%;
    height: 6%;
}


img.tab.custom-tab-icon {
    width: 50px;
    height: 50px;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.2s, filter 0.2s;
}

img.tab.custom-tab-icon:hover {
  transform: scale(1.2);
  filter: brightness(1.2);
} 

.row {
    border-bottom: 1px solid;
    width: 50%;
    display: inline-grid;
}

.dict-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 16px;
  font-family: sans-serif;
  direction: rtl;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
}

.dict-card h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.dict-card .type {
  font-size: 14px;
  padding: 2px 10px;
  background: #eee;
  border-radius: 6px;
  margin-right: 10px;
}

/* جدول صرف فعل */
.conjugation-table {

  border-collapse: collapse;
  margin-top: 10px;

}

.conjugation-table td {
  border: 1px solid #ccc;
  padding: 6px 10px;
}

.conjugation-table td.conj-person {
  font-weight: bold;
  text-align: right;
  width: 30%;
}

/* مثال */
.example {
  background: #f9f9f9;
  padding: 10px;
  border-radius: 8px;
  margin-top: 10px;
}

.dict-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  justify-content: center;
}

.dict-title h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-top: 10px;
  margin-bottom: 20px;
  color: #222;
}


.dict-tabs .tab-btn {
  padding: 6px 12px;
  background: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  font-size: 14px;
}

.dict-tabs .tab-btn:hover {
  background: #e0e0e0;
  transform: scale(1.05);
}

.dict-tabs .tab-btn.active {
  background: #007bff;
  color: white;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.dict-tab-content {
  display: none;
  animation: fade-in 0.3s ease-in-out;
}

.dict-tab-content.fade-in {
  animation: fade-in 0.3s ease-in-out;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.conjugation-table-wrapper {
  max-width: 100%;
  margin-bottom: 1em;
  padding-bottom: 5px;
}

.conjugation-table {
  width: max-content;
  border-collapse: collapse;
}
.dict-tab-content {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
}

.conjugation-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}
.conjugation-table td {
  padding: 6px 10px;
  border: 1px solid #ccc;
  text-align: left;
}

.adj-declension .conjugation-table {
  direction: ltr;
  text-align: left;
}
.practice-item {
    margin-bottom: 2px;
    border-radius: 8px;
    transition: background 0.2s, box-shadow 0.2s;
}

.practice-item a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.practice-item:hover {
  background: #f0f8ff;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.practice-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 0px 5px 0px;
    border-bottom: 1px solid #c4c4c4;
}

.practice-content:hover {
    background: #e7c3191a;
}
.practice-title {
  font-size: 16px;
  font-weight: 600;
  color: #003366;
}

.practice-desc {
  font-size: 13px;
  color: #666;
  margin-top: 2px;
}

.trophies {
  font-size: 14px;
  white-space: nowrap;
  color: #444;
}

.new_footer {
    background: url(/wp-content/themes/digimedia/assets/images/header-bg.png) no-repeat center;
    background-size: cover;
    /* padding: 30px 20px; */
    color: #fff;
    text-align: center;
    font-family: IranYekan, sans-serif;
    direction: rtl;
    border-radius: 17px;
}

.new_footer .footer-logo {
    max-width: 150px;
    margin-bottom: 10px;
    padding-top: 10px;
}

.new_footer .social-icons {
  margin: 15px 0;
}

.new_footer .social-icons a {
  color: #fff;
  font-size: 22px;
  margin: 0 10px;
  transition: 0.3s;
}

.new_footer .social-icons a:hover {
  color: #ffd700;
}

.copyright {
color:#fff;
  font-size: 14px;
  opacity: 0.9;
   text-align: center;
}
a.menu-lessons {
    color: #ffffff;
}
.menu-lessons {
  display: flex;
  align-items: center;
  gap: 6px; /* فاصله بین آیکن و متن */
  color: #0056b3;
  font-weight: bold;
}

.menu-lessons i {
  font-size: 16px;
}
