/* Global styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: Arial, sans-serif;
}

/* Top banner */
header {
  background-color: #4CAF50;
  color: white;
  padding: 10px;
  text-align: left;
  font-size: 24px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo {
  font-size: 30px;
  font-weight: bold;
  margin-left: 20px;
  cursor: pointer; /* Add cursor pointer to indicate clickability */
}

header .logo span {
  color: #f39c12; /* A golden color for workbench accent */
}

.hamburger-menu {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  cursor: pointer;
  margin-left: 10px; /* Adjust spacing between hoverover button and hamburger menu */
  position: relative;
}

.hamburger-menu div {
  width: 30px;
  height: 4px;
  background-color: white;
  transition: all 0.3s ease;
}

/* Hoverover button styling */
#hoverover-btn {
  padding: 10px 20px;
  font-size: 18px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  background: #63C28D; /* Light green background to match the submit button */
  color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease, transform 0.3s ease;
}

#hoverover-btn:hover {
  background: #c0e7d1; /* Slightly darker green on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

#hoverover-btn:active {
  background: #FFA000; /* Darker green on active */
  transform: translateY(0);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Submit button styling */
header button {
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  background: #90EE90; /* Light green background */
  color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease, transform 0.3s ease;
}

header button:hover {
  background: #77DD77; /* Slightly darker green on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

header button:active {
  background: #90EE90;
  transform: translateY(0);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Header with ID input box styling */
header .id-input-container {
  display: flex;
  align-items: center;
  margin-right: 20px; /* Adjust spacing as needed */
}

header .id-input-container input {
  padding: 5px;
  font-size: 14px;
  border-radius: 5px;
  border: 1px solid #ccc;
  width: 150px; /* Adjust the width of the input box */
}

header .id-input-container label {
  font-size: 14px;
  margin-right: 5px;
}

/* Dropdown menu styling */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 60px; /* Adjusted to align with the bottom of the  */
  right: 20px;
  background-color: #333;
  color: white;
  width: 200px;
  z-index: 200;
  padding-top: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dropdown-menu a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
  background-color: #575757;
}

/* When dropdown menu is open */
.dropdown-menu.open {
  display: block;
}

/* Sidebar styling */
nav {
  position: fixed;
  top: 60px;
  left: 0;
  width: 200px;
  background-color: #333;
  color: white;
  height: calc(100% - 60px);
  padding-top: 20px;
  transition: transform 0.3s ease;
}

nav.closed {
  transform: translateX(-100%);
}

nav a, nav button {
  display: block;
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  margin: 5px 0;
  transition: background-color 0.3s ease, border 0.3s ease;
  border: 1px solid transparent; /* Add border for buttons */
}

nav a:hover, nav button:hover {
  background-color: #575757;
  border: 1px solid #4CAF50; /* Add border color on hover */
}

nav button {
  background: none;
  border: none;
  cursor: pointer;
}

/* Sidebar toggle button */
.sidebar-toggle {
  position: fixed;
  top: 60px;
  left: 200px;
  width: 40px;
  height: 40px;
  background-color: #4CAF50;
  color: white;
  border-radius: 50%;
  cursor: pointer;
  text-align: center;
  line-height: 40px;
  font-size: 24px;
  transition: left 0.3s ease;
  z-index: 101;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.sidebar-toggle.closed {
  left: 10px;
}

/* Main container */
.container {
  margin-left: 200px;
  margin-top: 70px;
  display: flex;
  height: calc(100vh - 70px);
  flex-direction: row;
  transition: margin-left 0.3s ease;
}


.content-box {
  /* Existing styles */
  position: relative;
}

.resize-handle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #ccc;
  right: 0;
  bottom: 0;
  cursor: se-resize;
}

.content-box {
  resize: both;
  overflow: auto;
  position: relative;
}

nav.closed + .sidebar-toggle + .container {
  margin-left: 0;
}

/* Main canvas area */
.workspace {
  flex-grow: 1;
  display: flex;
  flex-direction: row;
  overflow: hidden; /* To prevent overflow when expanding a section */
}

.content-box-header {
  font-weight: bold;
  margin-bottom: 10px;
  background-color: #e0e0e0; /* Light grey background */
  padding: 10px;
  border-radius: 5px 5px 0 0;
}

.content-box {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  margin: 10px;
  height: calc(100% - 20px);
  resize: none;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.content-box.hidden {
  display: none;
}

.content-box.expanded {
  flex: 1 1 100%;
  margin: 0;
  height: 100%;
  z-index: 100; /* Ensure it stays above other elements */
}

.content-box- {
  font-weight: bold;
  margin-bottom: 10px;
  background-color: #e0e0e0;
  padding: 10px;
  border-radius: 5px 5px 0 0;
}

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

.button-container {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 5px;
}

.button-container button {
  padding: 5px 10px;
  background-color: transparent;
  color: grey;
  border: none;
  cursor: pointer;
  font-size: 18px;
}

.button-container button:hover {
  color: black;
}

.content-box-footer {
  margin-top: auto;
  text-align: center;
  padding: 10px;
}

.resize-handle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #ccc;
  right: 0;
  bottom: 0;
  cursor: se-resize;
}

.content-box-footer button {
  padding: 10px 20px;
  background-color: #4CAF50;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.content-box-footer button:hover {
  background-color: #45a049;
}

@media (max-width: 768px) {
  nav {
    transform: translateX(-100%);
  }

  nav.closed {
    transform: translateX(-100%);
  }

  .container {
    margin-left: 0;
  }

  .sidebar-toggle {
    left: 10px;
  }

  .sidebar-toggle.closed {
    left: 10px;
  }
}
/* Submit button styling */
header button {
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  background: #63C28D; /* Light yellow background */
  color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease, transform 0.3s ease;
}

header button:hover {
  background:  #c0e7d1; /* Slightly darker yellow on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

header button:active {
  background: #FFA000; /* Darker yellow on active */
  transform: translateY(0);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Hoverover button styling */
#hoverover-btn {
  padding: 10px 20px;
  font-size: 18px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  background: linear-gradient(135deg, #f2b40a, #f7d36f); /* Light orange background */
  color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease, transform 0.3s ease;
}

#hoverover-btn:hover {
  background: linear-gradient(135deg, #FF9F50, #FF7040); /* Slightly darker orange on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

#hoverover-btn:active {
  background: linear-gradient(135deg, #FF8C47, #FF7040); /* Slightly darker orange on active */
  transform: translateY(-4px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}
