/* Define CSS variables for consistent styling */
:root {
  --header-bg-color: #9f9f9f;
  --footer-bg-color: #9f9f9f;
  --main-bg-color: #f5f5f5;
  --text-color: #ffffff;
  --gray-botton: #a1a1a1;
  --orange-botton: #f18e3e;
}

/* Reset margins and paddings */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Ensure body and html take full height */
html, body {
  height: 100%;
  font-family: Arial, sans-serif;
  /*overflow-x: hidden;*/
}

/* Make the body scrollable while keeping header and footer fixed */
body {
  background-color: var(--main-bg-color);
  color: #333;
  margin: 0;
  margin-top: 100px; /* Same height as the header */
}

/* Fixed Header */
header {
  position: fixed; /* Stay at the top of the screen */
  top: 10px; /* Align at the very top */
  left: 0;
  width: 100%; /* Full width */
  height: 60px; /* Fixed height */
  background-color: var(--header-bg-color);
  color: var(--text-color);
  text-align: center;
  line-height: 60px; /* Vertically center text */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Optional shadow */
  z-index: 1000; /* Stay above other elements */
}

/* Fixed Footer */
footer {
  position: fixed; /* Stay at the bottom of the screen */
  bottom: 0; /* Align at the very bottom */
  left: 0;
  width: 100%; /* Full width */
  height: 40px; /* Fixed height */
  background-color: #dedede;
  color: #333;
  text-align: center;
  line-height: 40px; /* Vertically center text */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Optional shadow */
  z-index: 1000; /* Stay above other elements */
}

/* Fixed Header */
.navbar-fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #ffffff; /* Set background color to avoid transparency issues */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Optional shadow for better visibility */
  height: 100px; /* Adjust height as needed */
}

/* Main content */
main {
  margin-top: 60px; /* Avoid overlapping with the fixed header */
  margin-bottom: 40px; /* Avoid overlapping with the fixed footer */
  padding: 20px;
  overflow: auto; /* Allow scrolling if content overflows */
}
/* Style for navigation menu */
.nav {
  list-style: none;
  padding: 0;
  margin: 0;
  position: fixed; /* Fixed position ensures it stays in the corner */
  top: 0; /* Align to the top */
  left: 0; /* Align to the left */
  z-index: 1000; /* Ensure it stays above other elements */
  padding: 10px;
  border-radius: 0 0 5px 5px; /* Optional: Rounded bottom edges */
}
/* Dropdown container */
.nav .dropdown {
  position: relative;
}
/* Dropdown toggle link */
.nav .dropdown-toggle {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  padding: 10px 15px;
  color: #333;
  cursor: pointer;
}
/* Dropdown toggle hover effect */
.nav .dropdown-toggle:hover {
  background-color: #f1f1f1;
  color: #000;
  border-radius: 4px;
}
/* Dropdown menu container */
.nav .dropdown-menu {
  position: absolute;
  text-align: left;
  top: 100%; /* Aligns below the toggle */
  left: 0;
  min-width: 200px;
  background-color: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: none; /* Hidden by default */
  z-index: 1000;
  padding: 10px 0;
  border-radius: 4px;
}
/* Show dropdown on hover */
.nav .dropdown:hover .dropdown-menu {
  display: block;
}
/* Dropdown menu items */
.nav .dropdown-menu li {
  list-style: none;
}
/* Dropdown menu links */
.nav .dropdown-menu li a {
  display: block;
  text-decoration: none;
  color: #333;
  padding: 10px 15px;
  font-size: 14px;
}
/* Dropdown menu link hover */
.nav .dropdown-menu li a:hover {
  background-color: #f1f1f1;
  color: #000;
}
/* Base styles for the <a> tag */
a.custom-link {
  display: inline-block;
  text-decoration: none;
  background-color: var(--gray-botton);  /* Green background */
  color: white;  /* White text */
  padding: 4px 4px;  /* Padding inside the button */
  border-radius: 2px;  /* Rounded corners */
  font-size: 12px;  /* Font size */
  font-weight: bold;  /* Make the text bold */
  text-align: center;  /* Center the text inside */
  transition: all 0.3s ease;  /* Smooth transition for effects */
}
/* Hover effect */
a.custom-link:hover {
  background-color: var(--gray-botton);  /* Darker green when hovered */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);  /* Add shadow on hover */
}
/* Focus effect (for accessibility) */
a.custom-link:focus {
  outline: none;
}
/* Base styles for the <a> tag */
a.custom-link-danger {
  display: inline-block;
  text-decoration: none;
  background-color: var(--orange-botton);  /* Green background */
  color: white;  /* White text */
  padding: 4px 4px;  /* Padding inside the button */
  border-radius: 2px;  /* Rounded corners */
  font-size: 12px;  /* Font size */
  font-weight: bold;  /* Make the text bold */
  text-align: center;  /* Center the text inside */
  transition: all 0.3s ease;  /* Smooth transition for effects */
}

/* Hover effect */
a.custom-link-danger:hover {
  background-color: var(--gray-botton);  /* Darker green when hovered */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);  /* Add shadow on hover */
}

/* Focus effect (for accessibility) */
a.custom-link-danger:focus {
  outline: none;
}

.container {
  display: flex;
  /*min-height: 100vh;*/
  /*flex-direction: row;*/ /* Ensures sidebar and content are laid out horizontally */
  /*overflow: hidden; */
}

#product-search {
  position: relative;
  z-index: 10;  /* Ensure it's above other elements */
}
/* Left Sidebar for Products and Other Items */
.left-sidebar {
  width: 250px; /* Fixed width for the sidebar */
  background-color: #ffffff;
  color: rgb(52, 52, 52);
  padding: 15px;
  position: fixed;
  z-index:100;
  flex-shrink: 0; /* Prevents sidebar from shrinking */
}

/* Main Content Area */
.main-content {
  position:absolute;
  left: 250px;
  /*flex-grow: 1; *//* Makes sure the main content takes the remaining space */
  /*position: relative;*/
  /*overflow-y: auto;  Allows scrolling if content exceeds height */
}

/* Top Toolbar with Actions */
.top-toolbar {
  /*z-index:100;*/
  /*position:absolute;*/
  /*display: flex;*/
  /*justify-content: space-evenly;*/
  /*align-items: center;*/
  /*background-color: #ddd;*/
  /*overflow-x: hidden;*/
}

.top-toolbar button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  position: relative; /* Required for ::after positioning */
}
.active-tool {
  background-color: #656122; /* Change to your desired color */
  color: white;
  border: 2px solid #656122;
}
/* Add an overlay for active buttons */
.active-tool::after {
  content: ''; /* Display the pseudo-element */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(61, 61, 61, 0.4); /* White overlay with 30% opacity */
  pointer-events: none; /* Ensure the overlay does not block interactions */
  z-index: 1; /* Ensure it appears above the button content */
}

.top-toolbar button img {
  width: 20px;
  height: 20px;
}
/* Here starts the work space*/
.workspace-wrapper {
  /*position: relative;*/
  /*width: 100%;  Full width of the viewport */
  /*height: 100%;  Full height of the viewport */
  /* overflow-x: auto;  Always show scrollbars */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling for iOS */
  /*top: 30px;*/
  /*right: 0;*/
  /*bottom: 0;*/
  /*overflow: scroll;*/ /* Allows scrolling horizontally and vertically */
  /*display: flex;*/
}
::-webkit-scrollbar {
  width: 10px; /* Width of vertical scrollbar */
  height: 20px; /* Height of horizontal scrollbar */
}

::-webkit-scrollbar-thumb {
  background-color: #c0c0c0; /* Color of the scrollbar thumb */
  border-radius: 5px; /* Rounded edges */
}

::-webkit-scrollbar-track {
  background: #f0f0f0; /* Color of the scrollbar track */
}
.desktop {
  /*direction: ltr;*/
  /* position: relative;*/
  width: 15000px;
  height: 15000px;
  transform-origin: top left; /* Ensures scaling starts from the top-left corner */
  transition: transform 0.2s ease; /* Smooth zooming effect */
}
.background {
  position: absolute;
  /*width: 100%;*/
  /*height: 100%;*/
  z-index: 1;
  /*background-size: auto;  Set to auto to avoid scaling */
  background-repeat: no-repeat;
  background-position: left top;
  width:inherit;
}
#background {
  position: absolute;
  z-index: 1;  /* This ensures the background stays beneath the products */
  width: 100%;
  height: 100%; /* Set a height for testing */
}
.grid {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none; /* Prevent interactions */
}
.grid-line {
  position: absolute;
  background-color: #bebebe;
  z-index: 2;
}
.grid-label {
  position: absolute;
  font-size: 10px;
  color: #dedede;
  z-index: 3;
  background: #2c2c2c;
  padding: 2px;
  border-radius: 3px;
}
.hidden {
  display: none;
}
#general {
  position: relative;  /* This makes sure it's on top of the background */
  z-index: 10;
  width: 100%;
  height: 100%;         
}
.product-item {
  list-style: none;
  margin: auto;
  text-align: left;
  border: 1px solid rgb(220, 220, 220);
}
.product.selected {
  outline: 2px dashed #007BFF; /* Highlight selected items */
}
.fields{
  display: flex;
  line-height: 30px;
  align-items: center;
  position: relative;
  max-width: 200px;
}

/* From Uiverse.io by alexruix */ 
.input {
  max-width: 190px;
  color: #242424;
  padding: .15rem .5rem;
  min-height: 40px;
  border-radius: 4px;
  outline: none;
  border: none;
  line-height: 1.15;
  box-shadow: 0px 10px 20px -18px;
}

input:focus {
  border-bottom: 2px solid #736736;
  border-radius: 4px 4px 2px 2px;
}

input:hover {
  outline: 1px solid lightgrey;
}
/* From Uiverse.io by alexmaracinaru */ 
.cta {
  border: none;
  background: none;
  cursor: pointer;
}

.cta span {
  padding-bottom: 7px;
  letter-spacing: 4px;
  font-size: 14px;
  padding-right: 15px;
  text-transform: uppercase;
}

.cta svg {
  transform: translateX(-8px);
  transition: all 0.3s ease;
}

.cta:hover svg {
  transform: translateX(0);
}

.cta:active svg {
  transform: scale(0.9);
}

.hover-underline-animation {
  position: relative;
  color: black;
  padding-bottom: 20px;
}

.hover-underline-animation:after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #000000;
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.cta:hover .hover-underline-animation:after {
  transform: scaleX(1);
  transform-origin: bottom left;
}
a:link {
  text-decoration: none;
}
.active-tool {
  background-color: #656122; /* Change to your desired color */
  color: white;
  border: 4px solid #656122;
}