/************* Global CSS ****************/
@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap");

:root {
  /* colors */
  --white: #fff;
  --red: #a81e1e;
  --gray-color: #afafaf;
  --purple-primary: #8949aa;
  --purple: #443355;
  --border-radius-md: 16px;
  --light-text: #808080;

  /* typography */
  --primary-font: "Figtree", sans-serif;
}

.ff-dark-theme {
  font-size: 10px;
  position: relative;
  z-index: 1;
}

.ff-dark-theme p {
  font-size: 1.8em;
  color: var(--white);
  line-height: normal;
  font-weight: 400;
}

.ff-dark-theme * {
  font-family: var(--primary-font) !important;
}

.ff-dark-theme :where(h1, .h1, h2, .h2, h3, .h3) {
  font-weight: 600;
}

.ff-dark-theme .text-white {
  color: var(--white) !important;
}

.ff-dark-theme .list-unstyled {
  list-style-type: none;
}

.ff-dark-theme .fw-600 {
  font-weight: 600 !important;
}

.ff-dark-theme .text-right {
  text-align: right !important;
}

.ff-dark-theme .pb-0 {
  padding-bottom: 0 !important;
}

.ff-dark-theme .mb-0 {
  margin-bottom: 0 !important;
}

.ff-dark-theme .mb-1 {
  margin-bottom: 1em !important;
}

.ff-dark-theme .mt-auto {
  margin-top: auto !important;
}

.ff-dark-theme .ml-auto {
  margin-left: auto !important;
}

.ff-dark-theme .ml-2 {
  margin-left: 2em !important;
}

.ff-dark-theme .mr-auto {
  margin-right: auto !important;
}

.ff-dark-theme .overlay {
  position: relative;
  overflow: hidden;
}

.ff-dark-theme .overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

.ff-dark-theme .d-flex {
  display: flex !important;
}

.ff-dark-theme .align-items-center {
  align-items: center !important;
}

.ff-dark-theme .justify-content-center {
  justify-content: center !important;
}

.ff-dark-theme .flex-end {
  justify-content: flex-end !important;
}

/************* Modal CSS ****************/

.ff-dark-theme .position-relative {
  position: relative !important;
}

.ff-dark-theme .blur-effect::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #15c0d7;
  filter: blur(22px);
  z-index: -1;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.ff-dark-theme .close-btn {
  position: absolute;
  right: 3em;
  top: 50%;
  transform: translateY(-50%);
}

.ff-dark-theme .close-btn img {
  width: 1.7em;
}

.ff-dark-theme .close-btn:hover,
.ff-dark-theme .close-btn:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.ff-dark-theme .modal-body.blur-effect::before {
  opacity: 0.7;
  border-radius: 736px;
  height: 50%;
  filter: blur(82px);
  z-index: 0;
}
.ff-dark-theme .modal-body {
  width: 90%;
  max-width: 741px;
}

.ff-dark-theme .modal .step-title-bar {
  padding: 2em 3em;
  border-bottom: 1px solid #268da7;
}

.ff-dark-theme .modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Black with opacity */
}

.ff-dark-theme .ff-popup {
  position: fixed;
  top: 114px;
  right: 3.2rem;
  display: none;
  z-index: 999;
  max-width: 408px;
  padding: 3.8em 4.7em 2.9em;
  overflow: hidden;
}

.ff-dark-theme .modal-body {
  overflow: hidden;
  background-color: var(--purple);
  border-radius: var(--border-radius-md);
}

.ff-dark-theme .modal-content {
  padding: 2.4em 2.2em 3em;
  max-height: 80vh;
  overflow-y: auto;
}

/* Badges */
.ff-dark-theme .badge {
  font-size: 1.4em;
  line-height: 1.29;
  font-weight: 500;
  padding: 3px 0.72em;
  border-radius: 10px;
  color: var(--white);
  display: inline-flex !important;
  position: relative;
}

.ff-dark-theme .badge img,
.ff-dark-theme .badge svg {
  margin-left: 4px;
}

.ff-dark-theme .yellow_info-badge {
  border: 0.4px solid #677718;
  background: #e3eeaa;
  color: #677718;
  min-width: 14em;
  justify-content: center;
  font-weight: 700;
  box-shadow: 1px 2px 10px 0px rgba(159, 159, 159, 0.25);
}

.ff-dark-theme .badge.badge-primary-light {
  border-radius: 20px;
  background: rgba(137, 73, 170, 0.7);
  padding: 0.23em 1.1em !important;
}

.ff-dark-theme .badge.badge-process {
  background: #a5a5a5;
}

.ff-dark-theme .badge.badge-dark {
  border: 1px solid #ac80c3;
  background: #435;
  border-radius: 20px;
}

.ff-dark-theme .badge.badge-sucess {
  background: #219f51;
}

.ff-dark-theme .badge.badge-error {
  background: var(--red);
}

.ff-dark-theme .badge.badge-primary {
  background: var(--purple-primary);
}

.ff-dark-theme .badge.badge-lg {
  font-size: 1.6em;
  padding: 0.625em 1.25em;
  border-radius: 20px;
}

.ff-dark-theme .disabled-state {
  opacity: 0.5;
  pointer-events: none;
}

/* tooltip css */
.ff-dark-theme .tooltip-text.tooltip-center::before {
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
}

.ff-dark-theme .tooltip-text.tooltip-center {
  top: -46px;
  left: 50%;
  transform: translateX(-50%);
  bottom: auto;
  text-align: center;
}

.ff-dark-theme .tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.ff-dark-theme .tooltip-text {
  visibility: hidden;
  width: auto;
  color: #343434;
  padding: 6px;
  position: absolute;
  z-index: 1;
  top: -3.8em;
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 300;
  background: #e5e5e5;
}

.ff-dark-theme .tooltip-small .tooltip-text {
  min-width: 132px;
}

.ff-dark-theme .tooltip-small .tooltip-text.tooltip-top {
  left: -23px;
}

.ff-dark-theme .tooltip-small .tooltip-text::before {
  top: 27px;
}

.ff-dark-theme .tooltip-lg .tooltip-text {
  width: 300px;
  left: -19px;
  top: -5.5em;
}

.ff-dark-theme .tooltip-lg .tooltip-text::before {
  left: 27px;
  top: 52px;
}

.ff-dark-theme .tooltip-text.tooltip-top::before {
  left: 27px;
}

.ff-dark-theme .tooltip-text::before {
  width: 15px;
  height: 15px;
  background: #e5e5e5;
  content: "";
  position: absolute;
  transform: rotate(45deg);
}

.ff-dark-theme .tooltip-text.tooltip-right::before {
  right: 8px;
}

.ff-dark-theme .tooltip-text.tooltip-right {
  right: 0;
  text-align: center;
}

.ff-dark-theme .tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.card-style ul.action-buttons li:first-of-type {
  justify-content: flex-start;
}

.card-style ul.action-buttons li:last-of-type {
  justify-content: flex-end;
}

.card-style ul.action-buttons li:last-of-type button {
  width: auto;
}

.ff-dark-theme .absolute-top-right {
  position: absolute !important;
  right: 0;
  top: 2rem;
}

.ff-dark-theme .flex-wrap {
  display: flex;
  flex-wrap: wrap;
}

.ff-dark-theme .flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ff-dark-theme .btn {
  border-radius: 4px;
  border: 0;
  font-family: var(--primary-font);
  font-weight: 600;
  line-height: normal;
  padding: 0.625em 1.25em;
  min-height: 2.5em;
}

.ff-dark-theme .btn.btn-sm {
  font-weight: 500;
  line-height: 1.5;
  border-radius: 35px;
  background: linear-gradient(
    148deg,
    rgba(0, 255, 255, 0.8) -3.91%,
    rgba(147, 39, 207, 0.8) 89.04%
  );
}

.ff-dark-theme .btn.btn-sm {
  font-size: 1.4em;
  padding: 6px 1.8em;
  color: var(--white);
}

.ff-dark-theme .btn.btn-sm:hover {
  opacity: 0.8;
}

.ff-dark-theme .btn-symbol-right :where(i, svg, img) {
  margin-left: 1rem;
}

.ff-dark-theme .btn-symbol-left :where(i, svg, img) {
  margin-right: 1rem;
}

.ff-dark-theme .btn-primary-gradient {
  background: linear-gradient(130deg, #9327cf 6.82%, #0ff 125.83%);
  box-shadow: 0px 4px 4px 0px rgba(255, 255, 255, 0.25) inset;
}

.ff-dark-theme .btn-primary-gradient:hover {
  background: linear-gradient(134deg, #0ff -14.56%, #9327cf 85.98%);
  box-shadow: 0px 4px 4px 0px rgba(255, 255, 255, 0.36) inset;
}

.ff-dark-theme .absolute-center {
  position: absolute !important;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* img utilites */

.ff-dark-theme .img-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Dashboard css */

.ff-dark-theme h1,
.ff-dark-theme .h1 {
  font-size: 3.6em;
  line-height: normal;
}

.ff-dark-theme h2,
.ff-dark-theme .h2 {
  font-size: 2.4em;
  line-height: 1.5;
}

.ff-dark-theme h3,
.ff-dark-theme .h3 {
  font-size: 2em;
}

.ff-dark-theme h4,
.ff-dark-theme .h4 {
  font-size: 1.8em;
}

.ff-dark-theme h5,
.ff-dark-theme .h5 {
  font-size: 1.6em;
  line-height: 1.1;
  font-weight: 500;
}

.ff-dark-theme .text-medium {
  font-size: 1.4em;
  line-height: 1.3;
  font-weight: 500;
  text-transform: capitalize;
}

.ff-row {
  margin-left: -2.3em;
  margin-right: -2.3em;
}

.ff-col {
  padding-left: 2.3em;
  padding-right: 2.3em;
  margin-bottom: 2.3em;
  width: 100%;
}

.ff-dark-theme .glass-bg {
  border-radius: 10px;
  padding: 1.6em 3px 1.6em 3px;
  border: 0.4px solid #525d7a;
  background: linear-gradient(
    188deg,
    rgba(255, 255, 255, 0.11) -5.45%,
    rgba(255, 255, 255, 0.11) 66.92%
  );
  box-shadow: 3px 4px 40px 0px rgba(0, 0, 0, 0.12);
}

.btn-style {
  font-size: 1.6em;
}

.ff-dark-theme .credit-time {
  margin-bottom: 1.4em;
  display: inline-block;
}

.ff-dark-theme .credit-header > div:not(:last-of-type) {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.ff-dark-theme .table-style *,
.ff-dark-theme table.table-style {
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: var(--white);
}

.ff-dark-theme .table-striped.table-style tr,
.ff-dark-theme .table-striped.table-style th {
  background-color: transparent !important;
}

.ff-dark-theme .table-striped.table-style {
  overflow: hidden;
}

.ff-dark-theme .table-striped.table-style th {
  font-size: 2em;
  font-weight: 600;
}

.ff-dark-theme .table-style > tbody > tr > td,
.ff-dark-theme .table-style > tbody > tr > th {
  padding: 16px 20px;
}

.ff-dark-theme .table-style > tbody > tr > td {
  font-size: 1.8em;
}

.card-style .action-buttons {
  justify-content: space-between;
  padding: 1.4em 2.4em;
  margin: 1.8em -1em 0;
  border-top: 1px solid var(--gray-color);
  margin-top: auto !important;
}

.card-style .img-wrap + h2 {
  margin-bottom: 6px !important;
}

.card-style ul.action-buttons li:nth-child(even) {
  border-left: 1px solid var(--gray-color);
  border-right: 1px solid var(--gray-color);
}

.ff-dark-theme .ff_add_new_language img {
  width: 17px;
}

.card-style.card-btn {
  position: relative;
  padding-bottom: 4.5em;
}

.card-style .btn-bottom {
  position: absolute;
  bottom: 1em;
  left: 1em;
  min-height: auto !important;
}

.card-style.overlay::before {
  background: rgba(0, 0, 0, 0.3);
}

.card-style .action-buttons svg path {
  fill: var(--black);
}

.card-style .action-buttons button {
  padding: 0;
  border: 0;
  width: 100%;
  height: 100%;
}

.card-style .action-buttons > li {
  flex: 1;
  margin: 0;
}

.card-style {
  border-radius: 8px;
  padding: 1em;
  position: relative;
  height: 100%;
  box-shadow: 0px 1px 3px 0px rgba(137, 73, 170, 0.18);
  display: flex;
  flex-direction: column;
}

.card-style .img-wrap {
  height: 18.6em !important;
  border-radius: 8px;
  margin-bottom: 1.8em !important;
}

.card-style .img-wrap img {
  border-radius: 8px;
}

.translate-title {
  margin-bottom: 4.1em;
  margin-top: 2em;
}

.card-style .absolute-top-right {
  top: 2em;
  z-index: 99;
  width: 100%;
  left: 0;
  padding: 0 2em;
  right: 0;
}

.date-wrap {
  margin-bottom: 1.8em !important;
}

.letranslator-wallet-credits-container .spend-time-credit * {
  font-weight: 300 !important;
}

.letranslator-wallet-credits-container > div:first-of-type {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.letranslator-wallet-credits-container > div {
  flex: 1;
  text-align: center;
}

.letranslator-wallet-credits-container .credit-label {
  font-size: 1.8em;
  font-weight: 700;
  color: #fff;
  line-height: normal;
}

.letranslator-wallet-credits-container .credit-value {
  font-size: 3.6em;
  font-weight: 600;
  color: #fff;
  line-height: normal;
}

.letranslator-wallet-popup .close-btn {
  right: 1em !important;
}

.ff-dark-theme .letranslator-wallet-popup .close-btn img {
  width: 0.8em;
}

/* Based on min-width */
@media (min-width: 767px) {
  .ff-dark-theme .ml-md-auto {
    margin-left: auto;
  }
  .ff-col-md-6 {
    width: 50%;
  }
  .d-md-flex {
    display: flex;
  }
  .ml-md-2 {
    margin-left: 2em;
  }
}

@media (min-width: 992px) {
  .ff-col-lg-3 {
    width: 33.33%;
  }
}

/* Based on max-width */

@media (max-width: 1500px) {
  /* Dashboard */
  body.page-template-ir-wisdm-dashboard-template:not(.ir-collapse) {
    margin-left: 250px;
  }
  body.page-template-ir-wisdm-dashboard-template {
    margin-left: 90px;
    transition: margin 0.2s ease;
  }
}

@media (max-width: 992px) {
  .ff-dark-theme {
    font-size: 9px;
  }
}

@media (max-width: 767px) {
  .ff-dark-theme {
    font-size: 8px;
  }

  .translate-title {
    justify-content: center;
    gap: 2em;
  }
  .ff-dark-theme .credit-badge {
    margin-bottom: 1em;
  }
}

@media (max-width: 576px) {
  .ff-dark-theme {
    font-size: 7px;
  }
}

.ff-dark-theme .info-block p {
  font-size: 1.8em;
  font-weight: 400;
  line-height: normal;
  color: var(--light-text);
}
.ff-dark-theme .info-block h2 {
  margin-bottom: 1.01em;
}

.ff-dark-theme .info-block {
  max-width: 660px;
  margin: 15em auto 0 auto;
}

.ff-dark-theme .pagination-container ul.page-numbers {
  justify-content: flex-end;
  padding-left: 0;
  gap: 8px;
  display: flex;
  align-items: center;
  list-style-type: none;
}

.ff-dark-theme .pagination-container .page-numbers li :where(span, a) {
  width: 32px;
  height: 32px;
  text-align: center;
  line-height: 30px;
  border-radius: 4px;
  background-color: #fff;
  border: 1px solid #e8deed !important;
  display: inline-block;
  font-size: 0.875rem !important;
}
.ff-dark-theme .pagination-container li .current,
.ff-dark-theme li span:hover,
.ff-dark-theme .pagination-container li a:hover {
  background-color: #954fb6 !important;
  color: #fff;
}
.ff-dark-theme .page-numbers img {
  filter: invert(1);
}

.ff-dark-theme li .page-numbers:hover img {
  filter: unset;
}

#selected-video-preview .loader-white {
  width: 3em;
  height: 3em;
  margin: 8px;
  border-radius: 50%;
  border: 2px solid var(--white);
  border-color: var(--white) var(--white) transparent;
  animation: ring 1.2s linear infinite;
  margin: 20px auto;
}

@keyframes ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.d-block {
  display: block !important;
}

.ff_add_new_language {
  cursor: pointer;
}

.badge-container .badge-primary-light {
  text-transform: uppercase;
}
