/* === moved verbatim from your master === */
.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.form-select:dir(rtl) {
  background-position: left .75rem center;
}



/* Fix z-index conflict between header and mobile menu */
.header-part {
  z-index: 10 !important;
}

.mobile-menu {
  z-index: 5 !important;
}

/* Ensure proper spacing when both header and mobile menu are present */
@media (max-width:991px) {

  /* Add padding-bottom to body when mobile menu is present */
  body:has(.mobile-menu) {
    padding-bottom: 80px !important;
  }
}

@media (max-width:991px) {
  .header-logo img {
    width: 0% !important;
  }

  .header-part {
    padding: 12px 15px !important;
    min-height: 60px !important;
    background: #ffffff !important;
    box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.08) !important;
  }

  .header-part.sticky {
    padding: 8px 15px !important;
    min-height: 55px !important;
  }

  .header-logo {
    display: none !important;
  }

  .header-content {
    flex-direction: column !important;
    width: 100% !important;
  }

  .header-responsive {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
  }

  .responsive-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 !important;
    order: 2 !important;
  }

  .responsive-logo img {
    width: auto !important;
    max-width: 130px !important;
    height: 35px !important;
    object-fit: contain !important;
  }

  .responsive-srch {
    display: block !important;
    order: 3 !important;
  }

  .sidebar-open {
    order: 1 !important;
  }

  .header-widget i {
    width: 40px !important;
    height: 40px !important;
    font-size: 24px !important;
    line-height: 38px !important;
    background: #f5f5f5 !important;
    color: #5e5d72 !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
  }

  .header-widget i:hover {
    background: #477CDB !important;
    color: #ffffff !important;
  }

  h1 {
    font-size: 35px;
    padding: 25px;
  }

  html[dir="rtl"] .header-logo img {
    width: 0% !important;
  }

  html[dir="rtl"] .header-responsive,
  [dir="rtl"] .header-responsive,
  html:lang(ar) .header-responsive {
    flex-direction: row-reverse !important;
  }

  html[dir="rtl"] .sidebar-open,
  [dir="rtl"] .sidebar-open,
  html:lang(ar) .sidebar-open {
    order: 3 !important;
  }

  html[dir="rtl"] .responsive-logo,
  [dir="rtl"] .responsive-logo,
  html:lang(ar) .responsive-logo {
    order: 2 !important;
  }

  html[dir="rtl"] .responsive-srch,
  [dir="rtl"] .responsive-srch,
  html:lang(ar) .responsive-srch {
    order: 1 !important;
  }
}

@media (max-width:575px) {
  .header-part {
    padding: 10px 12px !important;
    min-height: 55px !important;
  }

  .header-part.sticky {
    padding: 6px 12px !important;
    min-height: 50px !important;
  }

  .responsive-logo img {
    max-width: 110px !important;
    height: 30px !important;
  }

  .header-widget i {
    width: 36px !important;
    height: 36px !important;
    font-size: 22px !important;
    line-height: 34px !important;
  }

  .header-responsive {
    gap: 8px !important;
  }
}

@media (max-width:767px) {
  h1 {
    font-size: 35px !important;
    padding: 25px !important;
  }
}

.footer-top a img {
  height: 80px !important;
}

/* html[dir="rtl"] .header-logo{justify-content:flex-end;} */
html[dir="rtl"] .header-logo img {
  width: 100%;
}

/* Desktop header logo */
.header-logo {
    width: 68px;
    height: 68px;
    min-width: 68px;
    flex: 0 0 68px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;
    border-radius: 50%;
    overflow: hidden;
}

.header-logo img {
    width: auto;
    height: 45px;
    max-width: 54px;
    object-fit: contain;
    display: block;
}


.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 10px;
}

.sidebar-header .sidebar-close {
  position: absolute;
  top: 10px;
  right: 10px;
}

.sidebar-part {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.sidebar-content {
  overflow-y: auto;
  flex-grow: 1;
}


.footer-social {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1px;
}

.footer-social li {
  display: inline-block;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f5f5f5;
  transition: background-color .3s, transform .3s;
  text-decoration: none;
  color: #333;
}

.footer-social a:hover {
  background: #ddd;
  transform: scale(1.1);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.sidebar-part {
  position: fixed;
  width: 320px;
  height: 100%;
  z-index: 9999;
  top: 0;
  background: #fff;
  transition: all linear .3s;
  -webkit-transition: all linear .3s;
  -moz-transition: all linear .3s;
  -ms-transition: all linear .3s;
  -o-transition: all linear .3s;
}

.banner-slider {
  position: relative;
  z-index: 1;
}

.banner-slider>div {
  position: relative;
  z-index: 1;
}

html:lang(en) .sidebar-part {
  left: -350px;
}

html:lang(en) .sidebar-part.open {
  left: 0;
}

html:lang(ar) .sidebar-part {
  right: -350px;
  left: auto;
  width: 320px;
}

html:lang(ar) .sidebar-part.open {
  right: 0;
  left: auto;
}

@media (max-width:991px) {
  html:lang(ar) .sidebar-part {
    width: 320px;
    right: -350px;
  }
}

@media (max-width:768px) {
  html:lang(ar) .sidebar-part {
    width: 300px;
    right: -330px;
  }
}

@media (max-width:575px) {
  html:lang(ar) .sidebar-part {
    width: 280px;
    right: -310px;
  }
}

.toast {
  right: 20px;
  top: 20px;
  z-index: 1050;
  opacity: .9;
  backdrop-filter: blur(5px);
  transition: opacity .5s ease-in-out;
}

/* ============================================
   Modern Sidebar Styles
   ============================================ */

.sidebar-modern {
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
}

/* Sidebar Header */
.sidebar-header-modern {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-bottom: none;
  position: relative;
}

.sidebar-logo {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.sidebar-logo img {
  max-height: 40px;
  width: auto;
  height: auto;
  display: block;
}

.sidebar-logo-text {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
}

[dir="rtl"] .sidebar-logo-text {
  flex-direction: row-reverse;
}

.sidebar-logo-text .logo-brand {
  color: #ffffff;
  font-weight: 800;
  text-transform: lowercase;
}

.sidebar-logo-text .logo-type {
  color: #ffd700;
  font-weight: 600;
  text-transform: lowercase;
  position: relative;
}

.sidebar-logo-text .logo-type::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 20px;
  background: rgba(255, 255, 255, 0.3);
}

.sidebar-close-modern {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  position: absolute;
  top: 20px;
  right: 20px;
}

.sidebar-close-modern:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Sidebar Content */
.sidebar-content-modern {
  padding: 20px;
  overflow-y: auto;
  flex-grow: 1;
}

/* User Section */
.sidebar-user-section {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-radius: 16px;
  margin-bottom: 20px;
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
}

.sidebar-user-section:hover {
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.sidebar-user-avatar {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #667eea;
  flex-shrink: 0;
}

.sidebar-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-user-status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 14px;
  height: 14px;
  background: #10b981;
  border: 2px solid #fff;
  border-radius: 50%;
}

.sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.sidebar-user-name {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}

.sidebar-user-link {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #667eea;
  color: #fff;
  border-radius: 8px;
  transition: all 0.3s ease;
  flex-shrink: 0;
  text-decoration: none;
}

.sidebar-user-link:hover {
  background: #5568d3;
  transform: translateX(4px);
  color: #fff;
}

.sidebar-user-link i {
  font-size: 18px;
}

/* Browse All Button */
.sidebar-btn-modern {
  margin-bottom: 25px;
}

.btn-browse-all {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-browse-all:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  color: #fff;
}

.btn-browse-all i {
  font-size: 22px;
}

/* Sidebar Groups */
.sidebar-group-modern {
  margin-bottom: 30px;
}

.sidebar-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 0 4px;
}

.sidebar-group-header i {
  font-size: 20px;
  color: #667eea;
}

.sidebar-title-modern {
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

/* Navigation List */
.nav-list-modern {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item-modern {
  margin-bottom: 4px;
}

.nav-link-modern {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  color: #374151;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link-modern:hover {
  background: #f3f4f6;
  color: #1f2937;
  transform: translateX(4px);
}

.nav-link-modern.nav-link-danger {
  color: #ef4444;
}

.nav-link-modern.nav-link-danger:hover {
  background: #fee2e2;
  color: #dc2626;
}

.nav-icon-wrapper {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-link-modern:hover .nav-icon-wrapper {
  background: #667eea;
  color: #fff;
}

.nav-link-modern.nav-link-danger:hover .nav-icon-wrapper {
  background: #ef4444;
}

.nav-icon-wrapper i {
  font-size: 20px;
  color: #667eea;
  transition: all 0.3s ease;
}

.nav-link-modern:hover .nav-icon-wrapper i {
  color: #fff;
}

.nav-text-modern {
  flex: 1;
  font-weight: 500;
  font-size: 15px;
}

.nav-badge-modern {
  background: #667eea;
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

.nav-arrow-modern {
  font-size: 20px;
  color: #9ca3af;
  transition: transform 0.3s ease;
}

.nav-item-dropdown.active .nav-arrow-modern {
  transform: rotate(90deg);
}

/* Dropdown List */
.drop-list-modern {
  list-style: none;
  padding: 8px 0 8px 52px;
  margin: 0;
  display: none;
  background: #f9fafb;
  border-radius: 0 0 10px 10px;
}

.nav-item-dropdown.active .drop-list-modern {
  display: block;
}

.drop-item-modern {
  margin-bottom: 2px;
}

.drop-link-modern {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: #6b7280;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 14px;
}

.drop-link-modern:hover {
  background: #e5e7eb;
  color: #1f2937;
  padding-left: 20px;
}

.drop-link-modern.drop-link-danger {
  color: #ef4444;
}

.drop-link-modern.drop-link-danger:hover {
  background: #fee2e2;
  color: #dc2626;
}

.drop-link-modern i {
  font-size: 18px;
}

/* Language Selector */
.select-option-modern {
  position: relative;
}

.select-data-modern {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.select-data-modern:hover {
  border-color: #667eea;
  background: #f3f4f6;
}

.select-image-modern {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

.select-text-modern {
  flex: 1;
  font-weight: 500;
  color: #374151;
  font-size: 15px;
}

.select-arrow-modern {
  font-size: 20px;
  color: #9ca3af;
  transition: transform 0.3s ease;
}

.select-option-modern.active .select-arrow-modern {
  transform: rotate(180deg);
}

.option-list-modern {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  margin-top: 8px;
  padding: 8px;
  list-style: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 1000;
}

.select-option-modern.active .option-list-modern {
  display: block;
}

.option-item-modern {
  margin-bottom: 4px;
}

.option-link-modern {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #374151;
  text-decoration: none;
  transition: all 0.3s ease;
}

.option-link-modern:hover {
  background: #f3f4f6;
  color: #667eea;
}

.option-image-modern {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

.option-text-modern {
  font-weight: 500;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar-user-section {
    flex-direction: column;
    text-align: center;
  }

  .sidebar-user-info {
    width: 100%;
  }

  .sidebar-user-link {
    margin-top: 8px;
  }
}

/* RTL Support for Sidebar Modern */
[dir="rtl"] .sidebar-user-link:hover,
html[dir="rtl"] .sidebar-user-link:hover {
  transform: translateX(-4px) scaleX(-1);
}

[dir="rtl"] .nav-link-modern:hover,
html[dir="rtl"] .nav-link-modern:hover {
  transform: translateX(-4px);
}

[dir="rtl"] .drop-link-modern:hover,
html[dir="rtl"] .drop-link-modern:hover {
  padding-left: 16px;
  padding-right: 20px;
}

[dir="rtl"] .drop-list-modern,
html[dir="rtl"] .drop-list-modern {
  padding-left: 0;
  padding-right: 52px;
}

.without-banner {
  padding-top: 90px;
}

.with-banner {
  padding-top: 0;
}

@media (max-width: 768px) {
  .without-banner {
    padding-top: 60px;
  }
}
/* =========================================
   Prevent Material Icons ligature text flash
========================================= */

.material-icons {
    width: 1em;
    height: 1em;
    min-width: 1em;

    overflow: hidden;
    color: transparent !important;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    vertical-align: middle;
}

html.material-icons-ready .material-icons {
    color: inherit !important;
}

.ui-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    display: inline-block;
    flex-shrink: 0;
    vertical-align: middle;
}
/* =========================================================
   HEADER - PAGES WITHOUT BANNER
========================================================= */

.no-page-banner .header-part {
    background: #ffffff;
}


/* Account name */
.no-page-banner .header-user,
.no-page-banner .header-user span {
    color: #344054 !important;
}


/* Menu button */
.no-page-banner .sidebar-open,
.no-page-banner .sidebar-open span {
    color: #344054 !important;
}


/* Menu SVG */
.no-page-banner .sidebar-open .ui-icon {
    color: #344054 !important;
}


/* Hover */
.no-page-banner .header-user:hover,
.no-page-banner .header-user:hover span,
.no-page-banner .sidebar-open:hover,
.no-page-banner .sidebar-open:hover span,
.no-page-banner .sidebar-open:hover .ui-icon {
    color: #477CDB !important;
}
.header-part.sticky .header-user,
.header-part.sticky .header-user span,
.header-part.sticky .sidebar-open,
.header-part.sticky .sidebar-open span,
.header-part.sticky .sidebar-open .ui-icon {
    color: #344054 !important;
}

.header-part.sticky .header-user:hover,
.header-part.sticky .header-user:hover span,
.header-part.sticky .sidebar-open:hover,
.header-part.sticky .sidebar-open:hover span,
.header-part.sticky .sidebar-open:hover .ui-icon {
    color: #477CDB !important;
}