.sidebar {
    position: absolute;
    top: 50px;
    max-height: 60vh;
    overflow: hidden;
    padding: 3px;
    left: 22%; /* Start just after hierarchy-panel */
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 10px;
    z-index: 3;
    overflow-y: auto;
    transition: width 0.3s ease, opacity 0.3s ease, left 0.3s ease;
}

 .tool-btn {
    background-color: #282727;
    border: 1px solid #878787;
    width: 30px;
    height: 30px;
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex; /* Helps align icon if you add text later */
    align-items: center;
    justify-content: center;
    color: #ffffff; /* This will be the stroke color of the SVG */
}

.tool-btn svg {
    width: 16px; /* Adjust size as needed */
    height: 16px; /* Adjust size as needed */
}

.tool-btn.active {
    background-color: #007bfff6;
    box-shadow: 0 0 8px rgba(66, 134, 244, 0.788);
    color: #ffffff; /* Active icon color */
    border: 1px solid #007bff; /* Active border color */
    transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.tool-btn:hover {
    background-color: #e0e0e0;
    color: #007bff; /* Icon color on hover */
}
.tool-btn:focus {
    outline: 1px solid #007bff;
    background-color: rgba(66, 134, 244, 0.788);
}

#guiControls {
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.effect-button{
    background: #005f50;
    padding: 5px 8px;
    color: #fff;
    border: none;

}

.effect-button:hover{
    background: #129e89;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0,4);
  
}


.asset-preview-container {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    background: #2a2a2a;
}

.asset-preview-container canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


#toolbar-group-shapes, #toolbar-group-camera{
    position: relative;
    display: inline-block;
}

/* Menu styling */
.menu {
    position: absolute;
    top: 6vh; /* adjust depending on button position */
    background-color: #1f1f1f;
    padding: 6px;
    display: none;
    z-index: 999;
    font-size: 12px;
    min-width: 140px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.menu button {
    width: 100%;
    padding: 5px;
    background: none;
    border: none;
    color: #fff;
    text-align: left;
}
/* Show the menu when the 'show' class is added */
.menu.show {
    display: block;
}


.camera-tape{
    position: absolute;
    top: 6%;
    right: 23%;
    width: 54%;
    height: 40px;
    background: #292929;
    color: #fff;
    padding: 3px 6px;
    border: none;
    z-index: 1;
}
.camera-path-btn{
    margin: 5px;
    background: #373737;
    color: #fff;
    border: none;
    padding: 5px;
    font-size: 14px;
}

/* Canvas Selection CSS */
#selectionCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

#toggle-selection.active {
    background-color: #4285F4;
    color: white;
    box-shadow: 0 0 8px rgba(66, 133, 244, 0.8);
}

.box-selected {
    outline: 2px solid #4285F4;
    outline-offset: 2px;
}


   #physics-clothing-panel {
        width: 260px;
        background-color: #1e1d1d;
        border-radius: 4px;
        color: #eee;
        font-family: monospace;
        z-index: 10;
        padding-bottom: 10px;
    }
    #physics-clothing-panel .panel-header {
        background-color: #3c4150; padding: 6px; font-weight: bold; border-bottom: 1px solid #444;
    }
    #physics-clothing-panel .control-group { padding: 8px; border-bottom: 1px solid #333; }
    #physics-clothing-panel label { display: flex; justify-content: space-between; margin-bottom: 5px; }
    #physics-clothing-panel input[type="range"] { width: 100%; }
    #physics-clothing-panel button { width: 100%; padding: 8px; margin-top: 5px; border: none; background-color: #007bff; color: white; border-radius: 3px; cursor: pointer; }
    #physics-clothing-panel button:hover { background-color: #0056b3; }
    #physics-clothing-panel button:disabled { background-color: #555; cursor: not-allowed; }
    #status-text { padding: 10px; font-style: italic; color: #999; text-align: center; }

/* Keyboard Shortcuts Panel CSS */

/* Main panel container */
/*
.shortcuts-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    max-width: 90vw;
    max-height: 80vh;
    background-color: #2a2a2a;
    color: #f0f0f0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: Arial, sans-serif;
    border: 1px solid #444;
}


.shortcuts-header {
    padding: 12px 16px;
    background-color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #444;
}

.shortcuts-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
}

.close-btn {
    background: none;
    border: none;
    color: #aaa;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.close-btn:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}


.shortcuts-tabs {
    display: flex;
    background-color: #333;
    border-bottom: 1px solid #444;
    overflow-x: auto;
    padding: 0 4px;
}

.tab-btn {
    padding: 8px 12px;
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 13px;
    position: relative;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.tab-btn:hover {
    color: #fff;
}

.tab-btn.active {
    color: #4285F4;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #4285F4;
}


.tab-contents {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.tab-content {
    display: none;
    padding: 0;
}

.tab-content.active {
    display: block;
}


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

.shortcuts-table tr {
    border-bottom: 1px solid #444;
}

.shortcuts-table tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.shortcuts-table tr:last-child {
    border-bottom: none;
}

.shortcuts-table td {
    padding: 10px 16px;
}

.key-cell {
    width: 140px;
    white-space: nowrap;
}

.desc-cell {
    color: #ddd;
}

kbd {
    background-color: #444;
    border-radius: 4px;
    border: 1px solid #555;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    color: #fff;
    display: inline-block;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    line-height: 1;
    padding: 4px 8px;
    margin-right: 4px;
    min-width: 20px;
    text-align: center;
}


.search-container {
    padding: 12px 16px;
    border-top: 1px solid #444;
    background-color: #333;
}

#shortcut-search {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #555;
    border-radius: 4px;
    background-color: #444;
    color: #fff;
    font-size: 14px;
}

#shortcut-search:focus {
    outline: none;
    border-color: #4285F4;
}

.search-results {
    display: none;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 8px;
    background-color: #3a3a3a;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.search-result {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #444;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-result:last-child {
    border-bottom: none;
}

.search-result:hover {
    background-color: rgba(66, 133, 244, 0.2);
}

.result-category {
    color: #999;
    font-size: 11px;
    text-transform: uppercase;
    background-color: #444;
    padding: 2px 6px;
    border-radius: 10px;
    margin-right: 4px;
}

.no-results {
    padding: 12px;
    text-align: center;
    color: #999;
    font-style: italic;
}


#toggle-shortcuts {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #333;
    color: #fff;
    border: 1px solid #444;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
}

#toggle-shortcuts:hover {
    background-color: #4285F4;
    transform: scale(1.05);
}

#toggle-shortcuts svg {
    width: 20px;
    height: 20px;
}


@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -48%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.shortcuts-panel {
    animation: fadeIn 0.2s ease-out;
}


@media screen and (max-width: 600px) {
    .shortcuts-panel {
        width: 95vw;
        max-height: 80vh;
    }
    
    .key-cell {
        width: 100px;
    }
    
    .shortcuts-tabs {
        padding: 0 2px;
    }
    
    .tab-btn {
        padding: 8px 10px;
        font-size: 12px;
    }
}*/