:root {
    --top-menu-height: 60px;
    --tblr-border-width: 1px;
	--tblr-border-style: solid;
	--tblr-border-color: #e6e7e900;
	--tblr-muted: #6168768c;
}

.btn:focus, 
.btn:active {
    outline: none;
    box-shadow: none; /* Removes the Bootstrap focus shadow */
}

.map-container {
    display: flex;
}

.top-menu {
    height: var(--top-menu-height);
    width: 100%;
    background-color: white;
    border-bottom: 1px solid #D3D3D3;
    padding-top: 10px;
    padding-bottom: 10px;
}

#map {
    flex: 1;
    height: calc(100vh - var(--top-menu-height));
    width: 100%;
    background: none; /* remove default background */
}

#rightSidebar {
    height: calc(100vh - var(--top-menu-height));
    width: 40vw;
    border-left: 1px solid #D3D3D3;
}

.styling-button {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.design-container {
    display: flex;
}

.design-selector {
    width: 20vw;
    height: 40px;
    margin-left: 5px;
}

.btn-selected {
    background-color: rgba(128, 128, 128, 0.5)!important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2)!important;
}

.btn-selected:hover {
    background-color: rgba(128, 128, 128, 0.7)!important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2)!important;
}

.btn-top-bar {
	border: 1px solid #ced4da;
	border-radius: 0.35rem;
    width: fit-content;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-top-bar:hover {
    background-color: #d3d3d394;
    border: 1px solid #d3d3d37e;
}

.btn-top-bar-img {
    width: 30px;
    height: 30px;
}

.view-symbol {
    width: 25px;
    height: 25px;
    float: left;
}

.big-btn-img{
    width: 40px;
    height: 40px;
    float: left;
}

.modern-input .form-control {
    border-radius: 10px; /* Rounded corners */
    padding: 15px 20px;  /* Extra padding for a clean look */
    border: 1px solid #ced4da;
    box-shadow: none;    /* Remove default shadow */
    transition: all 0.3s ease; /* Smooth transition */
}
  
.modern-input .form-control:focus {
    border-color: #6c63ff; /* Focus border color */
    box-shadow: 0 0 5px rgba(108, 99, 255, 0.5); /* Soft shadow on focus */
}
  
.modern-input label {
    color: #6c757d; /* Label color */
    font-weight: 500; /* Slightly bolder */
}
  
.modern-input .form-control::placeholder {
    opacity: 0; /* Hide placeholder text */
    transition: opacity 0.3s ease; /* Smooth transition when typing */
}
  
.modern-input .form-control:focus::placeholder {
    opacity: 1; /* Show placeholder text on focus */
}

.modern-textarea .form-control {
    border-radius: 10px; /* Rounded corners */
    padding: 15px 20px;  /* Extra padding for a clean look */
    border: 1px solid #ced4da;
    box-shadow: none;    /* Remove default shadow */
    transition: all 0.3s ease; /* Smooth transition */
}
  
.modern-textarea .form-control:focus {
    border-color: #6c63ff; /* Focus border color */
    box-shadow: 0 0 5px rgba(108, 99, 255, 0.5); /* Soft shadow on focus */
}
  
.modern-textarea label {
    color: #6c757d; /* Label color */
    font-weight: 500; /* Slightly bolder */
}
  
.modern-textarea .form-control::placeholder {
    opacity: 0; /* Hide placeholder text */
    transition: opacity 0.3s ease; /* Smooth transition when typing */
}
  
.modern-textarea .form-control:focus::placeholder {
    opacity: 1; /* Show placeholder text on focus */
}
  
.modern-textarea textarea {
    resize: none; /* Prevent resizing for a clean look */
}

.small-text {
    font-size: 12px;
    color: #6c757d;
}

.layer-container {
    position: relative; /* Ensure that the .layer-btns is positioned relative to this container */
    display: inline-block; /* Keep it inline to avoid taking full width */
}

.layer-btns {
    position: absolute; /* Positioned relative to the #openLayers button */
    top: 49px; /* Place it directly underneath the main button */
    left: 0; /* Align with the left side of the main button */
    z-index: 90010; /* Ensure it appears above other content */
    background-color: white; /* Optional: give it a background */
    padding: 5px; /* Optional: add some padding */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Optional: add a shadow for visual effect */
    border-radius: 5px; /* Optional: rounded corners */
    display: flex; /* Use flexbox to align buttons horizontally */
    flex-direction: row; /* Ensures horizontal stacking */
    border: 1px solid #ced4da;
    opacity: 1;          /* Fully visible */
    transition: opacity 0.3s ease, height 0.3s ease; /* Transition when becoming visible */
}

#scrollableModal {
    z-index: 90000010;
}

#map-loader {
    position: absolute;
    left: calc(50% - 60px);
    top: calc(50% - 60px);
    z-index: 9000001;
}

.loader {
    right: -40%;
    top: 20%;
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #658864;
    width: 120px;
    height: 120px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
    position: relative;
}

.halfSidebar {
	position: fixed;
	right: 0%;
	top: 10%;
	width: 75%;
	height: 80%;
	background-color: #ffffff;
	border-color: darkgrey;
	border-width: 1px;
	border-style: solid;
	z-index: 9999;
	border-radius: 15px 0 0 15px;
	padding-top: 10px;
	padding-bottom: 10px;
}

.mapSidebar {
	position: fixed;
	right: 0%;
	top: 10%;
	background-color: #ffffff;
	border-color: darkgrey;
	border-width: 1px;
	border-style: solid;
	z-index: 9999;
	border-radius: 15px 0 0 15px;
	padding-top: 10px;
	padding-bottom: 10px;
    max-width: 60vw;
}

.mapSidebarNoneHide {
	position: fixed;
	right: 0%;
	top: 10%;
	background-color: #ffffff;
	border-color: darkgrey;
	border-width: 1px;
	border-style: solid;
	z-index: 9999;
	border-radius: 15px 0 0 15px;
	padding-top: 10px;
	padding-bottom: 10px;
}

.bottom-sidebar {
    top: 80%;
}

.middle-bottom-sidebar {
    top: 60%;
}

#lineSelect {
    width: 800px;
}

.select-btn {
    background: #D3D3D3;
    border: 1px solid #d3d3d354;
}

.select-box {
    position: relative;
    background: #fafafa;
    border: 1px solid #d3d3d373;
    border-radius: 5px;
    height: 150px;
    transition: all 0.2s ease; /* Smooth transition */
}

.select-box:hover {
    background: #f0f0f0; /* Slightly darker background */
    border-color: #c0c0c0; /* Darker border color */
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.1); /* Inner shadow to create 'pressed' effect */
}

.selected-box {
    background: #f0f0f0e7; /* Slightly darker background */
    border-color: #c0c0c0c7; /* Darker border color */
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.2); /* Inner shadow to create 'pressed' effect */
}

.line-desc{
    width: 40%;
}

.canvas-background {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 0; /* Ensures the canvas is below the content */
    width: 500px; /* Fill the select box horizontally */
    height: 150px; /* Fill the select box vertically */
    pointer-events: none; /* Prevents interaction with the canvas */
}

.btn-round {
    border: 1px solid #D3D3D3;
    border-radius: 10px;
    width: fit-content;
    padding: 0px;
    margin-right: 5px;
}