/* styles.css */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Prevents the page from overflowing */
}

.title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #273339;
    color: white;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-bottom-color: #e0e0e0;
    padding: 5px 10px;
}

.logo {
    font-weight: bold;
}

.tool-selector a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
}

.account-settings select {
    padding: 5px;
}

.menu-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #273339;
    color: white;
    border-color: #e0e0e0;
    padding: 5px 20px;
}

.main-container {
    display: flex;
    position: relative;
    overflow: hidden;
    height: 100vh;
}

.center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #ddd;
    flex: 1;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.left-sidebar, .right-sidebar {
    background-color: #273339;
    color: white;
    min-width: 300px;
    height: 100%;
    box-sizing: border-box;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: 100px;
}

.sidebar-content {
    overflow-x: hidden;
    overflow-y: auto;
}

.bottom-sidebar-container {
    background-color: #888;
    padding: 10px;
    height: 100%;
}

.top-sidebar-container {
    background-color: #666;
    padding: 10px;
}

.sidebar-title {
    font-weight: bold;
    text-align: center;
}

.sidebar-resize {
    height: 100%;
    width: 0px;
    cursor: col-resize;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    user-select: none;
}

.sidebar-resize::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0px;
    /* height: 15px; */
    height: 100%;
    border-inline: 1px solid #555;
}

.plan-navigator {
    list-style-type: none;
    padding-left: 0;
}

.plan-navigator li {
    margin-bottom: 10px;
    display: block;
}

.plan-navigator .arrow {
    cursor: pointer;
    margin-right: 5px;
    color: #aaa;
    transition: transform 0.3s;
    display: inline-block;
}

.plan-navigator .arrow.collapsed {
    transform: rotate(-90deg);
}

.plan-navigator .nested {
    display: none;
    padding-left: 20px;
}

.plan-navigator .plan-element {
    cursor: pointer;
    color: #fff;
    display: inline-block;
}

.plan-navigator input[type="checkbox"] {
    margin-right: 5px;
    display: inline-block;
}

.map-container {
    height: 100vh;
    width: auto;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.plotting-view {
    display: none;
}

.plotting-view iframe {
    width: 100%;
    height: 100%;
}

.plotting-view #close-plotting {
    margin-left: 15px;
    color: black;
    text-decoration: none;
    font-weight: bold;
}

.map {
    background-color: white;
    height: 100%;
    width: 100%;
}

.summaries-panel {
    background-color: #666;
    color: white;
    padding: 10px;
    position: fixed;
    bottom: 0;
    /* left: 250px;
    right: 250px; */
    height: 200px;
    width: calc(100% - 450px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

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

.tab button {
    background-color: inherit;
    color: white;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
}

.tab button:hover {
    background-color: #777;
}

.tabcontent {
    display: none;
    padding: 6px 12px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.summaries-panel-resize {
    height: 0px;
    width: 100%;
    cursor: row-resize;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    user-select: none;
}

.summaries-panel-resize::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 0px;
    width: 100%;
    border-inline: 1px solid #555;
}


/* Collapse button styles */
.collapse-btn {
    position: absolute;
    top: 0px;
    left: 50%;
    /* transform: translateY(-50%); */
    background-color: #444;
    color: white;
    border: none;
    cursor: pointer;
    padding: 2px 10px;
    z-index: 10;
}

.left-sidebar .collapse-btn {
    top: 50%;
    right: 0px;
    width: 40px;
    cursor: pointer;
}

.right-sidebar .collapse-btn {
    top: 50%;
    /* left: -20px; */
}

/* Hide sidebar content when collapsed */
.left-sidebar.collapsed .sidebar-content,
.right-sidebar.collapsed {
    display: none;
}

/* Hide Plan Summaries Content */
.summaries-panel.collapsed .summaries-content {
    display: none;
}

.hidden {
    display: none;
}

progress {
    accent-color: black;
}

progress::-moz-progress-bar {
    background: black;
}

progress::-webkit-progress-value {
    background: black;
}

.ui-div {
    background: #273339;
    margin: 10px;
}

.no-margin {
    margin: 0 !important;
}

.red-text {
    color: darkred !important;
}

input:is([type=number],[type=password],[type=text]) {
    background-color: #1F292E;
    border: 1px solid #36474F;
    border-radius: 5px;
    padding: 5px;
    font-size: medium;
    color: white;
}

input[type=text]:disabled {
    background-color: darkgrey;
    color: #212121;
    cursor: default;
}

#center-div {
    width: 525px;
    box-shadow: none;
    border: 3px solid #36474F;
    background-color: #273339;
    max-height: 87vh;
    overflow-y: auto;
    border-radius: .66rem;
    padding: 20px;
    box-sizing: border-box;
    color: white;
    margin-bottom: 30vh;
}

a.disabled {
    pointer-events: none;
    cursor: default;
    text-decoration: none;
}

.narrow-div {
    width: 25vw;
}

.normal-table {
    width: unset;
}

.normal-table th, .normal-table td {
    padding: 0 15px 5px 0;
    text-align: left;
    border-bottom: 0;
}

.mapboxgl-popup-content {
    display: inline-table;
    width: 25vw;
}

.unselected-tool, .selected-tool {
    padding: 5px;
    border-radius: 5px;
}

.selected-tool {
    background-color: #666;
}

.ellipsis-anim span {
    opacity: 0;
    -webkit-animation: ellipsis-dot 1s infinite;
    animation: ellipsis-dot 1s infinite;
}

.ellipsis-anim span:nth-child(1) {
    -webkit-animation-delay: 0.0s;
    animation-delay: 0.0s;
}

.ellipsis-anim span:nth-child(2) {
    -webkit-animation-delay: 0.1s;
    animation-delay: 0.1s;
}

.ellipsis-anim span:nth-child(3) {
    -webkit-animation-delay: 0.2s;
    animation-delay: 0.2s;
}

@-webkit-keyframes ellipsis-dot {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes ellipsis-dot {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

dialog input:is([type=number],[type=password],[type=text],[type=textarea]) {
    background: white;
    color: black;
}

dialog h3 {
    margin-top: 0;
}

dialog textarea {
    width: 300px;
    height: 100px;
}