* {	
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "Poppins", sans-serif;
	font-size: 16px; 
}

.blue{
  color: var(--blue-color);
}
.green{
  color: var(--green-color);
}
.red{
  color: var(--red-color);
}

body {
  background-color: var(--light-color);
  transition: all 0.5s ease;
}
a, a:visited{
	text-decoration: none;
	color: var(--link-color);
}
a:hover{
	color: var(--hover-color);
}


/*----------------------------
Navbar
----------------------------*/
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: var(--light-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px;
  box-shadow: 0 0 5px var(--shadow-color);
  z-index: 1000;
}
.logo_item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  color: var(--dark-color);
}
.navbar img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}

/*----------------------------
Sidebar
----------------------------*/
.sidebar {
  background-color: var(--light-color);
  width: 300px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  padding: 80px 20px;
  z-index: 100;
  overflow-y: auto;
  box-shadow: 0 0 1px var(--shadow-color);
  transition: all 0.5s ease;
}
.menu_title {
  margin: 15px 0;
  padding: 0 20px;
  font-size: 18px;
}
.sidebar.close .itemName {
  display: none;
}
.menu_title::before {
  color: var(--grey-color);
  white-space: nowrap;
}
.menu_dahsboard::before {
  content: "Bygga, bo och miljö";
}
.menu_editor::before {
  content: "Information";
}
.menu_setting::before {
  content: "Verktyg";
}
.nav_link:hover {
  background-color: var(--blue-color);
}
.mdi-32px { font-size: 32px; }
.nav_link:hover .navlink_icon,
.nav_link:hover i,
.nav_link:hover .itemName{
  color: var(--light-color);

}
.navlink_icon {
  position: relative;
  font-size: 22px;
  min-width: 50px;
  line-height: 40px;
  display: inline-block;
  text-align: center;
  border-radius: 6px;
}
.navlink_icon::before {
  content: "";
  position: absolute;
  height: 100%;
  width: calc(100% + 100px);
  left: -20px;
}
.navlink_icon:hover {
  background: var(--blue-color);
}


/*----------------------------
Timeline
----------------------------*/
.toolbarContainer {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width:380px;
  padding: 25px;
  border: none;
  border-radius: 10px;
  background-color: var(--dark-color);
  color: var(--light-color);
  box-shadow: 0 2px 4px var(--shadow-color);
  z-index: 1000; 
  opacity: 0;
}

.toolbarContainer div {
  text-align: center;
}
.toolbarContainer input[type="range"] {
  width: 100%;
}
.toolbarHeader {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Ensures space between the elements */
  border-bottom: 1px solid var(--grey-color);
  color: var(--light-color);
  margin-bottom: 15px;
}
.toolbarContent {
  font-size: 14px;
  align-items: center;
  color: var(--light-color);
}


/*----------------------------
Infoviewer 
----------------------------*/
.infoviewer {	
	display: none; /* Initially hidden */
  position: fixed;
  top: 80px;
  right: 0;
  /*left: 50%; */
  width: 25%;
  min-width: 350px;
  max-height: 80vh;
  border: none;
  border-radius: 25px;
  overflow-y: auto;
  /*transform: translate(-50%, -50%); */
  background-color: var(--dark-color);
	box-shadow: 0 2px 4px var(--shadow-color);
  z-index: 1;
}
.infoviewer-header {
  padding: 5px 0 5px 20px;
  font-size: 18px;
	color: var(--light-color);
  display: flex;
  justify-content: space-between; /* Space out the title and button */
  align-items: center; /* Vertically center-align items */
}
.infoviewer-content {
	width: 100%;
	padding: 0px 20px;
  color: var(--light-color);
}
.infoviewer-image,
.infoviewer-video,
.infoviewer-link,
.infoviewer-youtube{
	padding-bottom: 10px;
}
.infoviewer-image,
.infoviewer-video {
  max-width: 100%;
  margin: 0 auto;
}
.infoviewer-text {
  margin-bottom: 15px;    
  line-height: 1.5;
}
.infoviewer-link {
  display: inline-flex;
  align-items: center;
  color: var(--light-color);
}
.infoviewer-link i {
  margin-right: 5px;
}
.infoviewer-youtube {
  width: 100%;
  height: 315px;
  border: none;
}
/*----------------------------
Close Button 
----------------------------*/
.close-btn {
	width: 48px;
  height: 48px;
  display: flex;
  justify-content: right;
  align-items: center;
  cursor: pointer;
}
.close-btn i {
	font-size: 24px;
}
.chevron-btn {
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  line-height: 48px; /* Add this line */
  float: right; /* Add this line */
}

/*----------------------------
Toolbar
----------------------------*/
.toolbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.toolbar-btn {
  width: 42px;
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background-color: #007bbe;
  color: var(--light-color);
  margin-right: 5px;
  border-radius: 8px;
  transition: transform 0.3s;
}
.toolbar-btn i {
	font-size: 18px;
  transition: transform 0.3s;
}
.toolbar-btn:hover i, 
.toolbar-btn:focus i, 
.toolbar-btn:active i {
  transform: scale(1.2);
}

.height-input-container {
  margin-top: 20px;
  display: flex; /* Enables flexbox layout */
  flex-direction: row; /* Layout children in a row */
  align-items: center; /* Align children vertically in the center */
  width: 100%; /* Container takes up full width */
}

.height-label {
  white-space: nowrap; /* Prevent the label from wrapping */
  margin-right: 15px; /* Spacing between label and input field */
  /* You might need to adjust the width or padding depending on your design */
}

.form-control {
  flex-grow: 1;
  padding: 10px; 
  border: 1px solid #ccc; 
  border-radius: 5px; 
  margin: 10px 0; 
  font-size: 1rem;
  background-color: var(--light-color);
  color:  var(--dark-color);
}

.form-control::placeholder {
  color: var(--grey-color);
}

.form-control:focus {
  border-color: var(--blue-color);
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Style adjustments for a disabled input */
.form-control:disabled {
  background-color: #e9ecef; /* Light grey background for disabled input */
  color: #6c757d; /* Dark grey text for disabled input */
}

.color-selection-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around; /* Evenly distributes space around items */
  gap: 5px; /* Adjust the space between buttons as needed */
  margin-top: 20px; /* Space between this container and the one above it */
}

.color-button {
  width: 25px; /* Fixed width for color buttons */
  height: 25px; /* Fixed height for color buttons */
  border-radius: 50%; /* Makes the button circular */
  border: none; /* Removes the border */
  cursor: pointer; /* Changes the cursor on hover */
  margin: 2px; /* Margin around buttons to ensure they don't touch */
  flex: 0 0 auto; /* Prevents flex items from growing or shrinking */
}

.mane-main-checkbox {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: none;
  cursor: pointer;
  height: 20px;
  width: 20px;
  margin-left: auto; /* Pushes the checkbox to the far right */
  margin-right: 15px; /* Pushes the checkbox to the far right */
  display: block;
}
.mane-main-checkbox:before {
  content: '\f070';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  color: var(--grey-color);
}
.mane-main-checkbox:checked::before {
  content: '\f06e';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  color: var(--grey-color-light);
}

.mane-option-checkbox {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: none;
  cursor: pointer;
  height: 20px;
  width: 20px;
  margin-left: auto; /* Pushes the checkbox to the far right */
  margin-right: 15px; /* Pushes the checkbox to the far right */
  display: block;
}

.mane-option-checkbox:before {
  content: '\f070';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  color: var(--grey-color);
}
.mane-option-checkbox:checked::before {
  content: '\f06e';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  color: var(--grey-color-light);
}


.flex-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.itemName-wrapper {
  flex: 1; /* this will make the div grow to occupy all available space */
  margin-right: 100px; /* ensures that this div takes up all space minus 100px */
}

.checkbox-wrapper {
  flex: 0 0 48px; /* this will make the div stay at 50px and not grow or shrink */
}

.arrow {
  flex: 0 0 48px;
  margin-left: auto;
}

.spacer {
  border-top: 1px solid rgba(255,255,255, .2)
}

.spacer:hover{
  border: none;
  border-top: 1px solid rgba(255,255,255, .4);
}



.itemName{
  display: flex; /* This makes sure your anchor is a flex container */
  align-items: center; /* Align items vertically */
  flex-grow: 1; /* Anchor takes all available horizontal space */
  text-decoration: none; /* Optional: Removes the underline from links */
  color: inherit; /* Optional: Inherits the text color */
  white-space: nowrap; /* Prevents wrapping of the content */
}

.mane-options{
  display: flex; 
  padding-left: 40px !important;
  padding-top: 0px !important;
  padding-bottom: 0px !important;
}

.mane-options li {
  border-left: 1px solid rgba(255,255,255, .2);
  display: flex;           /* Enables flexible box layout */
  padding-left: 10px !important;
  width: 100%;
  height: 40px !important;
  align-items: center;     /* Aligns items vertically in the center */
  line-height: 1.3;
  text-align: left;         /* Ensures content is aligned to the left */
}
.mane-options li span{
  font-size: 14px;
  line-height: 1.3;
  text-align: left;         /* Ensures content is aligned to the left */
}
.mane-options li img {
  display: flex;           /* Enables flexible box layout */
  height: 22px;
  width:22px;
  margin-right:10px;
}


/*----------------------------
TOOLBOX
----------------------------*/



















/* Dropdown menu */
.dropdown {
  position: absolute;
  bottom: 10px;
  right: 10px;
}

.dropdown-button {
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 0;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  transition: background-color 0.3s, box-shadow 0.3s;
  width: 80px; /* Adjust width as needed */
  height: 80px; /* Adjust height as needed */
  position: relative;
  overflow: hidden;
  transition: opacity 180ms ease;
  z-index: 1; /* Initially set the button above other elements */
}

.dropdown.is-open .dropdown-button {
  opacity: 0;            /* knappen är dold medan menyn är öppen */
  pointer-events: none;  /* ej klickbar */
}

/* Under stängning vill vi fasa in knappen direkt */
.dropdown.is-closing .dropdown-button {
  opacity: 1;            /* fadas in medan menyn fadar ut */
  pointer-events: none;  /* aktiveras först när stängningen är klar */
}

.dropdown-button img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.dropdown-button span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 2px 5px;
  border-radius: 0 0 8px 8px;
  font-size: 12px;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.dropdown-button:hover {
  background-color: var(--grey-color);
  box-shadow: 0 4px 8px var(--shadow-color);
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--dark-color);
  width: 300px;
  box-shadow: 0px 8px 16px 0px var(--shadow-color);
  z-index: 2;
  bottom: 0;
  right: 0;
  border-radius: 8px;
  padding: 25px;
  color:var(--light-color);
}

.close-dropdown {
  background: none;
  border: none;
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
  color: var(--light-color);
}

.dropdown-header {
  font-size: 14px;
  letter-spacing: 1px;
  font-weight: bold;
  margin-bottom: 10px;
  color:var(--light-color);
}

.dropdown-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Center items in each row */
  gap: 10px;
  margin-bottom: 15px; /* Add spacing between sections */
}

.dropdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  cursor: pointer;
  border-radius: 12px; /* Rounded corners for the items */
  transition: background-color 0.3s;
  position: relative;
  width: 70px; /* Set fixed width */
  flex: 1 1 30%; /* Allow items to grow and shrink, taking up 30% of the container */
  max-width: 80px; /* Ensure items do not exceed a maximum width */
}

.dropdown-item img {
  width: 48px; /* Larger icons */
  height: 48px; /* Larger icons */
  border-radius: 12px; /* More rounded corners for the icons */
  object-fit: cover;
  margin-bottom: 5px; /* Space between icon and text */
}

.dropdown-item span {
  font-size: 12px;
  color:var(--light-color);
  text-align: center;
}

.dropdown-item:hover {
  background-color: var(--grey-color);
}

.dropdown-content.show {
  display: block;
}

.dropdown-separator {
  width: 100%;
  height: 1px;
  background-color: var(--grey-color);
  margin: 20px 0;
}

.modern-delete-button {
  display: inline-block;
  padding: 10px 20px;
  margin: 10px 10px;  /* Add margins */
  font-size: 16px;
  font-weight: bold;
  color: #ffffff;
  background-color: #ff4d4d;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.modern-delete-button:hover {
  background-color: #ff1a1a;
  transform: scale(1.05);
}

.modern-delete-button:active {
  background-color: #cc0000;
  transform: scale(0.95);
}

.animate__fastest {
  --animate-duration: 0.3s;
}


/* Sliders */
input[type="range"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  background: linear-gradient(to right, var(--blue-color) 0%, var(--blue-color) calc((var(--value) - var(--min)) / (var(--max) - var(--min)) * 100%), var(--grey-color) calc((var(--value) - var(--min)) / (var(--max) - var(--min)) * 100%)); /* Gradient background */
  outline: none;
  border-radius: 8px;
  overflow: visible;
  cursor: pointer;
  position: relative;
  margin-bottom: 15px;
}

input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 10px;
  background: transparent;
  border-radius: 8px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px; 
  height: 20px; 
  margin-top: -5px;
  border-radius: 50%;
  background-color: var(--light-color);
  border: none;
  box-shadow: 0 2px 4px var(--shadow-color);
  transition: transform 0.2s, background-color 0.2s; 
  position: relative;
  z-index: 1;
}

input[type="range"]:hover::-webkit-slider-thumb {
  transform: scale(1.2);
  background-color: var(--hover-color);
}


.infoContainer {
  padding: 15px;
  background-color: #1e1e1e;
  color: var(--light-color);
  text-align: center;
  margin-bottom: 15px;
  border-radius: 8px;
}

.infoText ul {
  text-align: left;
  margin: 0;
  padding-left: 50px;
}

.infoText li {
  font-size: 14px;
  margin-bottom: 5px; /* Ger lite mellanrum mellan listobjekten */
}






































/*----------------------------
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
END
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
----------------------------*/


.search_bar {
  height: 47px;
  max-width: 430px;
  width: 100%;
}
.search_bar input {
  height: 100%;
  width: 100%;
  border-radius: 25px;
  font-size: 18px;
  outline: none;
  background-color: var(--light-color);
  color: var(--grey-color);
  border: 1px solid var(--grey-color-light);
  padding: 0 20px;
}
.navbar_content {
  display: flex;
  align-items: center;
  column-gap: 25px;
}
.navbar_content i {
  cursor: pointer;
  font-size: 20px;
  color: var(--grey-color);
}

.sidebar.close {
  padding: 60px 0;
  width: 80px;
}
.sidebar::-webkit-scrollbar {
  display: none;
}
.menu_content {
  position: relative;
}

.sidebar.close .menu_title {
  padding: 6px 30px;
}

.sidebar.close .menu_title::before {
  content: "";
  position: absolute;
  height: 2px;
  width: 18px;
  border-radius: 12px;
  background: var(--grey-color-light);
}
.menu_items {
  padding: 0;
  list-style: none;
}

.sidebar .nav_link {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 4px 15px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--grey-color);
  white-space: nowrap;
}


.sidebar.close .nav_link:hover {
  background: var(--light-color);
}
.submenu_item {
  cursor: pointer;
}
.submenu {
  display: none;
}
.submenu_item .arrow-left {
  position: absolute;
  right: 10px;
  display: inline-block;
  margin-right: auto;
}
.sidebar.close .submenu {
  display: none;
}
.show_submenu ~ .submenu {
  display: block;
}
.show_submenu .arrow-left {
  transform: rotate(90deg);
}
.submenu .sublink {
  padding: 15px 15px 15px 52px;
}
.bottom_content {
  position: fixed;
  bottom: 60px;
  left: 0;
  width: 260px;
  cursor: pointer;
  transition: all 0.5s ease;
}
.bottom {
  position: absolute;
  display: flex;
  align-items: center;
  left: 0;
  justify-content: space-around;
  padding: 18px 0;
  text-align: center;
  width: 100%;
  color: var(--grey-color);
  border-top: 1px solid var(--grey-color-light);
  background-color: var(--light-color);
}
.bottom i {
  font-size: 20px;
}
.bottom span {
  font-size: 18px;
}
.sidebar.close .bottom_content {
  width: 50px;
  left: 15px;
}
.sidebar.close .bottom span {
  display: none;
}
.sidebar.hoverable .collapse_sidebar {
  display: none;
}
.mane-option-icon{
  width:20px;
  height:20px;
}
#sidebarOpen {
  display: none;
}
@media screen and (max-width: 768px) {
  #sidebarOpen {
    font-size: 25px;
    display: block;
    margin-right: 10px;
    cursor: pointer;
    color: var(--grey-color);
  }
  .sidebar.close {
    left: -100%;
  }
  .search_bar {
    display: none;
  }
  .sidebar.close .bottom_content {
    left: -100%;
  }
}
