/* اضافه کردن فونت محلی */
@font-face {
  font-family: "vazir";
  src: url(".\\fonts\\Vazir-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Danstevis";
  src: url("../styles/fonts/danstevis.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

/* تنظیمات عمومی */
body {
  font-family: "IRANSans", "Tahoma", sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  direction: rtl;
}

* {
  font-family: "vazir";
}

.tweet-limit {
  font-size: small;
  margin-top: 5px;
  margin-top: 5px;
}

/* From Uiverse.io by Yaya12085 */
.mode-selection {
  display: flex;
  gap: 10px;
  background-color: #eef1f083;
  padding: 10px;
  border-radius: 8px;
}

.main-page {
  display: flex;
  flex-direction: column;
  max-width: 1440px; /* Make it span the full width */
  margin: auto;
  gap: 1rem;
  margin-top: 1rem;
}

.mode-selection a {
  position: relative;
  display: block;
  text-decoration: none;
  padding: 10px 20px;
  background-color: #b9b9b98a;
  color: #2b2a2a;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.mode-selection a.active {
  color: #fff;
  background-color: #32127a;
}
.mode-selection a.active {
  color: #fff;
  background-color: #32127a;
}

/* سایر تنظیمات CSS */
.container {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1440px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 2.5rem;
  border: 1px solid #e1e8ed;
  grid-column: span 2 / span 2;
  min-height: 75vh;
  grid-column: span 2 / span 2;
  min-height: 75vh;
}

.simple-mode {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.simple-mode.active {
  display: grid;
}
.simple-mode.active {
  display: grid;
}

.box {
  grid-column: span 3 / span 2;
}

.advanced-mode {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0;
  flex-direction: column;
}

.advanced-mode.active {
  display: flex;
}
.advanced-mode.active {
  display: flex;
}

.advanced-mode-item {
  display: flex;
  align-items: start;
  gap: 1rem;
}

.advanced-mode-item div {
  width: 100%;
}

.advanced-mode-item .num-outputs-advanced {
  width: fit-content;
}

.advanced-mode select {
  max-width: -webkit-fill-available;
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccd6dd;
  font-size: 14px;
  background-color: #f5f8fa;
}

.advanced-mode button {
  width: fit-content;
  background-color: #32127a; /* سبز */
  background-color: #32127a; /* سبز */
  border: none;
  color: white;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin-top: 10px;
  margin-bottom: 10px;
  box-shadow: 2px 2px 5px 0 rgba(0, 0, 0, 0.25);
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.advanced-mode button.process-button {
  grid-column: span 3 / span 3;
  justify-self: end;
}
.advanced-mode button.process-button {
  grid-column: span 3 / span 3;
  justify-self: end;
}

.advanced-mode textarea {
  max-width: -webkit-fill-available;
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccd6dd;
  font-size: 14px;
  background-color: #f5f8fa;
}

.box {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  border-radius: 8px;
  width: 100%;
}

.box div {
  width: 33%;
}
.box div {
  width: 33%;
}

.analyze-sentiment {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  width: 100%;
  margin: 0 0 3rem;
}
.analyze-sentiment h3 {
  margin-top: 15px;
}
.analyze-sentiment h3 {
  margin-top: 15px;
}

.analyze-sentiment label {
  font-weight: bold;
  margin-bottom: 5px;
  display: block;
}
.analyze-sentiment label {
  font-weight: bold;
  margin-bottom: 5px;
  display: block;
}

.analyze-sentiment textarea,
.analyze-sentiment select {
  max-width: -webkit-fill-available;
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccd6dd;
  font-size: 14px;
  background-color: #f5f8fa;
}

.analyze-sentiment textarea,
.analyze-sentiment select {
  max-width: -webkit-fill-available;
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccd6dd;
  font-size: 14px;
  background-color: #f5f8fa;
}

.box.number-outputs {
  grid-column: span 1 / span 1;
}

.box.writer-specs {
  flex-direction: column;
}

.box label {
  font-weight: bold;
  margin-bottom: 5px;
  display: block;
}

.box textarea,
.box select {
  max-width: -webkit-fill-available;
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccd6dd;
  font-size: 14px;
  background-color: #f5f8fa;
}

.state-selector {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  width: 100%;
  margin: 0 0 3rem;
}

textarea {
  resize: none;
  max-width: -webkit-fill-available;
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccd6dd;
  font-size: 14px;
  background-color: #f5f8fa;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;
  border: 1px solid #ccd6dd;
  border-radius: 8px;
  padding: auto;
  text-align: center;
  font-size: 14px;
  cursor: pointer;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  transition: border-color 0.3s, box-shadow 0.3s;
}

select:hover,
select:focus {
  border-color: #0976be;
  box-shadow: 0 0 8px rgba(29, 161, 242, 0.5);
}

option {
  background-color: #fff;
}

button {
  width: fit-content;
  background-color: #32127a; /* سبز */
  background-color: #32127a; /* سبز */
  border: none;
  color: white;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  box-shadow: 2px 2px 5px 0 rgba(0, 0, 0, 0.25);
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

button.process-button {
  grid-column: span 3 / span 3;
  justify-self: end;
}

button.process-button {
  grid-column: span 3 / span 3;
  justify-self: end;
}

button:hover {
  background-color: #0976be;
}

.results {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.result-box {
  display: block;
  width: 100%;
  padding: 10px;
  height: 100%;
  border-radius: 10px;
  background-color: #f5f8fa;
  border: 1px solid #e1e8ed;
  word-wrap: break-word;
  max-height: 11rem;
  overflow-y: auto;
}

.result-box h3 {
  margin-top: 0;
  font-size: 16px;
  color: #3b4144;
}

.result-box p {
  margin: 0;
}

.result-box a {
  width: fit-content;
  background-color: #32127a; /* سبز */
  background-color: #32127a; /* سبز */
  border: none;
  color: white;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin-top: 10px;
  margin-bottom: 10px;
  box-shadow: 2px 2px 5px 0 rgba(0, 0, 0, 0.25);
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.result-box a:hover {
  background-color: #99c668;
}
.result-box a:hover {
  background-color: #99c668;
}

.result-box a.copy-tweet {
  background-color: #850f0f;
}
.result-box a.copy-tweet {
  background-color: #850f0f;
}

.result-box a.copy-tweet:hover {
  background-color: #bb1616;

  color: white;
  padding: 10px 20px;
  display: inline-block;
  background-color: #32127a;
  transition: background-color 0.3s;
}

.result-box a.copy-tweet:hover {
  background-color: #bb1616;
}

.output {
  display: flex;
  justify-content: center;
}

#loading {
  display: block;
  margin-top: 20px;
  margin-bottom: 20px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #32127a;
  border-top: 4px solid #32127a;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* The navigation menu */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Navbar Styles */
.navbar {
  background-color: #32127a;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 0.4rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 0;
  margin: 1rem auto;
  width: 100%;
  box-sizing: border-box;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  margin-right: auto;
}

.iran-flag {
  width: 22px;
  height: 18px;
  border-radius: 2px;
  display: block;
}

#iran-date-time {
  font-family: "Iran Sans", sans-serif;
  font-size: 0.9rem;
  direction: rtl;
  white-space: nowrap;
}

.navbar-right {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-left: auto;
}

.navbar-right a {
  color: white;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background-color 0.3s;
  font-family: "Vazir", sans-serif;
  white-space: nowrap;
  font-size: 0.95em;
}

.navbar-right a:first-child {
  font-weight: bold;
  font-size: 1em;
}

.navbar-right a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar-right a.active {
  background-color: white;
  color: #32127a;
}

.new-badge {
  background-color: #dc3545;
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 0.8em;
  margin-right: 5px;
}

/* Navigation links */
.navbar a {
  cursor: pointer;
  cursor: pointer;
  text-decoration: none;
  color: white;
  padding: 10px 20px;
  display: inline-block;
  background-color: #32127a;
  transition: background-color 0.3s;
}

.navbar a:hover {
  background-color: #000000;
}

.navbar a.active {
  background-color: #fff;
  color: #32127a;
}

.navbar a:hover {
  background-color: #000000;
}

.navbar a.active {
  background-color: #fff;
  color: #32127a;
}

.loading-bar {
  width: 100%;
  height: 5px;
  background-color: #f3f3f3;
  position: relative;
  margin-top: 10px;
  display: none; /* مخفی کردن در ابتدا */
}

.progress {
  height: 100%;
  width: 0;
  background-color: #3498db;
  animation: load 3s forwards; /* انیمیشن لودینگ به مدت 3 ثانیه */
}

@keyframes load {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

#sentiment-result-container {
  display: none; /* مخفی کردن در ابتدا */
  margin-top: 10px; /* فاصله از بالا */
}

#analyze-sentiment-button {
  background-color: #32127a; /* سبز */
  background-color: #32127a; /* سبز */
  border: none;
  width: fit-content;
  color: white;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin-top: 10px;
  box-shadow: 2px 2px 5px 0 rgba(0, 0, 0, 0.25);
  cursor: pointer;
  border-radius: 30px;
  transition: background-color 0.3s ease;
}

#analyze-sentiment-button:hover {
  background-color: #99c669; /* سبز تیره‌تر در هنگام هاور */
}

#analyze-sentiment-button:active {
  background-color: #99c669;
}

button.generate-similar {
  background-color: #99c669; /* آبی */
  border: none;
  color: white;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin-top: 10px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

button.generate-similar:hover {
  background-color: #024e13;
}

button.generate-similar:active {
  background-color: #024e13;
}

.loading-bar {
  width: 100%;
  height: 5px;
  background-color: #f3f3f3;
  position: relative;
  margin-top: 10px;
  display: none; /* مخفی کردن در ابتدا */
}

.progress {
  height: 100%;
  width: 0;
  background-color: #3498db;
  transition: width 0.4s ease;
}

#sentiment-result-container {
  display: none; /* مخفی کردن در ابتدا */
  margin-top: 10px; /* فاصله از بالا */
}

button.generate-similar {
  background-color: #32127a;
  background-color: #32127a;
  border: none;
  color: white;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin-top: 10px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

button.generate-similar:hover {
  background-color: #0976be;
}

button.generate-similar:active {
  background-color: #0976be;
}

#analyze-sentiment-button {
  background-color: #32127a;
  background-color: #32127a;
  border: none;
  color: white;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin-top: 10px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

#analyze-sentiment-button:hover {
  background-color: #0976be;
}

.recent-content-setting {
  border: #ccc;
  border-radius: 8px;
  color: #000000;
  padding: 10px;
  font-size: 26px;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.recent-content-setting label {
  display: flex;
  gap: 0.5rem;
}
.recent-content-setting {
  border: #ccc;
  border-radius: 8px;
  color: #000000;
  padding: 10px;
  font-size: 26px;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.recent-content-setting label {
  display: flex;
  gap: 0.5rem;
}
/* استایل‌های مربوط به خروجی تیتر ساز و خلاصه ساز */
#summary-result,
#headlines li {
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

#summary-result:hover,
#headlines li:hover {
  background-color: #f0f4f8;
  transform: translateX(-5px);
}

#summary-result:active,
#headlines li:active {
  background-color: #e6eef5;
}

/* نشانگر کپی شدن */
#summary-result::after,
#headlines li::after {
  content: "برای کپی کلیک کنید";
  position: absolute;
  top: 5px;
  left: 5px;
  background-color: rgba(50, 18, 122, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

#summary-result:hover::after,
#headlines li:hover::after {
  opacity: 1;
}

/* اطمینان از نمایش خروجی */
#summary-result,
#headlines {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.headlines-title {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin-top: 20px;
  margin-bottom: 10px;
  font-weight: bold;
}

#headlines {
  list-style: none;
  padding: 0;
  margin: 0;
}

#headlines li {
  background-color: #f5f8fa;
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  border-right: 3px solid #32127a;
}
/* استایل برای نوتیفیکیشن */
#toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #32127a;
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

#toast.show {
  opacity: 1;
}

/* انیمیشن برای نمایش و مخفی شدن */
@keyframes fadeInOut {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* استایل برای نوتیفیکیشن */
.toast-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #32127a;
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  animation: fadeInOut 3s ease forwards;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  10% {
    opacity: 1;
    transform: translateY(0);
  }
  90% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
}

/* Tweet Box Styles */
.tweet-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.tweet-list .loader-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 1rem;
  position: absolute;
  background-color: #ffffffe0;
  height: 100%;
  width: 100%;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}
.tweet-list .loader-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 1rem;
  position: absolute;
  background-color: #ffffffe0;
  height: 100%;
  width: 100%;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.tweet-list .loader {
  width: 8px;
  height: 48px;
  display: inline-block;
  position: relative;
  border-radius: 4px;
  color: #000000;
  box-sizing: border-box;
  animation: animloader 0.6s linear infinite;
}
.tweet-list .loader {
  width: 8px;
  height: 48px;
  display: inline-block;
  position: relative;
  border-radius: 4px;
  color: #000000;
  box-sizing: border-box;
  animation: animloader 0.6s linear infinite;
}

@keyframes animloader {
  0% {
    box-shadow: 20px -10px, 40px 10px, 60px 0px;
  }
  25% {
    box-shadow: 20px 0px, 40px 0px, 60px 10px;
  }
  50% {
    box-shadow: 20px 10px, 40px -10px, 60px 0px;
  }
  75% {
    box-shadow: 20px 0px, 40px 0px, 60px -10px;
  }
  100% {
    box-shadow: 20px -10px, 40px 10px, 60px 0px;
  }
}

.tweet-box {
  border-radius: 15px;
  font-family: "Arial", sans-serif;
}

.tweet-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  position: relative;
  position: relative;
  background-color: #fff;
  border-radius: 1rem;
  border: 1px solid #d4d2d2;
}

.tweet-item p {
  margin: 0;
  padding: 0;
}
.tweet-item p {
  margin: 0;
  padding: 0;
}

.tweet-item .tweet-username {
  color: #657786;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 110%;
}

.tweet-item .tweet-header {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.tweet-item .tweet-username {
  color: #657786;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 110%;
}

.tweet-item .tweet-header {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.tweet-item .tweet-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.tweet-item .tweet-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.tweet-item .tweet-header img.platform-logo {
  width: 20px;
  height: 20px;
  position: absolute;
  left: 2rem;
}
.tweet-item .tweet-header img.platform-logo {
  width: 20px;
  height: 20px;
  position: absolute;
  left: 2rem;
}

.tweet-item .tweet-header .tweet-header-author {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.tweet-item .tweet-header .tweet-header-author {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tweet-item .tweet-header .tweet-header-author-name {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 110%;
}
.tweet-item .tweet-header .tweet-header-author-name {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 110%;
}

.tweet-item .tweet-header .tweet-header-author-username {
  color: #657786;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 110%;
}
.tweet-item .tweet-header .tweet-header-author-username {
  color: #657786;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 110%;
}

.tweet-item .tweet-content {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tweet-item .tweet-content p {
  font-size: 0.875rem;
  line-height: 150%;
  color: #14171a;
}

.tweet-item .tweet-content .see-more {
  align-self: flex-end;
  background-color: #ffffff;
  color: #3498db;
  border: none;
  padding: 5px 10px;
  font-size: 0.75rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 2px 2px 5px 0 rgba(0, 0, 0, 0.25);
  margin-bottom: 10px;
}
.tweet-item .tweet-content {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tweet-item .tweet-content p {
  font-size: 0.875rem;
  line-height: 150%;
  color: #14171a;
}

.tweet-item .tweet-content .see-more {
  align-self: flex-end;
  background-color: #ffffff;
  color: #3498db;
  border: none;
  padding: 5px 10px;
  font-size: 0.75rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 2px 2px 5px 0 rgba(0, 0, 0, 0.25);
  margin-bottom: 10px;
}

.tweet-item .tweet-content .see-more:hover {
  background-color: #3498db;
  color: white;
}
.tweet-item .tweet-content .see-more:hover {
  background-color: #3498db;
  color: white;
}

.tweet-item .tweet-content .see-more.active {
  background-color: #000000;
  color: #fff;
}
.tweet-item .tweet-content .see-more.active {
  background-color: #000000;
  color: #fff;
}

.tweet-item .tweet-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tweet-item .tweet-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tweet-item .tweet-footer span {
  display: flex;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #657786;
  direction: ltr;
}
.tweet-item .tweet-footer span {
  display: flex;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #657786;
  direction: ltr;
}

.tweet-item .tweet-footer a {
  background-color: #ffffff;
  padding: 0.25rem 0.5rem;
  width: fit-content;
  border-style: solid;
  border-width: 1px;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  color: #32127a;
  text-decoration: none;
  text-wrap: nowrap;
  transition: all 250ms ease-in-out;
}

.tweet-item .tweet-footer a:hover {
  background-color: #ffffff; /* Change background color on hover */
  color: #000000; /* Change text color on hover */
  border-color: #000000; /* Change border color on hover */
}

.tweet-item .tweet-footer .btn {
  background-color: #32127a;
  padding: 0.25rem 0.5rem;
  width: fit-content;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  color: #ffffff;
  text-decoration: none;
  margin: 0;
  transition: all 500ms ease-in-out;
}
.tweet-item .tweet-footer a {
  background-color: #ffffff;
  padding: 0.25rem 0.5rem;
  width: fit-content;
  border-style: solid;
  border-width: 1px;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  color: #32127a;
  text-decoration: none;
  text-wrap: nowrap;
  transition: all 250ms ease-in-out;
}

.tweet-item .tweet-footer a:hover {
  background-color: #ffffff; /* Change background color on hover */
  color: #000000; /* Change text color on hover */
  border-color: #000000; /* Change border color on hover */
}

.tweet-item .tweet-footer .btn {
  background-color: #32127a;
  padding: 0.25rem 0.5rem;
  width: fit-content;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  color: #ffffff;
  text-decoration: none;
  margin: 0;
  transition: all 500ms ease-in-out;
}

.tweet-item .tweet-footer .btn:hover {
  background-color: #0976be;
}
.tweet-item .tweet-footer .btn:hover {
  background-color: #0976be;
}

.tweet-author-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Align items to the start of the column */
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Align items to the start of the column */
}

.tweet-footer .tweet-source {
  color: #657786;
}
.tweet-box {
  scrollbar-width: 5px;
  scrollbar-color: #32127a rgb(255, 255, 255);
}

/* Works on Chrome, Edge, and Safari */
.tweet-box::-webkit-scrollbar {
  width: 12px;
}

.tweet-box::-webkit-scrollbar-track {
  background: orange;
}

.tweet-box::-webkit-scrollbar-thumb {
  background-color: #32127a;
  border-radius: 20px;
  border: 3px solid #ffffff;
}
.tweet-box {
  scrollbar-width: 5px;
  scrollbar-color: #32127a rgb(255, 255, 255);
}

/* Works on Chrome, Edge, and Safari */
.tweet-box::-webkit-scrollbar {
  width: 12px;
}

.tweet-box::-webkit-scrollbar-track {
  background: orange;
}

.tweet-box::-webkit-scrollbar-thumb {
  background-color: #32127a;
  border-radius: 20px;
  border: 3px solid #ffffff;
}
/* Container for search options */
.search-container {
  display: flex;
  align-items: flex-end;
  gap: 15px;
  margin-bottom: 12px;
}

.search-box input,
.search-box select,
.search-box textarea,
button#search-tweets {
  height: 40px;
  box-sizing: border-box;
  margin: 0;
  padding: 8px 12px;
  font-size: 14px;
}

button#search-tweets {
  /* align-self: center; حذف شد */
  padding: 0 20px;
}

.tweet-result-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.tweet-result-name {
  font-size: 0.875rem;
  font-weight: 600;
}

.tweet-result-username {
  color: #657786;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 110%;
}

/* Heading for search results */
#search-results-container h3 {
  font-size: 18px;
  color: #14171a;
  margin-bottom: 10px;
  text-align: center;
}

/* Styling for search results tweet list */
#search-results-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Each search result (tweet) */
#search-results-list li {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  background-color: #fff;
  border-radius: 1rem;
  border: 1px solid #eee;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

img.platform-logo {
  width: 20px;
  height: 20px;
  position: absolute;
  left: 0rem;
}

img.search-logo {
  width: 40px;
  height: 40px;
  border-radius: 0%;
  position: relative;
  left: 10px;
}

img.platform-logo {
  width: 20px;
  height: 20px;
  position: absolute;
  left: 0rem;
}

img.search-logo {
  width: 40px;
  height: 40px;
  border-radius: 0%;
  position: relative;
  left: 10px;
}

#search-results-list li .tweet-content {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #14171a;
}

#search-results-list li .tweet-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #657786;
}

/* Input boxes in the search container */
.search-box {
  flex: 1;
}

/* General styling for the label */
.platform-filter {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 10px;
  user-select: none;
  color: #333;
}

/* Hide the default checkbox */
.platform-filter input[type="checkbox"] {
  display: none;
}

/* Checkmark (custom checkbox) styling */
.platform-filter .checkmark {
  width: 24px;
  height: 24px;
  background-color: #e0e0e0;
  border-radius: 6px;
  position: relative;
  margin-right: 10px;
  transition: background-color 0.3s;
}

/* Checkmark hover effect */
.platform-filter:hover .checkmark {
  background-color: #d1d1d1;
}

/* Checked state */
.platform-filter input[type="checkbox"]:checked + .checkmark {
  background-color: #4caf50;
  box-shadow: 0 0 6px rgba(0, 128, 0, 0.6);
}

/* Checkmark (tick) styling */
.platform-filter .checkmark::after {
  content: "";
  position: absolute;
  display: none;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Show tick when checked */
.platform-filter input[type="checkbox"]:checked + .checkmark::after {
  display: block;
  animation: checkmark-appear 0.3s ease forwards;
}

/* Text styling */
.platform-filter .label-text {
  margin-left: 4px;
  transition: color 0.3s;
}

/* Color transition for text on hover */
.platform-filter:hover .label-text {
  color: #4caf50;
}

/* Keyframes for checkmark tick animation */
@keyframes checkmark-appear {
  from {
    transform: scale(0) rotate(45deg);
  }
  to {
    transform: scale(1) rotate(45deg);
  }
}

/* General styling for the label */
.platform-filter {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 10px;
  user-select: none;
  color: #333;
}

/* Hide the default checkbox */
.platform-filter input[type="checkbox"] {
  display: none;
}

/* Checkmark (custom checkbox) styling */
.platform-filter .checkmark {
  width: 24px;
  height: 24px;
  background-color: #e0e0e0;
  border-radius: 6px;
  position: relative;
  margin-right: 10px;
  transition: background-color 0.3s;
}

/* Checkmark hover effect */
.platform-filter:hover .checkmark {
  background-color: #d1d1d1;
}

/* Checked state */
.platform-filter input[type="checkbox"]:checked + .checkmark {
  background-color: #4caf50;
  box-shadow: 0 0 6px rgba(0, 128, 0, 0.6);
}

/* Checkmark (tick) styling */
.platform-filter .checkmark::after {
  content: "";
  position: absolute;
  display: none;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Show tick when checked */
.platform-filter input[type="checkbox"]:checked + .checkmark::after {
  display: block;
  animation: checkmark-appear 0.3s ease forwards;
}

/* Text styling */
.platform-filter .label-text {
  margin-left: 4px;
  transition: color 0.3s;
}

/* Color transition for text on hover */
.platform-filter:hover .label-text {
  color: #4caf50;
}

/* Keyframes for checkmark tick animation */
@keyframes checkmark-appear {
  from {
    transform: scale(0) rotate(45deg);
  }
  to {
    transform: scale(1) rotate(45deg);
  }
}

.search-box label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: #14171a;
  font-size: 14px;
}

.search-box input[type="text"],
.search-box input[type="date"],
.search-box textarea {
  width: 100%;
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #e1e8ed;
  font-size: 14px;
  box-sizing: border-box;
  background-color: #f5f8fa;
  color: #14171a;
}

.search-box textarea {
  resize: vertical;
  min-height: 100px;
}

.search-box input[type="date"] {
  cursor: pointer;
}

.search-box input[type="text"]:focus,
.search-box textarea:focus,
.search-box input[type="date"]:focus {
  border-color: #0976be;
  outline: none;
}

/* Button styling */
button#search-tweets {
  background-color: #32127a;
  background-color: #32127a;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button#search-tweets:hover {
  background-color: #0976be;
}

/* Styling for the search results */
#search-results-container {
  margin-top: 30px;
  width: 25%;
}

@media screen and (max-width: 768px) {
  .search-container {
    flex-direction: column; /* Stack items vertically on smaller screens */
    gap: 15px;
  }

  .search-box {
    width: 100%;
  }

  button#search-tweets {
    width: 100%;
  }
}

/* Styles for the pagination controls */
.pagination-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.pagination-controls button {
  background-color: #32127a;
  background-color: #32127a;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.pagination-controls button:disabled {
  background-color: #d3d3d3;
  cursor: not-allowed;
}

.pagination-controls button:hover:enabled {
  background-color: #0976be;
}

#pagination-info {
  font-size: 14px;
  color: #657786;
}

#search-results .tweet {
  background-color: #ffffff;
  border: 1px solid #e1e8ed;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 10px;
}

#search-results .tweet p {
  font-size: 16px;
  color: #14171a;
  margin: 0;
}

#search-results .tweet small {
  color: #657786;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .search-container {
    padding: 15px;
    max-width: 100%;
  }

  .search-box input[type="text"],
  .search-box textarea,
  .search-box input[type="date"] {
    font-size: 14px;
    padding: 10px;
  }

  button#search-tweets {
    font-size: 16px;
    padding: 10px;
  }
}

.tweet {
  background-color: #ffffff;
  border: 1px solid #e1e8ed;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 10px;
}

.tweet p {
  font-size: 16px;
  color: #14171a;
  margin: 0;
}

.tweet small {
  color: #657786;
}

.right-column {
  flex: 4;
  padding: 6px 6px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  max-height: none;
  overflow: visible;
  font-size: 0.95em;
}

.right-column .advanced-mode,
.right-column .simple-mode,
.right-column .analyze-sentiment,
.right-column .state-selector,
.right-column .results {
  gap: 8px !important;
  margin-bottom: 8px !important;
}

.right-column label,
.right-column .form-group,
.right-column .box {
  margin-bottom: 6px !important;
}

.right-column .loader {
  display: block;
  transform: scale(0.5);
  position: relative;
  height: 60px;
  width: 200px;
  border-bottom: 3px solid #0976be;
  box-sizing: border-box;
  animation: drawLine 4s linear infinite;
}

.right-column .loader:before {
  content: "";
  position: absolute;
  left: calc(100% + 14px);
  bottom: -6px;
  width: 16px;
  height: 100px;
  border-radius: 20px 20px 50px 50px;
  background-repeat: no-repeat;
  background-image: linear-gradient(#32127a 6px, transparent 0),
    linear-gradient(45deg, rgba(0, 0, 0, 0.02) 49%, white 51%),
    linear-gradient(315deg, rgba(0, 0, 0, 0.02) 49%, white 51%),
    linear-gradient(
      to bottom,
      #ffffff 10%,
      #32127a 10%,
      #32127a 90%,
      #ffffff 90%
    );
  background-size: 3px 3px, 8px 8px, 8px 8px, 16px 88px;
  background-position: center bottom, left 88px, right 88px, left top;
  transform: rotate(25deg);
  animation: pencilRot 4s linear infinite;
}

@keyframes drawLine {
  0%,
  100% {
    width: 0px;
  }
  45%,
  55% {
    width: 200px;
  }
}

@keyframes pencilRot {
  0%,
  45% {
    bottom: -6px;
    left: calc(100% + 14px);
    transform: rotate(25deg);
  }
  55%,
  100% {
    bottom: -12px;
    left: calc(100% + 16px);
    transform: rotate(220deg);
  }
}

.left-column {
  flex: 3;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  margin: 20px auto;
  height: min-content;
  width: 20px;
}

.tab-pane {
  max-width: 1440px;
  margin: auto;
  max-width: 1440px;
  display: none;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tab-pane.active {
  display: grid;
}

.tools-wrap {
  background-color: #ffffff;
  grid-column: span 2 / span 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-radius: 8px;
  padding: 2rem;
  column-gap: 1.5rem;
  min-height: 75vh;
}

.left-column h3 {
  color: #333;
}

.tab-pane {
  max-width: 1440px;
  margin: auto;
  max-width: 1440px;
  display: none;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tab-pane.active {
  display: grid;
}

.tools-wrap {
  background-color: #ffffff;
  grid-column: span 2 / span 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-radius: 8px;
  padding: 2rem;
  column-gap: 1.5rem;
  min-height: 75vh;
}

.left-column h3 {
  color: #333;
}

.left-column ul {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
}

.left-column ul {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
}

.left-column .btn {
  background-color: #32127a; /* Primary Blue */
  border: none;
  color: #ffffff;
  padding: 12px 24px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 12px;
  margin: 10px 2px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 500ms ease-in-out;
}

.left-column .btn {
  background-color: #32127a; /* Primary Blue */
  border: none;
  color: #ffffff;
  padding: 12px 24px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 12px;
  margin: 10px 2px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 500ms ease-in-out;
}

.left-column .btn:hover {
  background-color: #0f71b3; /* Darker Blue on hover */
}

.left-column .btn.fa fa-refresh {
  background-color: #ffffff;
}

.left-column .left-column-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-height: 619px;
  overflow-y: auto;
}

#apply-filter {
  background-color: #ffffff; /* Green background */
  border: none; /* Remove border */
  color: #32127a; /* White text color */
  padding: 10px 20px; /* Padding around the text/icon */
  text-align: center; /* Center the text/icon */
  text-decoration: none; /* Remove underline */
  display: inline-block; /* Align inline */
  font-size: 20px; /* Font size */
  margin: 4px 2px; /* Margin around the button */
  cursor: pointer; /* Change cursor to pointer on hover */
  border-radius: 8px; /* Rounded corners */
}

#apply-filter:hover {
  background-color: #0f71b3;
}

#apply-filter:active {
  background-color: #0f71b3;
}

#apply-filter.fa {
  font-size: 24px; /* Adjust icon size */
}

.summarizer {
  margin-top: 0px;
}

.summarizer text {
  font-size: 12px;
}

#summarize-form {
  margin-bottom: 20px;
}

/* استایل برای فرم‌لبل‌ها */
.form-label {
  font-size: 12px;
}

#summarize-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 34px;
  border: 1px solid #ccc;
  border-radius: 8px;
  height: 10rem;
  margin-top: 25px;
}

#summarize-form select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

#summarize-form button {
  padding: 10px 20px;
  background-color: #32127a;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

#summarize-form button:hover {
  background-color: #1d0b47;
}

#summary-result {
  padding: 10px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  min-height: 0rem;
  height: auto;
  margin-top: 10px;
  display: none;
}

#summary-result p {
  white-space: pre-wrap;
  text-align: justify;
}

#summary-result {
  cursor: pointer; /* تغییر نشانگر ماوس به دست */
  transition: border 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* ایجاد انیمیشن */
}

#summary-result:hover {
  border: 2px solid #32127a; /* ایجاد حاشیه بنفش */
  box-shadow: 0 0 10px rgba(50, 18, 122, 0.5); /* افزودن سایه بنفش */
}

.search-input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  box-sizing: border-box;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.platform-filters {
  margin: 10px 0;
}

.platform-filters label {
  margin-right: 10px;
  font-size: 14px;
}

.platform-filters {
  margin: 10px 0;
}

.platform-filters label {
  margin-right: 10px;
  font-size: 14px;
}

.box h4 {
  margin-bottom: 10px;
}

/* Styles for the search results container */
#search-results-container {
  margin-top: 20px;
}

#search-results-container h3 {
  font-size: 18px;
  color: #14171a;
  margin-bottom: 10px;
  text-align: center;
}

/* Styles for the search results tweet list */
#search-results-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
  padding: 0;
}

/* Each search result (tweet) */
#search-results-list li {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  background-color: #fff;
  border-radius: 1rem;
  border: 1px solid #eee;
}

.platform-logo {
  width: 20px;
  height: 20px;
  margin-right: 5px;
  vertical-align: middle; /* Align the logo with the text */
}

.search-button {
  width: fit-content;
  background-color: #32127a;
  background-color: #32127a;
  border: none;
  color: white;
  padding: 10px 20px;
  text-align: center;
  align-self: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  font-family: "vazir";
  font-family: "vazir";
  margin-top: 10px;
  margin-bottom: -13px;
  box-shadow: 2px 2px 5px 0 rgba(0, 0, 0, 0.25);
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

/* Container for Toggle Switches */
.toggle-container {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  font-size: 16px;
  color: #333;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
  margin-right: 10px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

/* Circle inside slider */
.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  border-radius: 50%;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.4s;
}

/* Toggle ON */
.toggle-switch input:checked + .slider {
  background-color: #32127a;
  background-color: #32127a;
}

.toggle-switch input:checked + .slider:before {
  transform: translateX(20px);
}

/* Hover effect */
.toggle-switch:hover .slider {
  background-color: #95b5df;
}

.platform-select {
  color: #000000;
}

.headline-maker {
  font-size: 12px;
}

.headline-setting {
  align-items: end;
  display: flex;
  gap: 1rem;
  font-size: 16px;
}

.headline-setting button {
  width: fit-content;
  background-color: #32127a; /* سبز */
  border: none;
  color: white;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  box-shadow: 2px 2px 5px 0 rgba(0, 0, 0, 0.25);
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.headline-setting select {
  background-color: white;
  border: thin solid rgb(182, 182, 182);
  border-radius: 4px;
  display: inline-block;
  line-height: 1.5em;
  padding: 0.5rem;
}

/* استایل برای برچسب (label) در کلاس form-group */
.form-group .form-label {
  font-size: 16px;
  font-weight: bold;
  color: #333333;
  margin-bottom: 8px;
  display: block;
}

/* استایل برای فیلد ورودی (input[type="number"]) در کلاس form-group */
.form-group .form-control {
  width: fit-content;
  padding: 10px 12px;
  font-size: 16px;
  border: 1px solid #dddddd;
  border-radius: 8px;
  outline: none;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* تغییر رنگ هنگام فوکوس روی فیلد ورودی */
.form-group .form-control:focus {
  border-color: #32127a;
  box-shadow: 0 0 8px rgba(67, 6, 95, 0.25);
}

/* استایل برای خطا (در صورت نیاز) */
.form-group .form-control.error {
  border-color: #ff4d4f;
  box-shadow: 0 0 8px rgba(255, 77, 79, 0.25);
}

.form-group .form-control.error:focus {
  border-color: #ff1a1a;
  box-shadow: 0 0 8px rgba(255, 26, 26, 0.4);
}

.headline-maker h2 {
  margin-top: 40px;
}

.headline-maker textarea {
  height: 10rem;
  font-size: medium;
  margin-top: 30px;
}

/* استایل‌های بخش ابزار محتوا */
.content-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 20px;
}

.left-column,
.right-column {
  flex: 1;
  min-width: 300px;
}

/* استایل‌های مشترک برای تیتر ساز و خلاصه ساز */
.headline-maker,
.summarizer {
  background-color: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.headline-maker h1,
.summarizer h2 {
  color: #32127a;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 10px;
  color: #333;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  margin-bottom: 15px;
  resize: vertical;
}

/* استایل‌های دکمه‌ها و کنترل‌ها */
.headline-setting,
.summarize-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.form-icon {
  display: flex;
  align-items: center;
  color: #32127a;
  margin-left: 5px;
}

.form-icon i {
  font-size: 18px;
}

.form-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-group .form-label {
  margin-bottom: 0;
  white-space: nowrap;
}

.form-group .form-control {
  width: auto;
  text-align: center;
}

.form-button {
  background-color: #32127a;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-right: auto;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.form-button:hover {
  background-color: #4619af;
  transform: translateY(-2px);
}

/* استایل‌های خروجی */
.headlines-title {
  margin-top: 20px;
  color: #333;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 12px;
  padding-bottom: 8px;
}

.headlines-list {
  font-size: 16px;
  list-style: none; /* حذف نقطه‌ها از لیست */
  padding: 0;
  margin: 0;
}

.headlines-list li {
  background-color: #f5f8fa;
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  border-right: 3px solid #32127a;
  transition: all 0.2s ease;
  cursor: pointer;
}

.headlines-list li:hover {
  background-color: #edf2f7;
  transform: translateX(-5px);
}

.loader {
  width: 120px;
  height: 22px;
  border-radius: 20px;
  color: #32127a;
  border: 2px solid;
  position: relative;
  margin: 20px auto;
}

.loader::before {
  content: "";
  position: absolute;
  margin: 2px;
  inset: 0 100% 0 0;
  border-radius: inherit;
  background: currentColor;
  animation: l6 2s infinite;
}

@keyframes l6 {
  100% {
    inset: 0;
  }
}

.toast {
  visibility: hidden;
  min-width: 250px;
  margin-left: -125px;
  background-color: #32127a;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  padding: 10px;
  position: fixed;
  z-index: 1;
  left: 50%;
  bottom: 15%;
  font-size: 17px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  transition: visibility 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

/* نمایش دادن Toast */
.toast.show {
  visibility: visible;
  opacity: 1;
}

/* Base Styles */
:root {
  --primary-color: #4a90e2;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --border-color: #dee2e6;
}

body {
  font-family: "IRANSans", "Tahoma", sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  direction: rtl;
}

/* Navbar Styles */
.navbar {
  background-color: #32127a;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 0.4rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 0;
  margin: 1rem auto;
  width: 100%;
  box-sizing: border-box;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  margin-right: auto;
}

.iran-flag {
  width: 22px;
  height: 18px;
  border-radius: 2px;
  display: block;
}

#iran-date-time {
  font-family: "Vazir", sans-serif;
  font-size: 0.9rem;
  direction: rtl;
  white-space: nowrap;
}

.navbar-right {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-left: auto;
}

.navbar-right a {
  color: white;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background-color 0.3s;
  font-family: "Vazir", sans-serif;
  white-space: nowrap;
  font-size: 0.95em;
}

.navbar-right a:first-child {
  font-weight: bold;
  font-size: 1em;
}

.navbar-right a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar-right a.active {
  background-color: white;
  color: #32127a;
}

.new-badge {
  background-color: #dc3545;
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 0.8em;
  margin-right: 5px;
}

/* Content Container */
.content-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  margin: 0 auto;
  max-width: 1440px;
  width: 100%;
  box-sizing: border-box;
}

.left-column,
.right-column {
  margin-top: 0;
  padding-top: 0;
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Form Elements */
.form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 14px;
}

.form-button {
  background-color: #32127a;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
}

.form-button:hover {
  background-color: #4619ad;
}

/* Tweet List */
.tweet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tweet-item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 15px;
}

.tweet-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.platform-logo,
.user-logo {
  width: 24px;
  height: 24px;
}

.tweet-content {
  margin-bottom: 10px;
}

.tweet-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--secondary-color);
  font-size: 0.9em;
}

/* Search Container */
.search-container {
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  padding: 20px 32px;
  background: white;
  border-radius: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 15px;
  align-items: flex-end;
}

.search-box {
  flex: 1;
}

.search-platform-filter {
  display: flex;
  gap: 10px;
  padding: 4px;
}

/* Platform Filter */
.platform-filter {
  display: flex;
  align-items: center;
  gap: 5px;
}

.platform-filter input[type="checkbox"] {
  display: none;
}

.platform-filter svg {
  width: 24px;
  height: 24px;
  padding: 4px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.platform-filter input[type="checkbox"]:checked + svg {
  background-color: #32127a;
  border-color: #32127a;
  color: white;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #333;
  color: white;
  padding: 12px 24px;
  border-radius: 4px;
  display: none;
  z-index: 1000;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 20px;
  background-color: #fff;
  margin-top: 40px;
  border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .content-container {
    flex-direction: column;
  }

  .search-container {
    flex-direction: column;
  }

  .search-box {
    width: 100%;
  }
}

/* Tab System */
.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* New Badge */
.new-badge {
  background-color: var(--danger-color);
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 0.8em;
  margin-right: 5px;
}

/* Mode Selection */
.mode-selection {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.mode-selection a {
  padding: 8px 16px;
  border-radius: 4px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s;
}

.mode-selection a.active {
  background-color: var(--primary-color);
  color: white;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary-color);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* Results Section */
.results {
  margin-top: 20px;
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: var(--light-color);
}

.results p {
  margin-bottom: 10px;
  padding: 10px;
  background-color: white;
  border-radius: 4px;
  border-right: 3px solid var(--primary-color);
}

/* Fonts */
@font-face {
  font-family: "Vazir";
  src: url("../fonts/Vazir-Medium.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

.navbar,
.content-container,
.search-container {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.board-item {
  font-family: "Danstevis", IranSans, Tahoma, Arial, sans-serif !important;
  position: relative;
}

.board-badge {
  display: inline-block;
  position: absolute;
  top: 10px;
  right: 10px;
  margin-bottom: 0;
  padding: 4px 14px 4px 14px;
  border-radius: 16px 4px 16px 4px;
  font-size: 15px;
  font-weight: bold;
  background: #32127a;
  color: #fff;
  box-shadow: 0 2px 8px #0001, 2px 2px 8px #0002;
  transition: background 0.3s, opacity 0.3s;
  opacity: 1;
  z-index: 2;
  transform: rotate(-3deg);
}
.board-item .board-badge {
  margin-bottom: 12px;
}
.board-item.filled .board-badge {
  background: #bdb7d6;
  color: #fff;
  opacity: 0.6;
}

.board-content .board-item:nth-child(1) .board-badge {
  background: #32127a;
} /* Title */
.board-content .board-item:nth-child(2) .board-badge {
  background: #e67e22;
} /* Story */
.board-content .board-item:nth-child(3) .board-badge {
  background: #16a085;
} /* Platforms */
.board-content .board-item:nth-child(4) .board-badge {
  background: #c0392b;
} /* Persona */
.board-content .board-item:nth-child(5) .board-badge {
  background: #2980b9;
} /* Strategy */
.board-content .board-item:nth-child(6) .board-badge {
  background: #8e44ad;
} /* Audience */
.board-content .board-item:nth-child(7) .board-badge {
  background: #f39c12;
} /* Message */
.board-content .board-item:nth-child(8) .board-badge {
  background: #27ae60;
} /* Timing */

.board-item.filled .board-badge {
  opacity: 0.6;
  filter: grayscale(0.2) brightness(1.2);
}

.board-badge {
  z-index: 10 !important;
}

.board-content-value {
  padding-top: 36px;
  text-align: center;
  min-height: 40px;
  width: 100%;
  box-sizing: border-box;
  word-break: break-word;
  font-family: "Danstevis", IranSans, Tahoma, Arial, sans-serif !important;
}

.board-badge {
  z-index: 10 !important;
  pointer-events: none;
}

/* Campaign Board Custom Heights & Layouts */
#title-display.board-item {
  width: 48%;
  height: 60px;
  margin-right: 52%;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
#title-display .board-content-value {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

#platforms-display.board-item {
  height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#platforms-display .board-content-value {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

#story-display.board-item,
#strategy-display.board-item,
#message-display.board-item {
  height: 140px;
  display: flex;
  flex-direction: column;
}
#story-display .board-content-value,
#strategy-display .board-content-value,
#message-display .board-content-value {
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 36px;
  text-align: center;
}

#persona-display.board-item {
  height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-bottom: 0;
}
#persona-display .board-content-value {
  padding-top: 36px;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
#persona-display .persona-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
}
#persona-display .persona-element {
  background: #f5f5f5;
  border-radius: 6px;
  padding: 2px 10px;
  font-size: 13px;
  border: 1px solid #e1e1e1;
}

#audience-display.board-item,
#timing-display.board-item {
  height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
#audience-display .board-content-value,
#timing-display .board-content-value {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 36px;
  text-align: center;
}

.board-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 15px;
}

#persona-display.board-item {
  width: 100%;
  min-width: 0;
}

#story-display .board-content-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: pre-line;
  max-height: 160px;
}
#strategy-display .board-content-value,
#message-display .board-content-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: pre-line;
  max-height: 90px;
}

.board-badge {
  z-index: 10 !important;
  pointer-events: none;
  background-clip: padding-box;
}

.board-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  position: relative;
  width: 100%;
}

.board-item {
  border: 2px dashed #222;
  background: #fff;
  margin: 0;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

/* Layout for campaign board (approximate to sample image) */
#title-display.board-item {
  width: 48%;
  height: 60px;
  margin-right: 52%;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
#story-display.board-item {
  width: 48%;
  height: 110px;
  margin-right: 52%;
  margin-bottom: 0;
}
#platforms-display.board-item {
  width: 48%;
  height: 40px;
  margin-right: 0;
  margin-left: 52%;
  margin-top: -170px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
#persona-display.board-item {
  width: 100%;
  height: 120px;
  margin: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
#strategy-display.board-item {
  width: 48%;
  height: 110px;
  margin-right: 0;
  margin-left: 52%;
  margin-top: 0;
  margin-bottom: 0;
}
#audience-display.board-item {
  width: 48%;
  height: 60px;
  margin-right: 0;
  margin-left: 0;
  margin-top: 0;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
#timing-display.board-item {
  width: 48%;
  height: 40px;
  margin-right: 0;
  margin-left: 0;
  margin-top: 0;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
#message-display.board-item {
  width: 48%;
  height: 110px;
  margin-right: 0;
  margin-left: 52%;
  margin-top: 0;
  margin-bottom: 0;
}

/* Arrow badge styles */
.board-arrow {
  position: absolute;
  top: 12px;
  right: -2px;
  width: 90px;
  height: 32px;
  color: #fff;
  font-weight: bold;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  clip-path: polygon(0 0, 80% 0, 100% 50%, 80% 100%, 0 100%, 10% 50%);
  box-shadow: 0 2px 8px #0001;
  transition: opacity 0.3s;
  opacity: 1;
  pointer-events: none;
}

/* Specific colors for each label */
#title-display .board-arrow {
  background: #fffdd0; /* Cream color */
  color: #000;
}
#story-display .board-arrow {
  background: #00ff00;
  color: #000;
}
#platforms-display .board-arrow {
  background: #0000ff;
  color: #fff;
}
#persona-display .board-arrow {
  background: #800080;
  color: #fff;
}
#audience-display .board-arrow {
  background: #000000;
  color: #fff;
}
#strategy-display .board-arrow {
  background: #ffff00;
  color: #000;
}
#timing-display .board-arrow {
  background: #ffa500;
  color: #000;
}
#message-display .board-arrow {
  background: #ff0000;
  color: #fff;
}

.board-item.filled .board-arrow {
  opacity: 0.5;
}

/* Random color palette for arrows (to be set by JS) */
.board-arrow.color1 {
  background: #2196f3;
}
.board-arrow.color2 {
  background: #e67e22;
}
.board-arrow.color3 {
  background: #16a085;
}
.board-arrow.color4 {
  background: #c0392b;
}
.board-arrow.color5 {
  background: #2980b9;
}
.board-arrow.color6 {
  background: #8e44ad;
}

.board-arrow.color7 {
  background: #f39c12;
}
.board-arrow.color8 {
  background: #27ae60;
}
.board-arrow.color9 {
  background: #222;
}

/* Remove gap between boxes */
.board-content > .board-item {
  margin-bottom: 0;
}

/* Persona table style */
#persona-display .board-content-value {
  padding-top: 36px;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
#persona-display .persona-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
}
#persona-display .persona-element {
  background: #f5f5f5;
  border-radius: 6px;
  padding: 2px 10px;
  font-size: 13px;
  border: 1px solid #e1e1e1;
}

.board-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 80px 60px 160px 80px 60px;
  grid-template-areas:
    "story title"
    "story platforms"
    "persona persona"
    "audience strategy"
    "timing message";
  gap: 0;
  padding: 0;
  width: 100%;
  background: none;
  position: relative;
}

#story-display.board-item {
  grid-area: story;
}
#title-display.board-item {
  grid-area: title;
}
#platforms-display.board-item {
  grid-area: platforms;
}
#persona-display.board-item {
  grid-area: persona;
}
#audience-display.board-item {
  grid-area: audience;
}
#strategy-display.board-item {
  grid-area: strategy;
}
#message-display.board-item {
  grid-area: message;
}
#timing-display.board-item {
  grid-area: timing;
}

.board-item {
  border: 2px dashed #222;
  background: #fff;
  margin: 0;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  font-family: "Danstevis", IranSans, Tahoma, Arial, sans-serif !important;
}

.board-content-value {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: "Danstevis", IranSans, Tahoma, Arial, sans-serif !important;
  padding: 0 12px;
  box-sizing: border-box;
  word-break: break-word;
}

.board-arrow {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 90px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  font-size: 15px;
  font-weight: bold;
  pointer-events: none;
  clip-path: polygon(0 0, 80% 0, 100% 50%, 80% 100%, 0 100%, 10% 50%);
  box-shadow: 0 2px 8px #0001;
  opacity: 1;
  transition: opacity 0.3s;
}
.board-item.filled .board-arrow {
  opacity: 0.5;
}

/* Remove all manual width, margin, and height hacks from board items */
#title-display.board-item,
#story-display.board-item,
#platforms-display.board-item,
#persona-display.board-item,
#strategy-display.board-item,
#audience-display.board-item,
#message-display.board-item,
#timing-display.board-item {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Persona list inside persona box */
#persona-display .board-content-value {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
}
#persona-display .persona-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
}
#persona-display .persona-element {
  background: #f5f5f5;
  border-radius: 10px;
  padding: 0px 10px;
  font-size: 12px;
  border: 2px solid #e1e1e1;
}

/* Remove gap between boxes */
.board-content > .board-item {
  margin-bottom: 0;
}

/* Ensure RTL direction */
.board-content {
  direction: rtl;
}

.board-item {
  min-height: 90px;
}

/* Campaign Canvas Grid Layout */
.campaign-canvas-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 114px 116px 118px 116px 60px;
  grid-template-areas:
    "story title"
    "story platforms"
    "persona persona"
    "audience strategy"
    "timing message";
  gap: 1.2rem 1.2rem;
  padding: 1.2rem;
}

#story-display.board-item {
  grid-area: story;
}
#title-display.board-item {
  grid-area: title;
}
#platforms-display.board-item {
  grid-area: platforms;
}
#persona-display.board-item {
  grid-area: persona;
}
#audience-display.board-item {
  grid-area: audience;
}
#strategy-display.board-item {
  grid-area: strategy;
}
#timing-display.board-item {
  grid-area: timing;
}
#message-display.board-item {
  grid-area: message;
}

.board-item {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: box-shadow 0.2s, border 0.2s;
  overflow: hidden;
  min-width: 180px;
  min-height: 120px;
  max-width: 600px;
  max-height: 400px;
  border: 2px solid #e0e0e0;
  position: relative;
  margin: 0;
}

.board-item:focus-within,
.board-item:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
  border: 2px solid #007bff;
}

.board-arrow {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #f0f0f0;
  color: #444;
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  z-index: 2;
}

.board-content-value {
  margin-top: 32px;
  font-size: 0.88rem; /* 20% smaller than 1.1rem */
  color: #222;
  word-break: break-word;
}

@media (max-width: 900px) {
  .campaign-canvas-grid {
    grid-template-columns: 1fr;
  }
}

/* Report Maker Styles */
.url-input-group,
.keyword-input-group {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}

.url-input-group .form-control,
.keyword-input-group .form-control {
  flex: 1;
}

.remove-url,
.remove-keyword {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.remove-url:hover,
.remove-keyword:hover {
  background-color: rgba(220, 53, 69, 0.1);
}

#add-url,
#add-keyword {
  background-color: #32127a;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

#add-url:hover,
#add-keyword:hover {
  background-color: #4a1bb3;
}

#add-url:disabled,
#add-keyword:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

#report-result-modal {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
  cursor: pointer;
  transition: background-color 0.2s;
}

#report-result-modal:hover {
  background: #e9ecef;
}

/* Journalist Style Hint Styles */
.style-hint {
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.style-hint-header {
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 10px;
}

.style-hint-header img {
  object-fit: contain;
  border-radius: 4px;
}

.style-hint-header h4 {
  font-size: 1.1rem;
  color: #32127a;
  font-weight: 600;
}

#style-description {
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Add hover effect to the hint box */
.style-hint:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* Report Maker Form Styles */
#reportmaker-form-modal {
  width: 800px;
  max-width: 90vw;
  margin: 0 auto;
  padding: 20px;
}

#reportmaker-form-modal .form-group {
  margin-bottom: 20px;
}

#reportmaker-form-modal .form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #32127a;
}

#reportmaker-form-modal .form-control {
  padding: 12px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

/* Specific styles for different form controls */
#reportmaker-form-modal textarea.form-control {
  width: 100%;
  min-height: 120px;
  resize: vertical;
}

#reportmaker-form-modal select.form-control {
  width: 300px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2332127a' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  padding-left: 32px;
}

#reportmaker-form-modal input[type="number"].form-control {
  width: 150px;
}

#reportmaker-form-modal input[type="url"].form-control,
#reportmaker-form-modal input[type="text"].form-control {
  width: 100%;
}

#reportmaker-form-modal .form-control:focus {
  border-color: #32127a;
  box-shadow: 0 0 0 2px rgba(50, 18, 122, 0.1);
}

.url-input-group,
.keyword-input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  width: 100%;
}

.url-input-group .form-control,
.keyword-input-group .form-control {
  flex: 1;
}

.remove-url,
.remove-keyword {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.remove-url:hover,
.remove-keyword:hover {
  background: #e9ecef;
  color: #dc3545;
}

#add-url,
#add-keyword {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  color: #32127a;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: auto;
  min-width: 120px;
}

#add-url:hover,
#add-keyword:hover {
  background: #e9ecef;
}

#add-url:disabled,
#add-keyword:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#reportmaker-form-modal button[type="submit"] {
  width: auto;
  min-width: 150px;
  padding: 12px 24px;
  background: #32127a;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#reportmaker-form-modal button[type="submit"]:hover {
  background: #4a1ba0;
}

/* Tool Modal Styles */
#tool-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

#tool-modal-content {
  background: white;
  border-radius: 12px;
  padding: 30px;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s ease;
  margin: auto;
}

/* Specific widths for different tool modals */
#tool-modal-content[data-tool="summarizer"],
#tool-modal-content[data-tool="headline"] {
  width: 640px;
  max-width: 90vw;
}

#tool-modal-content[data-tool="reportmaker"] {
  width: 880px;
  max-width: 90vw;
}

.tool-modal-header {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e9ecef;
}

.tool-modal-close {
  position: absolute;
  top: 20px;
  left: 20px;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #6c757d;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.tool-modal-close:hover {
  background: #f8f9fa;
  color: #32127a;
}

/* --- Story Extraction Styles --- */
#story-elements-label {
  font-weight: bold;
  color: #32127a;
  margin-bottom: 6px;
  display: block;
}
#story-elements-textarea {
  width: 100%;
  min-height: 100px;
  margin-bottom: 15px;
  padding: 12px;
  border-radius: 8px;
  border: 1.5px solid #32127a;
  font-family: inherit;
  font-size: 1.05em;
  background: #f8f9fa;
  transition: border-color 0.2s;
  resize: vertical;
}
#story-elements-textarea:focus {
  border-color: #f5a623;
  outline: none;
  background: #fffbe7;
}
#extract-story-elements.form-button {
  background-color: #32127a;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
#extract-story-elements.form-button:hover {
  background: #f5a623;
  color: #32127a;
}
