html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    /* font-family: 'Raleway', Arial, sans-serif; */
    font-family: 'Segoe UI', Arial, sans-serif;
}

.title-bar {
    /* font-weight: bold; */
    font-size: large;
    /* height: 20px; */
    height: 25px;

    display: flex;
    align-items: center;

    width: calc(100% - 20px);
    background-color: #1e1e1e;
    color: white;
    text-align: left;
    padding: 10px;
    position: relative;
    z-index: 1;
}

.nav-bar {
    height: 40px;
    width: calc(100% - 20px);
    background-color: #2c2c2c;
    color: #e8e8e8;

    padding: 10px;
    display: flex;
    /* justify-content: space-around; */
    position: relative;
    z-index: 1;

}

.nav-link.active {
    /* text-decoration: underline; */
    font-weight: bold;
    color: white
}


.tool-group label {
    color: #717171;
    margin-right: 10px;
}

.inspector-feature {
    margin-top: 10px;
}

#new-idea {
    /* padding: 10px 30px; */
    text-align: center;
}

.flex {
    display: flex;
}

.col {
    display: flex;
    flex-direction: column;
}

.equal-width {
    flex: 1;
}

.hidden {
    display: none;
}

a.nav-link {
    text-transform: uppercase;
    padding: 10px;
}


.nav-bar div {
    display: inline;
}

.content {
    display: flex;
    height: calc(100% - 45px);
    /* Adjust based on the nav bar's height */
}

.center-grid {
    flex-grow: 1;
    /* Allows the left grid to fill the remaining space */
    background-color: #fff;
}

.edge-grid {
    width: 300px;
    background-color: #fff;
    border-left: 1px solid #e6e6e6;
    border-right: 1px solid #e6e6e6;
    /* padding: 10px; */
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.tool-group {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: auto;
    border-bottom: 1px solid #e6e6e6;
    padding: 10px;
    padding-bottom: 15px;
    color: #2c2c2c;
    font-size: smaller;
    overflow-y: scroll;
    min-height: 100px;
}

.tool-group h1 {
    font-size: small;
}

.tool-group textarea {
    font-family: inherit;
    font-size: inherit;
    resize: none;
    height: 3.5rem;
}

.tool-group input,
.tool-group textarea {
    width: 100%;
    color: black;
    border: 1px solid transparent;
}

.tool-group input::placeholder,
.tool-group textarea::placeholder {
    border: 1px solid #e6e6e6;
}

.tool-group input:hover,
.tool-group textarea:hover {
    border: 1px solid #e6e6e6;
}

.tool-group select {
    border: 1px solid transparent;
    background-color: #fff;
    width: 100%;
}

.tool-group select:hover {
    border: 1px solid #e6e6e6;
}


.tool-group button {
    border: 1px solid #e6e6e6;
    background-color: #fff;
}

.tool-group button:hover {
    border: 1px solid #0d99ff;
}

.tool-group.fill-space {
    flex-grow: 1;
    flex-shrink: 1;
}

.right-grid .tool-group:last-of-type {
    border-bottom: none
}

#container-left {
    width: 150px;
    height: 330px;
    float: left;
    background-color: #fff;
}

#container {
    width: 100%;
    height: 100%;
    float: left;
    margin: auto;
    box-shadow: 0px 0px 9px #e0e0e0 inset;
    background-image: radial-gradient(#e8e8e8 1px, #f4f4f4 0);
    background-size: 10px 10px;
    background-position: -5px -5px;
    overflow: hidden;
}

svg {
    overflow: visible;
}

svg:hover {
    cursor: grab;
}

.item {
    /* border: solid;*/
    width: 200px;
    /* height: 100px; */
    text-align: left;
    vertical-align: middle;
    /* line-height: 50px; */
    /* background-color: orange; */
    cursor: pointer;
    border-radius: 5px;
    position: absolute;
    padding: 5px;
}

.floatingItemInput {
    width: 300px;
}

div .moveable-control-box {
    z-index: 0;
}

.ai-list {
    white-space: pre-line;
}

/* Context Menu */

#contextMenu {
    font-size: smaller;
    list-style: none;
    margin: 0;
    padding: 0;
    /* background: #FFF; */
    width: 200px;
    display: none;
    /* Initially hidden */
    position: absolute;
    box-shadow: 0px 0px 9px #e0e0e0;
    z-index: 1000;
    /* Ensure it's on top */
}

#contextMenu li {
    position: relative;
}

#contextMenu li a {
    color: black;
    padding: 10px;
    display: block;
    text-decoration: none;
    background-color: #FFF
}

#contextMenu li a:hover {
    background-color: #F7F7F7;
}

#contextMenu ul {
    list-style: none;
    /* Remove bullet points */
    margin: 0;
    /* Remove default margin */
    padding: 0;
    /* Remove default padding */
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background: #333;
    box-shadow: 0px 0px 9px #e0e0e0;
    width: 200px;
    /* Match width of the parent menu */
    z-index: 1000;
}

#contextMenu li:hover>ul {
    display: block;
}

#busy-spinner {
    position: absolute;
    /* top: 0; */
    right: 10px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}