body {
    overflow: hidden;
}

.content {
    display: flex;
    position: relative;
    height: calc(100vh - 56px);
}

#canvas-container {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#map-area {
    flex: 1;
    overflow: hidden;
}

#library-container {
    height: 150px;
    width: 100%;
    background-color: #f0f0f0;
    border-top: 1px solid #ccc;
    display: flex;
    flex-direction: column;
}

#library-header {
    padding: 5px 10px;
    background-color: #e0e0e0;
    font-weight: bold;
    border-bottom: 1px solid #ccc;
}

#library-content {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

.library-item {
    border: 1px solid #ccc;
    padding: 5px;
    cursor: pointer;
  }
#sidebar-resizer {
    width: 5px;
    background-color: #dee2e6;
    cursor: col-resize;
}

#sidebar {
    width: 25%;
    display: flex;
    flex-direction: column;
    height: 100%;
}

#chat-messages {
    flex-grow: 1;
    overflow-y: auto;
}

#chat-input-container {
    display: flex;
    flex-direction: column;
}

.floating-window {
    position: absolute;
    top: 60px;
    left: 10px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    width: auto;
    z-index: 1000;
}

.window-header {
    background-color: #6c757d;
    color: white;
    padding: 10px;
    font-weight: bold;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    cursor: move;
}

.window-content {
    padding: 10px;
    display: flex;
    flex-direction: column;
}

#floating-tools {
    display: inline-block;
    height: fit-content;
    background-color: lightgrey;
}

#floating-tools .window-content {
    padding: 2px;
}

#floating-tools .btn {
    margin-bottom: 5px;
    padding: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
}

.active-tool {
    background-color: #0d6efd !important;
    color: white !important;
}

#note-popover {
    position: absolute;
    background-color: white;
    padding: 5px;
    border: 1px solid #dee2e6;
    border-radius: 3px;
    max-width: 200px;
    z-index: 1000;
}

#color-picker {
    position: absolute;
    left: 100%;
    top: 0;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px;
    z-index: 1001;
}

#color-picker button {
    width: 30px;
    height: 30px;
    margin: 2px;
    border: 2px solid transparent;
    cursor: pointer;
    border-radius: 50%;
}

body,
.content,
#canvas-container {
    margin-left: 0;
    padding-left: 0;
}

#floating-tools {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2px;
}

#floating-tools .btn {
    width: 40px;
    height: 40px;
    margin-bottom: 5px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
}

#color-picker {
    position: absolute;
    left: 100%;
    top: 0;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px;
    z-index: 1000;
}

#color-picker button {
    width: 30px;
    height: 30px;
    margin: 2px;
    border: 2px solid lightgray;
    cursor: pointer;
    border-radius: 50%;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 120px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}