/* Copy Animation */
::selection {
  background-color: #3390FF;
  color: #fff;
}

.base-color {
  color: hsl(var(--main)) !important;
}

/* Arabic RTL General Fix */
html,
body {
  direction: rtl;
  text-align: right;
  font-family: "Cairo", "Tajawal", "Noto Kufi Arabic", Arial, sans-serif;
}

.copyInput {
  display: inline-block;
  line-height: 50px;
  position: absolute;
  top: 0;
  right: auto;
  left: 0;
  width: 40px;
  text-align: center;
  font-size: 14px;
  cursor: pointer;
  -webkit-transition: all .3s;
  -o-transition: all .3s;
  transition: all .3s;
}

.copied::after {
  position: absolute;
  top: 8px;
  right: auto;
  left: 12%;
  width: 100px;
  display: block;
  content: "تم النسخ";
  font-size: 1em;
  padding: 5px 5px;
  color: #fff;
  background-color: #FF7000;
  border-radius: 3px;
  opacity: 0;
  will-change: opacity, transform;
  animation: showcopied 1.5s ease;
}

@keyframes showcopied {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }

  50% {
    opacity: 0.7;
    transform: translateX(-40%);
  }

  70% {
    opacity: 1;
    transform: translateX(0);
  }

  100% {
    opacity: 0;
  }
}

/* Cookies Card */
.cookies-card {
  width: 520px;
  padding: 30px;
  color: #1E2337;
  position: fixed;
  bottom: 15px;
  right: 15px;
  left: auto;
  z-index: 999999;
  transition: all .5s;
  background: #d1d1d1;
  border-radius: 5px;
  text-align: right;
}

.cookies-card.hide {
  bottom: -500px !important;
}

.radius--10px {
  border-radius: 10px;
}

.cookies-card__icon {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background-color: #6e6f70;
  color: #fff;
  font-size: 32px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.cookies-card__content {
  margin-bottom: 0;
  text-align: right;
}

.cookies-btn {
  color: #363636;
  text-decoration: none;
  padding: 10px 35px;
  margin: 3px 5px;
  display: inline-block;
  border-radius: 999px;
  text-align: center;
}

.cookies-btn:hover {
  color: #363636;
}

@media (max-width: 767px) {
  .cookies-card {
    width: 100%;
    right: 0;
    left: auto;
    bottom: 0;
    font-size: 14px;
    padding: 15px;
  }
}

/* Input Popup */
.hover-input-popup {
  position: relative;
}

.input-popup {
  display: none;
}

.hover-input-popup .input-popup {
  display: block;
  position: absolute;
  bottom: 130%;
  right: 50%;
  left: auto;
  width: 280px;
  background-color: #1a1a1a;
  color: #fff;
  padding: 20px;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
  -webkit-transform: translateX(50%);
  -ms-transform: translateX(50%);
  transform: translateX(50%);
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
  text-align: right;
}

.input-popup::after {
  position: absolute;
  content: '';
  bottom: -19px;
  right: 50%;
  left: auto;
  margin-right: -5px;
  margin-left: 0;
  border-width: 10px 10px 10px 10px;
  border-style: solid;
  border-color: transparent transparent #1a1a1a transparent;
  -webkit-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  transform: rotate(180deg);
}

.input-popup p {
  padding-right: 20px;
  padding-left: 0;
  position: relative;
  text-align: right;
}

.input-popup p::before {
  position: absolute;
  content: '';
  font-family: 'Line Awesome Free';
  font-weight: 900;
  right: 0;
  left: auto;
  top: 4px;
  line-height: 1;
  font-size: 18px;
}

.input-popup p.error {
  text-decoration: line-through;
}

.input-popup p.error::before {
  content: "\f057";
  color: #ea5455;
}

.input-popup p.success::before {
  content: "\f058";
  color: #28c76f;
}

/* Filter */
.show-filter {
  display: none;
}

@media (max-width: 767px) {
  .responsive-filter-card {
    display: none;
    transition: none;
  }

  .show-filter {
    display: block;
  }
}

/* Extra RTL Fixes */
.row,
.card,
.modal,
.dropdown-menu,
.form-group,
.form-control,
.form-select,
.table,
.navbar,
.sidebar,
.footer,
.header,
.content,
.dashboard,
.invoice,
.main-content,
.page-wrapper,
.container,
.container-fluid {
  direction: rtl;
  text-align: right;
}

/* Forms */
input,
textarea,
select {
  direction: rtl;
  text-align: right;
}

input[type="email"],
input[type="url"],
input[type="number"],
input[type="tel"],
input[name*="domain"],
input[name*="email"],
input[name*="url"] {
  direction: ltr;
  text-align: left;
}

/* Buttons */
button,
.btn {
  text-align: center;
}

/* Bootstrap RTL Fixes */
.ms-auto {
  margin-right: auto !important;
  margin-left: unset !important;
}

.me-auto {
  margin-left: auto !important;
  margin-right: unset !important;
}

.float-start {
  float: right !important;
}

.float-end {
  float: left !important;
}

.text-start {
  text-align: right !important;
}

.text-end {
  text-align: left !important;
}

/* Bootstrap Spacing Common Fix */
.ms-1 {
  margin-right: .25rem !important;
  margin-left: 0 !important;
}

.ms-2 {
  margin-right: .5rem !important;
  margin-left: 0 !important;
}

.ms-3 {
  margin-right: 1rem !important;
  margin-left: 0 !important;
}

.ms-4 {
  margin-right: 1.5rem !important;
  margin-left: 0 !important;
}

.ms-5 {
  margin-right: 3rem !important;
  margin-left: 0 !important;
}

.me-1 {
  margin-left: .25rem !important;
  margin-right: 0 !important;
}

.me-2 {
  margin-left: .5rem !important;
  margin-right: 0 !important;
}

.me-3 {
  margin-left: 1rem !important;
  margin-right: 0 !important;
}

.me-4 {
  margin-left: 1.5rem !important;
  margin-right: 0 !important;
}

.me-5 {
  margin-left: 3rem !important;
  margin-right: 0 !important;
}

/* Padding Fix */
.ps-1 {
  padding-right: .25rem !important;
  padding-left: 0 !important;
}

.ps-2 {
  padding-right: .5rem !important;
  padding-left: 0 !important;
}

.ps-3 {
  padding-right: 1rem !important;
  padding-left: 0 !important;
}

.ps-4 {
  padding-right: 1.5rem !important;
  padding-left: 0 !important;
}

.ps-5 {
  padding-right: 3rem !important;
  padding-left: 0 !important;
}

.pe-1 {
  padding-left: .25rem !important;
  padding-right: 0 !important;
}

.pe-2 {
  padding-left: .5rem !important;
  padding-right: 0 !important;
}

.pe-3 {
  padding-left: 1rem !important;
  padding-right: 0 !important;
}

.pe-4 {
  padding-left: 1.5rem !important;
  padding-right: 0 !important;
}

.pe-5 {
  padding-left: 3rem !important;
  padding-right: 0 !important;
}

/* Dropdown RTL */
.dropdown-menu {
  right: 0;
  left: auto;
  text-align: right;
}

.dropdown-item {
  text-align: right;
}

/* Tables */
.table th,
.table td {
  text-align: right;
}

/* Modal RTL */
.modal-header .btn-close {
  margin-left: 0;
  margin-right: auto;
}

/* Sidebar/Menu Icons */
.sidebar .menu-icon,
.nav .menu-icon,
.navbar .menu-icon,
.menu-icon {
  margin-left: 8px;
  margin-right: 0;
}

/* List RTL */
ul,
ol {
  padding-right: 2rem;
  padding-left: 0;
}

/* Keep technical text LTR */
code,
pre,
.url,
.domain,
.email,
[class*="code"],
[class*="domain"],
[class*="email"] {
  direction: ltr;
  text-align: left;
}

/* Invoice RTL */
.invoice,
.invoice-area,
.invoice-details,
.invoice-table {
  direction: rtl;
  text-align: right;
}

/* Mobile RTL */
@media (max-width: 767px) {
  .text-md-start,
  .text-lg-start,
  .text-xl-start {
    text-align: right !important;
  }

  .float-md-start,
  .float-lg-start,
  .float-xl-start {
    float: right !important;
  }
}