/* === General Layout & Typography === */
body {
  background: #fff;
  font-family: Arial, sans-serif;
  margin: 0;
}

/* === Banner === */
.top-banner {
  background-color: #e6e0f5;
  text-align: center;
  padding: 16px 12px;
  color: #333;
  border-bottom: 1px solid #d1c4e9;
  margin: 20px 0;
}
.banner-box {
  max-width: 900px;
  margin: 15px auto;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.banner-text {
  font-size: small;
}

/* === Maintenance Section === */
.maintenance-section {
  position: relative;
  width: 100%;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.maintenance-section .background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: url('../background.png') no-repeat center center;
  background-size: cover;
  opacity: 1;
}
.maintenance-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
  padding: 48px 20px 32px;
}
.maintenance-content h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  font-weight: 600;
}
.maintenance-content p {
  font-size: small;
  margin-bottom: 8px;
}

/* === Layout Wrappers === */
.full-height {
  height: 100vh;
}
.main-content {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 120px);
  justify-content: flex-start;
  align-items: stretch;
}
.main-content .no-product-message {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #aaa;
  font-size: 1.5rem;
}

/* === Sidebar === */
.sidebar {
  background: #fff;
  padding: 20px;
  border-right: 1px solid #e0e0e0;
  height: 100vh;
  overflow-y: auto;
  max-width: 30%;
}

.sidebar h4 {
  font: normal normal bold 18px/22px Lato, Arial, sans-serif;
  color: #000000;
  margin-bottom: 20px;
  text-align: left;
}

/* Sidebar Search */
.sidebar-search {
  margin-bottom: 20px;
}

.sidebar-search-input {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 10px 12px;
  font: normal normal normal 14px/16px Lato, Arial, sans-serif;
  width: 100%;
  box-sizing: border-box;
}

/* Sidebar Lists */
.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-sublist {
  list-style: none;
  padding: 0;
  margin: 8px 0 8px 20px;
  background: transparent;
}

.sidebar-subsublist {
  list-style: none;
  padding: 0;
  margin: 4px 0 4px 20px;
  background: #EAEEF5;
}

/* Sidebar Items */
.sidebar-list-item {
  margin: 0 0 4px 0;
  border-bottom: none;
}

.sidebar-list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 2px;
}

.sidebar-list-row:hover {
  background: #C9CFF0 !important;
  border-radius: 4px;
  opacity: 1;
}

.sidebar-list-row .mdi {
  margin-right: 4px;   /* Reduce gap to 4px */
  margin-left: 0;
  vertical-align: middle;
}

.sidebar-sublist-item {
  border-bottom: none;
  margin: 2px 0;
}

.sidebar-sublist .sidebar-list-row {
  font: normal normal normal 13px/16px Lato, Arial, sans-serif;
  padding: 8px 12px;
  background: transparent;
  color: #000000;
  margin-left: 0;
}

.sidebar-sublist .sidebar-list-row:hover {
  background: #C9CFF0 !important;
  border-radius: 4px;
  opacity: 1;
}

.sidebar-subsublist li {
  padding: 0;
  margin: 1px 0;
}

.sidebar-subsublist a {
  display: block;
  padding: 6px 12px;
  color: #000000;
  text-decoration: none;
  font: normal normal normal 12px/15px Lato, Arial, sans-serif;
  border-bottom: none;
  border-radius: 4px;
  margin-bottom: 1px;
  transition: background 0.2s ease;
}

.sidebar-subsublist a:hover {
  background: #C9CFF0 !important;
  border-radius: 4px;
  opacity: 1;
  text-decoration: none;
}

/* Make sure level 3 is bold and not overridden */
.sidebar-subsublist a.sidebar-level3 {
  font: normal normal bold 11px/13px Lato, Arial, sans-serif !important;
  color: #333;
  letter-spacing: 0;
  display: block;
  padding-left: 12px;
  background: #EAEEF5;
  border-radius: 8px;
  opacity: 1;
  margin: 6px 0;
  padding: 6px 12px;
  transition: background 0.2s;
}

.sidebar-subsublist a.sidebar-level3:hover {
  background: #C9CFF0;
  border-radius: 8px;
  opacity: 1;
}

/* Level 1 */
.sidebar-level1 {
  font: normal normal bold 13px/26px Lato, Arial, sans-serif;
  color: #000;
  letter-spacing: 0;
}

/* Level 2 */
.sidebar-level2 {
  font: normal normal normal 12px/15px Lato, Arial, sans-serif;
  color: #222;
  letter-spacing: 0;
  display: inline-block;
  vertical-align: middle;
  margin-left: 0;      /* Remove any left margin */
}

/* Level 3 */
.sidebar-level3 {
  font: normal normal bold 11px/13px Lato, Arial, sans-serif;
  color: #333;
  letter-spacing: 0;
  display: block;
  padding-left: 12px;
  /* background: #b0b8e6 !important; */
  border-radius: 8px;
  opacity: 1;
  margin-bottom: 4px;
  padding: 6px 12px;
  transition: background 0.2s;
  word-break: break-all;      /* Break long words */
  white-space: normal;        /* Allow wrapping */
  overflow-wrap: anywhere;    /* Modern browsers: break anywhere */
}

.sidebar-level3:hover {
  background: #C9CFF0;
  border-radius: 8px;
  opacity: 1;
}

/* Chevron Icons */
.mdi-chevron-right {
  transition: transform 0.2s;
  font-size: 14px;
  color: #666;
  display: inline-block;
}

.chevron-rotated {
  transform: rotate(90deg);
}

.mdi-chevron-right.mdi-chevron-down {
  transform: rotate(90deg);
}

/* No results message */
.no-result-message .sidebar-list-row {
  color: #666;
  font-style: italic;
  justify-content: center;
}

.no-result-message .sidebar-list-row:hover {
  background: transparent !important;
}

/* Level 2 row: align items to the left, remove space between chevron and text */
.sidebar-list-row-level2 {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 12px;
  gap: 4px; /* Small gap between chevron and text */
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 2px;
}

.sidebar-list-row-level2 .mdi {
  font-size: 14px;
  color: #666;
  margin-right: 4px;
  margin-left: 0;
  vertical-align: middle;
  transition: transform 0.2s;
  display: inline-block;
}

.sidebar-list-row-level2 .sidebar-level2 {
  font: normal normal normal 12px/15px Lato, Arial, sans-serif;
  color: #222;
  letter-spacing: 0;
  display: inline-block;
  vertical-align: middle;
  margin-left: 0;
}

/* Hover effect for level 2 */
.sidebar-list-row-level2:hover {
  background: #C9CFF0 !important;
  border-radius: 4px;
  opacity: 1;
}
