* {
  box-sizing: border-box;
}

:root {
  --shadow: 0px 0px 5px rgba(0, 0, 0, 0.2); /* Define the shadow variable */
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  height: 100%;
  font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
}
a {
  color: #00B7FF;
}

#container {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

#searchBox {
  padding: 3px 10px; /* Same padding as the button */
  border-radius: 10px; /* Same border-radius as the button */
  border: 2px solid #007bff; /* A solid border with the same color as the button background */
  outline: none; /* Removes the default focus outline */
  font-size: 1em; /* Sets font size similar to the button */
  color: #333; /* Text color for the input */
  transition: border-color 0.3s; /* Smooth transition for the border color */
}

#searchBox:focus {
  border-color: #33a1ff; /* Lighter blue border on focus, similar to button hover state */
}

/* Styles to match the disabled button look */
#searchBox:disabled {
  background-color: #b0c4de; /* A lighter, desaturated blue for disabled state */
  color: #f0f0f0; /* Light grey text color */
}


/* .search-results {
  position: fixed;
  background-color: white;
  border: 1px solid #d4d4d4;
  list-style: none;
  padding: 0;
  margin: 0;
  display: none;
  max-height: 300px;
  overflow-y: auto;
  top: calc(32px);
  left: 8px;
}

.search-results li {
  padding: 8px 12px;
  cursor: pointer;
}

.search-results li:hover {
  background-color: #f1f1f1;
} */

.search-results {
  position: fixed;
  background-color: white;
  border: 1px solid #33a1ff; /* Blue border to match the button */
  border-radius: 10px; /* Rounded corners to match the button */
  list-style: none;
  padding: 0;
  margin: 0;
  display: none;
  max-height: 300px;
  overflow-y: auto;
  top: calc(100% + 5px); /* Adjusted to position below an input field */
  left: 8px;
  width: calc(100% - 16px); /* Assuming it should match the input field's width */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional: Add shadow to match the button style */
  z-index: 1000; /* Ensures the list appears on top of other elements */
}

.search-results li {
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 0.1s; /* Smooth transition for background color */
}

/* Style for list items on hover to match the button hover effect */
.search-results li:hover {
  background-color: #8dcaff; /* A little darker on hover, similar to the button */
}

/* If you want to style the scrollbar to be more modern */
.search-results::-webkit-scrollbar {
  width: 12px;
}

.search-results::-webkit-scrollbar-thumb {
  background-color: #007bff; /* Scroll thumb with a blue color */
  border-radius: 15px;
  border: 3px solid white; /* White border for the thumb */
}

.menu-bar {
  display: flex;
  align-items: center;
  background-color: #c3f1ff;
  padding: 8px;
  z-index: 10;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.logo {
  width: 22px;
  height: 22px;
}
.monitor {
  display: flex;
  flex-direction: row;
  align-items: end;
  justify-content: right;
  padding-left: 10px;
  flex-grow: 1;
  align-items: center;
}
/* #monitorSizeComboBox {
  margin-left: 5px;
  width: 60px;
} */

#monitorSizeComboBox {
  margin-left: 5px;
  width: 60px; /* Adjust width as needed to fit content */
  padding: 3px; /* Same padding as the button */
  border-radius: 10px; /* Same border-radius as the button */
  border: 2px solid #007bff; /* Same border style as the button */
  outline: none; /* Removes the default focus outline */
  font-size: 1em; /* Same font-size as the button */
  color: #333; /* Same text color as the input */
  background-color: white; /* Background color to match the button */
  cursor: pointer; /* Cursor to indicate it's clickable */
  -webkit-appearance: none; /* Removes default style on Webkit browsers */
  -moz-appearance: none; /* Removes default style on Firefox */
  appearance: none; /* Removes default select style */
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23007bff" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>'); /* SVG for the dropdown arrow */
  background-repeat: no-repeat;
  background-position: right 10px center; /* Position for the arrow */
  background-size: 12px; /* Size of the arrow */
}
#monitorSizeComboBox option {
  background-color: white; /* Blue background for options */
  color: black; /* White text color */
  padding: 5px; /* Some padding for each option */
}

/* Style for when an option is hovered over - may not work in all browsers */
#monitorSizeComboBox option:hover {
  background-color: #8dcaff; /* Lighter blue on hover */
}
#monitorSizeComboBox:hover {
  background-color: #cae5fe; /* A little darker on hover, similar to the button */
}

#monitorSizeComboBox:disabled {
  background-color: #b0c4de; /* Disabled state style to match the button */
  color: #f0f0f0;
  cursor: not-allowed;
}

.content {
  display: flex;
  flex: 1;
  background-color: white;
  overflow: hidden;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  position: relative;
}

.info-panel {
  position: absolute;
  top: 0;
  right: -200px; /* Start hidden to the right */
  width: 200px;
  height: 100%;
  background-color: #f1f1f1; /* Example color */
  transition: right 0.5s; /* Smooth transition for the sliding effect */
  z-index: 10; /* Adjust z-index as needed */
  box-shadow: var(--shadow);
}

.info-panel.open {
  right: 0; /* Slide in position */
}

.pull-tab {
  position: absolute;
  left: -20px; /* Pull tab position */
  top: 10%; /* Adjust for vertical centering */
  width: 20px;
  height: 40px;
  background-color: #007bff; /* Example color */
  color: white;
  text-align: center;
  line-height: 40px; /* For vertical centering of content */
  cursor: pointer;
  box-shadow: var(--shadow);
}

.info-panel-items {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  padding: 5px;
}

.info-panel-item {
  flex: 1;
  width: 100%;
  box-sizing: border-box;
  padding: 5px;
}
.info-panel-content h2 {
  margin-top: 0;
  margin-bottom: 0;
}
.zoom-to-fit-btn {
  margin-left: 40px; 
  /* width: 90px; */
}

.share-btn {
  margin-left: 20px; 
}

.itemInfo {
  margin-left: 20px; 
}

.zoom-100-btn {
  margin-left: 20px; 
}

#menu, #stage-menu {
  display: none;
  position: absolute;
  width: 140px;
  background-color: white;
  box-shadow: 0 0 5px grey;
  border-radius: 3px;
  z-index: 10000;
}

#menu button,
#stage-menu button{
  width: 100%;
  background-color: white;
  border: none;
  margin: 0;
  padding: 10px;
  text-align: left;
}

#menu button:hover,
#stage-menu button:hover {
  background-color: #8dcaff;
}

.flat-button {
  background-color: #007bff; /* A nice shade of blue */
  color: white; /* Text color */
  border: none; /* No border for a flat design */
  padding: 3px 10px; /* Top/bottom and left/right padding */
  border-radius: 10px; /* Rounded corners */
  cursor: pointer; /* Change mouse cursor on hover */
  transition: background-color 0.3s; /* Smooth transition for the background color */
  outline: none; /* Remove the outline to maintain the flat look */
}

.flat-button:hover {
  background-color: #33a1ff; /* A lighter blue on hover */
}

.flat-button:disabled {
  background-color: #b0c4de; /* A lighter, desaturated blue for disabled state */
  color: #f0f0f0; /* Light grey text color to show the button is not active */
  cursor: not-allowed; /* Change cursor to indicate the button is disabled */
}

#shareLink {
  width: 300px;
  height: 330px;
  background-color: white;
  border: 1px solid gray; /* Add a thin border */
  margin: 0 auto;
  padding: 5px 10px;
  text-align: left;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none; 
  flex-direction: column;
  border-radius: 10px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  align-items: center; /* This centers children vertically */
}

.close-button {
  cursor: pointer;
  border: none;
  background: none;
  font-size: 1.5rem;
  margin-left: auto;
}

#shareLinkContent {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  align-items: center;
}

#shareLinkImage {
  width: 100%;
  height: 140px;
  object-fit: contain;
  border: 1px solid lightgray;
  border-radius: 4px;
}

#createShareLinkBtn {
  order: 2;
  margin: 10px 0;
}

#shareLinkTextBox {
  order: 3;
  flex-grow: 1;
  margin-bottom: 10px;
  width: 100%;
  resize: none;
  border-radius: 4px;
  border: 1px solid #ccc;
}

#copyShareLinkBtn {
  order: 4;
}

#closeShareLinkBtn {
  margin-top: 10px;
  order: 5;
}
* {
  /* border: 1px solid #FF0000; */
}

/* CSS */
.dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 10001;
    left: 100%; /* Move it to the right side of the dropdown button */
    top: 0; /* Align it with the top of the dropdown button */
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {background-color: #8dcaff}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Added new style for stats section to add vertical spacing */
.spacing-section {
  margin: 20px;
}
