@font-face {
  font-family: "Estedad";
  src: url("./fonts/Estedad-Regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Estedad";
  src: url("./fonts/Estedad-Bold.woff2") format("woff2");
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: "Estedad";
  src: url("./fonts/Estedad-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: "Estedad";
  src: url("./fonts/Estedad-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: "Estedad";
  src: url("./fonts/Estedad-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
}

#adminmenu .wp-menu-image img {
  opacity: 1 !important;
}

/* استایل‌های اصلی صفحه مدیریت */
.landin-admin-page {
  font-family: "Estedad", sans-serif !important;
  direction: rtl;
  max-width: 1436px;
  margin: 0 auto;
  padding-left: 24px;
}

.landin-admin-page h1 {
  font-family: "Estedad", sans-serif !important;
  color: #333;
  font-weight: 600;
  margin-bottom: 16px;
}

.landin-admin-page h2 {
  font-family: "Estedad", sans-serif !important;
}

.landin-admin-page h3 {
  font-family: "Estedad", sans-serif !important;
}

.landin-admin-page span.bold {
  font-family: "Estedad", sans-serif !important;
  font-weight: bold;
  margin: 0 2px;
}

.landin-admin-page code {
  font-family: "Estedad", sans-serif;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-weight: 500;
}

/* استایل تب‌ها */
.landin-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
}

.landin-tab {
  padding: 12px 20px;
  margin-right: 5px;
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  color: #555;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
}

.landin-tab.active,
.landin-tab:hover {
  background: white;
  color: #6d65ec;
  border-bottom: 1px solid white;
  margin-bottom: -1px;
}

/* استایل طرح‌بندی دو ستونه برای تب "مدیریت صفحات" */
.landin-manage-layout {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  height: auto;
  position: relative;
}

.landin-form-column {
  flex: 1;
  width: 45%;
}

.landin-banner-column {
  width: 55%;
  height: 294px;
  max-height: 294px;
}

/* استایل بنر کناری */
.landin-banner {
  height: 100%;
  position: relative;
  background: linear-gradient(270deg, #4a21f4 20.45%, #6268f4 82.91%);
  color: white;
  border-radius: 12px;
  display: flex;
}

.landin-banner .title {
  font-family: "Estedad", sans-serif !important;
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 700;
  font-size: 24px;
  text-align: right;
  color: #fff;
}

.landin-banner p {
  font-family: "Estedad", sans-serif !important;
  margin: 0;
  font-weight: 400;
  font-size: 22px;
  text-align: right;
  max-width: 375px;
  color: #fff;
}

.landin-banner .banner-background {
  width: 100%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
}

.landin-banner .banner-right-side {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: 62px 68px 34px 24px;
  z-index: 1;
}

.landin-banner .banner-left-side {
  width: 100%;
  position: relative;
  z-index: 1;
}

.landin-banner .banner-left-side .banner-image {
  height: 220px;
  position: absolute;
  left: 0;
  bottom: 0;
}

.landin-banner-button {
  padding: 12px 16px;
  border-radius: 12px;
  display: inline-block;
  background: #fff;
  color: #4a21f4;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  text-align: center;
  vertical-align: middle;
  transition: all 0.3s;
  margin-top: 16px;
}

.landin-banner-button:hover {
  transform: translateY(-2px);
  color: #4a21f4;
}

.landin-banner-button span {
  margin-left: 16px;
}

/* استایل‌های فرم */
.landin-form {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.settings-form {
  max-width: 600px;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #444;
}

.landin-form input[type="text"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.landin-form input[type="text"]:focus {
  border-color: #6d65ec;
  box-shadow: 0 0 0 2px rgba(109, 101, 236, 0.2);
  outline: none;
}

.form-group .description {
  margin-top: 8px;
  color: #777;
  font-size: 13px;
}

.form-group .highlight {
  font-weight: 600;
  color: #6d65ec;
}

.landin-file-input {
  position: relative;
  display: inline-block;
  width: 100%;
}

.landin-file-input input[type="file"] {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
}

.file-custom {
  display: block;
  padding: 16px 24px;
  background: #f9f9f9;
  border: 1px dashed #ccc;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.landin-file-input:hover .file-custom {
  border-color: #6d65ec;
  background: #f5f4ff;
}

.submit-btn {
  width: 100%;
  background-color: #6d65ec !important;
  color: white !important;
  border: none !important;
  padding: 10px 24px !important;
  border-radius: 12px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.3s !important;
  font-size: 14px !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.submit-btn:hover {
  background-color: #5c55e0 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 10px rgba(92, 85, 224, 0.3) !important;
}

/* استایل راهنما */
.landin-help {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.landin-help h2 {
  margin-top: 0;
  color: #333;
  font-weight: 600;
  margin-bottom: 25px;
}

.landin-help-section {
  margin-bottom: 30px;
}

.landin-help-section h3 {
  font-size: 18px;
  color: #6d65ec;
  margin-bottom: 15px;
}

.landin-help-section p,
.landin-help-section li {
  color: #555;
  line-height: 1.7;
  font-size: 14px;
}

.landin-help-section ol,
.landin-help-section ul {
  padding-right: 20px;
  margin-bottom: 15px;
}

.landin-help-section li {
  margin-bottom: 10px;
}

.landin-help-section .landin-help-section-button {
  background-color: #6d65ec;
  color: #fff;
  width: 100%;
  height: 46px;
  text-decoration: none;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  font-family: "Estedad", sans-serif;
  text-align: center;
  vertical-align: middle;
}

.landin-help-section .landin-help-section-button:hover {
  background-color: #5c55e0;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(92, 85, 224, 0.3);
  color: #fff;
}

.landin-cards-heading {
  font-weight: 600;
  margin: 30px 0 20px;
  color: #333;
  font-size: 24px;
}

.landin-help-section .help-image {
  width: 300px;
  border-radius: 12px;
}

.landin-help-section ul {
  list-style: disc !important;
}

/* استایل‌های کارت */
.landin-cards-heading {
  font-weight: 600;
  margin: 42px 0 32px;
  color: #333;
  font-size: 24px;
}

.landing-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.landing-card {
  width: 300px;
  border: none;
  padding: 0;
  padding-bottom: 24px;
  text-align: center;
  box-shadow: 0px 3px 16px 0px #0000000d;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  background: #fff;
}

.iframe-container {
  position: relative;
  width: 300px;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  border: 0;
  overflow: hidden;
  pointer-events: none;
}

.landing-card h3 {
  font-size: 16px;
  margin: 16px 0;
  font-weight: 500;
  font-family: "Estedad", sans-serif;
}

.landing-card .button {
  width: 85%;
  background-color: #6d65ec;
  color: #fff;
  padding: 4px 16px;
  text-decoration: none;
  border-radius: 12px;
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  font-family: "Estedad", sans-serif;
}

.landing-card .button:hover {
  background-color: #5c55e0;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(92, 85, 224, 0.3);
  color: #fff;
}

/* استایل دکمه حذف */
.delete-landing-form {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
}

.delete-landing-btn {
  background-color: #ff4757;
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  line-height: 1;
}

.delete-landing-btn:hover {
  background-color: #ff6b81;
  transform: scale(1.1);
}

.delete-landing-btn svg {
  height: 8px;
  width: 10px;
}

/* استایل نشانگر مسیر پایه */
.landing-path-badge {
  display: inline-block;
  background-color: #f0f0f0;
  color: #666;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-right: 5px;
  font-weight: normal;
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
}

/* استایل بخش تاریخچه مسیرها */
.landin-history-section {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
  border: 1px solid #eee;
}

.landin-history-section h3 {
  margin-top: 0;
  color: #333;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.history-form {
  margin-top: 15px;
}

.history-select-container {
  display: flex;
  gap: 10px;
  align-items: center;
}

.history-select {
  flex: 1;
  padding: 12px 15px !important;
  border: 1px solid #ddd !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
  font-family: "Estedad", sans-serif !important;
  background-color: white !important;
}

.history-select:focus {
  border-color: #6d65ec !important;
  box-shadow: 0 0 0 2px rgba(109, 101, 236, 0.2) !important;
  outline: none !important;
}

.history-select-btn {
  background-color: #6d65ec !important;
  color: white !important;
  border: none !important;
  padding: 10px 20px !important;
  border-radius: 12px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.3s !important;
  font-size: 14px !important;
  box-shadow: none !important;
  text-shadow: none !important;
  min-width: 100px;
}

.history-select-btn:hover {
  background-color: #5c55e0 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 10px rgba(92, 85, 224, 0.3) !important;
}

/* Responsive adjustments for history section */
@media screen and (max-width: 992px) {
  .history-select-container {
    flex-direction: column;
    gap: 15px;
  }

  .history-select,
  .history-select-btn {
    width: 100%;
  }
}

/* پاسخگویی برای موبایل */
@media screen and (max-width: 768px) {
  .landin-banner {
    flex-direction: column;
    height: auto;
  }

  .landin-banner-column {
    height: auto;
    max-height: none;
  }

  .landin-banner .banner-left-side {
    width: 100%;
    height: auto;
    min-height: 240px;
    position: relative;
  }

  .landin-banner .banner-left-side .banner-image {
    position: absolute;
    display: block;
    height: auto;
    max-height: 240px;
    left: 0;
    bottom: 0;
  }

  .landin-banner .banner-right-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding: 42px 8px 34px 8px !important;
    margin: 0 auto;
    max-width: 300px;
  }

  .landin-banner .banner-right-side p {
    text-align: center;
  }

  .landin-manage-layout {
    margin-bottom: 60px; /* Increase bottom margin to prevent overlap */
  }

  .landin-banner-button {
    margin: 16px auto;
  }
}

@media screen and (max-width: 992px) {
  .landin-manage-layout {
    flex-direction: column;
  }

  .landin-form-column,
  .landin-banner-column {
    width: 100%;
  }

  .landin-tabs {
    flex-direction: column;
    border-bottom: none;
  }

  .landin-tab {
    border-radius: 0;
    margin-right: 0;
    margin-bottom: 5px;
    border: 1px solid #ddd;
  }

  .landin-tab.active {
    border-bottom: 1px solid #ddd;
    margin-bottom: 5px;
  }

  .landing-cards {
    justify-content: center;
  }
}

/* پاسخگویی برای تبلت */
@media screen and (min-width: 992px) and (max-width: 1100px) {
  .landing-cards {
    justify-content: center;
  }
}

@media screen and (max-width: 1201px) {
  .landin-banner .banner-right-side {
    padding: 42px 24px 34px 24px;
  }
}
