:root {
  --primary-color: #7b4b94; /* A futuristic purple */
  --accent-color: #c299fc; /* A light purple for accents */
  --background-gradient-start: #1e1e38; /* Dark blue start for the background gradient */
  --background-gradient-end: #34224a; /* Dark purple end for the background gradient */
  --form-background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for the glass effect */
  --border-color: rgba(255, 255, 255, 0.2); /* Light border color for elements */
  --box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Shadow for depth */
}
footer {
  text-align: center;
  padding: 20px;
  background-color: #f0f0f0;
  color: #333;
  font-size: 0.8em;
}

#jsonTextArea
{
  height: 5%;
  width: 20%; 
}
#json-container {
  height: 70%;
}
#execution-container .final-node {
  position: absolute;
  right: 0; /* Align to the right side of the container */
  top: 10%; /* Align to the top of the container */
}
#execution-container {
  height: 500px;
  display: flex;
  flex-direction: row-reverse; /* Reverse the order to put the final node on the left */
  justify-content: space-between; /* Space out the contents */
  /* ... other styles ... */
}
.final-node {
  /* Add styles to make it clear it's the final node */
  background-color: var(--accent-color); /* Example: use the accent color */
  color: white;
  padding: 10px;
  border-radius: 8px;
  margin-left: 10px; /* Adjust as needed */
  /* ... other styles ... */
}
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Adjust the minmax values as needed */
  grid-gap: 15px; /* Reduce gap for a more compact layout */
  justify-items: center; /* Center items horizontally */
  align-items: start; /* Align items to the start vertically */
}
#predefined-AI-list, 
#predefined-api-list, 
#static-process-box-list,
#created-api-list,
#my-api-list
{
  display: grid;
  grid-template-columns: repeat(8, 1fr); /* Scale down each column to one third */
  grid-gap: 5px; /* Adjust the gap between the items as needed */
  padding: 10px; /* Adjust the padding inside the grid as needed */
  font-size: smaller; /* Optionally adjust the font size if needed */
}

.grid-item {
  /* Styles for your grid items */
  background: var(--box-background); /* Example background color */
  border: 1px solid var(--border-color); /* Example border */
  padding: 10px; /* Example padding */
  border-radius: 4px; /* Example border radius */
  /* Add any other styles you need for your grid items */
}

.api-box-menu { 
  overflow: visible;
  height: auto; /* Height adjusts based on content */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Content starts at the top */
  align-items: center; /* Center content horizontally */
  padding: 10px;
  margin-bottom: 10px; /* Add space between rows of boxes */
  background-color: var(--form-background);
  border: 1px solid var(--border-color);
  box-shadow: var(--box-shadow);
  border-radius: 8px;
  overflow: hidden; /* Hide overflow to keep the UI clean */
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Distribute space vertically */
  align-items: center; /* Center items horizontally */
  padding: 10px;
  background-color: var(--form-background); /* Match the sidebar background */
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}
@media (max-width: 768px) {




  h2 {
    font-size: 1.2rem; /* Adjust the title font size for smaller screens */
  }

  .api-box-menu-icon {
    width: 50px; /* Resize icons on small screens */
  }
}
#toggle-sidebar {
  cursor: pointer;
  background: #4CAF50; /* Example background color */
  color: white; /* Text color */
  padding: 5px 10px;
  font-size: 1.2em;
  border-radius: 3px;
}
#toggle-sidebar:hover {
  background-color: #3e8e41; /* Darker shade for hover effect */
}



.toggle-section {
  cursor: pointer;
  background: #4CAF50; /* Button background color */
  color: white; /* Button text color */
  border: none;
  padding: 5px 10px;
  border-radius: 3px;
  margin-left: 10px;
}

.toggle-section:hover {
  background: #3e8e41; /* Darker shade for hover */
}

button {
  background-color: #00aaff; /* Bright blue */
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
#api-sidebar {
  background-color: #111; /* Dark background for sidebar */
  color: white;
  padding: 20px;
}




#main-content {
  
  padding: 20px;
  background-color: transparent;
}



button:hover {
  background-color: #0088cc; /* Slightly darker blue on hover */
}

/* Global resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

body, html {
  background: linear-gradient(to bottom right, var(--background-gradient-start), var(--background-gradient-end));
  color: rgb(250, 250, 250);
  overflow: auto; /* Allow scrolling */
}


/* Sidebar Styles */
#api-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 250px; /* Width of the sidebar */
  background: var(--form-background);
  border-right: 3px solid var(--accent-color);
  box-shadow: var(--box-shadow);
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
}





/* Ensure icons are a suitable size */
.api-box-menu-icon {
  width: 60px; /* Resize icons */
  height: auto;
  margin-bottom: 5px; /* Space between the icon and the text below */
}

/* Text within the api-box for better readability */
.api-box-menu-text {
  font-size: 0.9rem; /* Adjust the font size as needed */
  text-align: center;
  color: white;
  margin: 5px 0;
}

/* Tags and Info button positioned appropriately */
.api-box-menu .tags-container,
.api-box-menu .info-button {
  position: absolute;
  bottom: 5px; /* Positioned at the bottom of the box */
  left: 5px;
}

/* Info button specifically */
.api-box-menu.info-button {
  right: 5px; /* Positioned to the right */
  left: auto;
}

/* Hover effect for the api-box to indicate interactivity */
.api-box-menu:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.45);
}

/* Text areas within the api-box are appropriately sized */
.api-box-menu textarea {
  width: 90%; /* Relative to the parent's width */
  max-height: 40px; /* Fixed max height to keep it contained */
  margin: 0 auto; /* Center it within the box */
  font-size: 0.8rem; /* Smaller font size for space */
}

/* Section Titles for better visibility */
h2 {
  font-size: 1.5rem; /* Increase font size for better visibility */
  text-align: center; /* Center align the titles */
  margin: 20px 0; /* Add more space around titles */
}

/* Responsive adjustments for better UX on smaller screens */


/* Container styles */
#execution-container,
#api-flow-container {
  border-top: 3px solid var(--accent-color);
  margin-top: 20px;
  padding-top: 10px;
}

/* Button styles for actions like simulate and save */
button {
  font-size: 0.9rem;
  margin: 10px;
  padding: 5px 15px;
}

/* Input search bar styling */
#api-search {
  width: 95%;
  margin: 10px 2.5%;
  padding: 10px;
  border-radius: 5px;
}
/* Existing styles remain unchanged */

/* Sidebar/Bottom Bar Styles */







