/* General resets and base styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: white;
  color: #333;
}

/* Container for the entire page */
.container {
  width: 90vw;
  max-width: 1900px;
  height: 90vh;
  max-height: 900px;
  margin: 20px auto;
  border: 1px solid #ccc;
  padding: 10px 20px 20px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* Panels container */
.panels {
  display: flex;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 8px 8px;
  height: 90%;
  overflow: hidden;
}

/* Left panel */
.left-panel {
  width: 30%;
  border-right: 1px solid #ccc;
  padding: 10px 15px;
  box-sizing: border-box;
  overflow-y: auto;
  font-size: 14px;
  color: #f37021;
  font-weight: bold;
  font-family: Arial, sans-serif;
}

/* Left panel options list */
.left-panel ul {
  list-style: none;
  padding-left: 0;
  margin-top: 0;
  font-weight: normal;
  color: black;
  border-top: none;
  padding-top: 0;
}

.brand-item {
  margin-bottom: 10px;
  padding-top: 10px;
  border-top: 2px solid #f37021;
}

/* Add margin below brand label to separate from groups */
.brand-item > ul {
  margin-top: 5px;
  padding-left: 20px;
  margin-bottom: 10px;
  border-top: none;
}

/* Style for contract groups list items */
.option-item {
  margin-left: 20px;
  cursor: pointer;
  font-weight: normal;
  color: black;
}

.option-item:hover {
  text-decoration: underline;
  color: #f37021;
}

.option-item.selected {
  font-weight: bold;
  color: #f37021;
}

/* Left panel list items */
.left-panel ul li {
  margin-bottom: 6px;
  cursor: pointer;
  display: flex;  
}

.left-panel ul li:hover {
  text-decoration: underline;
  color: #f37021;
}

.left-panel ul li .arrow {
  color: #f37021;
  margin-right: 6px;
  font-weight: bold;
  user-select: none;
}

/* Remove underline on hover for brand label spans */
.brand-item > span.arrow,
.brand-item > span:nth-child(2) {
  text-decoration: none;
}

.brand-item > span.arrow {
  margin-right: 5px;
  color: #f37021;
  font-weight: bold;
}

.brand-item > span:nth-child(2) {
  margin-left: 5px;
  cursor: pointer;
  font-weight: normal;
  color: black;
}

.brand-item > span:nth-child(2).selected {
  font-weight: bold;
  color: #f37021;
}

/* Right panel */
.right-panel {
  width: 70%;
  padding: 10px 15px;
  box-sizing: border-box;
  overflow-y: auto;
  font-size: 14px;
  color: #f37021;
  font-family: Arial, sans-serif;
}

/* Right panel headings */
.right-panel h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-weight: bold;
  font-size: 16px;
  color: #f37021;
}

/* Right panel lists */
.right-panel ul {
  list-style: disc inside;
  margin-top: 0;
  margin-bottom: 15px;
  color: black;
  font-weight: normal;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-left: 20px;
  columns: initial;
}

.right-panel ul li {
  margin-bottom: 0;
  margin-right: 15px;
  list-style-position: inside;
}

/* Right panel links */
.right-panel ul li a {
  color: #000000;
  text-decoration: none;
}

.right-panel ul li a:hover {
  text-decoration: underline;
}

/* Scrollbar styling for panels */
.left-panel::-webkit-scrollbar,
.right-panel::-webkit-scrollbar {
  width: 8px;
}

.left-panel::-webkit-scrollbar-thumb,
.right-panel::-webkit-scrollbar-thumb {
  background-color: #f37021;
  border-radius: 4px;
}

/* Small note text below panels */
.note {
  font-size: 12px;
  color: #333;
  margin-top: 10px;
  font-family: Arial, sans-serif;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    width: 95vw;
    height: 95vh;
  }
  .panels {
    flex-direction: column;
  }
  .left-panel, .right-panel {
    width: 100%;
    height: 50%;
    border-right: none;
    border-bottom: 1px solid #ccc;
  }
  .right-panel {
    border-bottom: none;
  }
}

/* Header with title and logo */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #f37021; /* orange line */
  padding-bottom: 5px;
  margin-bottom: 10px;
}

.header h1 {
  font-size: 28px;
  color: #f37021;
  margin: 0;
  font-weight: bold;
  font-family: Arial, sans-serif;
}

.header .logo {
  width: 80px;
  height: 80px;
  background-color: #f37021;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  color: white;
  font-weight: bold;
  font-family: Arial, sans-serif;
  font-size: 18px;
  user-select: none;
  /*text-align: bottom;*/
}

/* Tabs container */
.tabs {
  display: flex;
  border: 1px solid #ccc;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  width: fit-content;
  margin-bottom: 0;
}

/* Individual tab */
.tab {
  background: #f0f0f0;
  border-right: 1px solid #ccc;
  padding: 8px 20px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  user-select: none;
  border-radius: 8px 8px 0 0;
  transition: background-color 0.3s;
  white-space: nowrap;
}

.tab:last-child {
  border-right: none;
}

.tab.active {
  background: white;
  font-weight: bold;
  color: #f37021;
  border-bottom: 2px solid white;
}
