#accountSubmenu1,
#accountSubmenu {
  display: none;
}

#accountSubmenu1.show,
#accountSubmenu.show {
  display: block;
}

/* .has-submenu ul {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
} */
.has-submenu ul[style*="block"] {
  max-height: 350px; /* adjust as needed */
}

.has-submenu ul {
  display: none;
}

.has-submenu ul.show {
  display: block !important;
}

.has-submenu ul li a {
  /* padding-left: 30px; */
  display: block;
}

.has-submenu ul li a {
  /* padding-left: 30px; */
  display: block;
  width: 100%;
}

.admin_siderbarr {
  overflow-y: auto; /* ensure dropdown is visible */
}

.inputicon {
  position: absolute;
  left: 13px;
  top: 16px;
  max-width: 22px;
}
/* Password input styling */
.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input-wrapper .form-control {
    padding-right: 80px; /* Space for both icons */
}

.password-input-wrapper .lock-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.toggle-password-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password-btn img {
    width: 20px;
    height: 20px;
}

/* Add hover effect */
.toggle-password-btn:hover {
    opacity: 0.8;
}

/* Remove outline on focus */
.toggle-password-btn:focus {
    outline: none;
}

.reset-password-toggle-btn {
  position: absolute;
  top: 65%;
  right: 20px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.reset-password-toggle-btn img {
  width: 20px;
  height: 20px;
  opacity: 0.7;
}

.reset-password-toggle-btn:hover img {
  opacity: 1;
}


[data-theme="dark"] {
  /* Define your dark theme variables */
  --bg-color: #1a1a1a;
  --text-color: #ffffff;
  /* Add other variables as needed */
}

.dark-theme {
  background-color: #1a1a1a;
  color: #ffffff;
}

.dark-theme .admin_main,
.dark-theme .admin_contentpart,
.dark-theme .comman_design {
  background-color: #1a1a1a;
  color: #ffffff;
}

.promo-table thead{
  background-color: #f8f9fa;
}

.promo-table th {
  font-weight: 600;
  font-size: 13px;
  /* color: #bd6789; */
  padding: 16px;
  border-bottom: 1px solid #e8e8e8;
}

/* Custom checkbox color */
.form-check-input:checked {
  background-color: #bd6789 !important;
  border-color: #bd6789 !important;
}

.form-check-input:focus {
  border-color: #bd6789 !important;
  box-shadow: 0 0 0 0.25rem rgba(189, 103, 137, 0.25) !important;
}

[dir="rtl"] #accountSubmenu1,
[dir="rtl"] #accountSubmenu {
  display: none;
}

[dir="rtl"] #accountSubmenu1.show,
[dir="rtl"] #accountSubmenu.show {
  display: block;
}

/* .has-submenu ul {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
} */
[dir="rtl"] .has-submenu ul[style*="block"] {
  max-height: 350px; /* adjust as needed */
}

[dir="rtl"] .has-submenu ul {
  display: none;
}

[dir="rtl"] .has-submenu ul.show {
  display: block !important;
}

[dir="rtl"] .has-submenu ul li a {
  /* padding-right: 30px; */ /* Changed from padding-left */
  display: block;
}

[dir="rtl"] .has-submenu ul li a {
  /* padding-right: 30px; */ /* Changed from padding-left */
  display: block;
  width: 100%;
}

[dir="rtl"] .admin_siderbarr {
  overflow-y: auto; /* ensure dropdown is visible */
}

[dir="rtl"] .inputicon {
  position: absolute;
  right: 13px; /* Changed from left: 13px */
  left: auto; /* Added to override */
  top: 16px;
  max-width: 22px;
}

/* Password input styling */
[dir="rtl"] .password-input-wrapper {
    position: relative;
    width: 100%;
}

[dir="rtl"] .password-input-wrapper .form-control {
    padding-left: 80px; /* Changed from padding-right */
    padding-right: inherit; /* Reset original padding */
}

[dir="rtl"] .password-input-wrapper .lock-icon {
    position: absolute;
    right: 15px; /* Changed from left: 15px */
    left: auto; /* Added to override */
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
}

[dir="rtl"] .toggle-password-btn {
    position: absolute;
    left: 15px; /* Changed from right: 15px */
    right: auto; /* Added to override */
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

[dir="rtl"] .toggle-password-btn img {
    width: 20px;
    height: 20px;
}

/* Add hover effect */
[dir="rtl"] .toggle-password-btn:hover {
    opacity: 0.8;
}

/* Remove outline on focus */
[dir="rtl"] .toggle-password-btn:focus {
    outline: none;
}

[dir="rtl"] .reset-password-toggle-btn {
  position: absolute;
  top: 65%;
  left: 20px; /* Changed from right: 20px */
  right: auto; /* Added to override */
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

[dir="rtl"] .reset-password-toggle-btn img {
  width: 20px;
  height: 20px;
  opacity: 0.7;
}

[dir="rtl"] .reset-password-toggle-btn:hover img {
  opacity: 1;
}

[dir="rtl"][data-theme="dark"] {
  /* Define your dark theme variables */
  --bg-color: #1a1a1a;
  --text-color: #ffffff;
  /* Add other variables as needed */
}

[dir="rtl"] .dark-theme {
  background-color: #1a1a1a;
  color: #ffffff;
}

[dir="rtl"] .dark-theme .admin_main,
[dir="rtl"] .dark-theme .admin_contentpart,
[dir="rtl"] .dark-theme .comman_design {
  background-color: #1a1a1a;
  color: #ffffff;
}

[dir="rtl"] .promo-table thead{
  background-color: #f8f9fa;
}

[dir="rtl"] .promo-table th {
  font-weight: 600;
  font-size: 13px;
  /* color: #bd6789; */
  padding: 16px;
  border-bottom: 1px solid #e8e8e8;
}

[dir="rtl"] .modal-header .btn-close{
  margin: 0
}