body { 
    margin: 0; 
    margin-right: 300px;
}

canvas { 
    display: block; 
}

#colorPaletteContainer {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    z-index: 1000;
}

#whiteDiv {
    width: 170px;
    height: 150px;
    background-color: white;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#opacitySlider {
    width: 100px;
    height: 20px;
    -webkit-appearance: none;
    padding: 0 5px;
    cursor: pointer;
    background: #374151;
    border-radius: 0.5rem;
}

#opacitySlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
}

#opacitySlider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

#colorPalette {
    display: grid;
    grid-template-columns: repeat(20, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 4px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.colorButton {
    width: 30px;
    height: 30px;
    border: 2px solid white;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.1s;
}

.colorButton:hover {
    transform: scale(1.1);
}

.colorButton.selected {
    border: 2px solid #000;
    transform: scale(1.1);
}

.icon-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: relative;
    color: white;
    transition: transform 0.2s;
}

.icon-button:hover {
    transform: scale(1.1);
}

.icon-button::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.icon-button:hover::after {
    opacity: 1;
}

/* Toolbar */
.toolbar {
    position: fixed;
    left: 20px;
    top: 80px;
    z-index: 1001;
}

/* Import input */
#importInput {
    display: none;
}

.mode-buttons-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mode-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.mode-button {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.mode-button:hover {
    background-color: #e0e0e0;
    border-color: #d0d0d0;
}

.mode-button.active {
    background-color: #73c0ff;
    border-color: #fff;
}

.mode-button.active i,
.mode-button.active .mode-icon {
    color: white;
}

.mode-button i,
.mode-button .mode-icon {
    color: #333;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.mode-button .mode-icon-paint {
    color: #333;
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* Add a separator between mode buttons and voxel type buttons */
.mode-button.voxel-type {
  
    position: relative;
}

.mode-button.voxel-type1 {
  margin-left: 15px;
    position: relative;
}


.mode-button.voxel-type1::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e0e0e0;
    border-radius: 1px;
 
}

/* Add specific styles for voxel type buttons */
.mode-button.voxel-type {
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
}

.mode-button.voxel-type:hover {
    background-color: #e0e0e0;
    border-color: #d0d0d0;
}

.mode-button.voxel-type.active {
    background-color: #6bbcff;
    border-color: #fff;
}

.mode-button.draw-mode.active {
    background: #6bbcff;
    border-color: #fff;
}

.mode-button.paint-mode.active {
    background-color: var(--current-color, #ff945e);
    border-color: var(--current-color, #ffffff);
    color: white;
}



.mode-button.view-mode.active {
    background: #21f391;
    border-color: #21f391;
}

.mode-button.delete-mode.active {
    background: #f61e42;
    border-color: #f61e42;
}

.mode-button.options-mode.active {
    background: #9bdcff;
    border-color: #ffffff;
}

.mode-button[data-tooltip] {
    position: relative;
}

.mode-button[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1001;
}

.help-panel {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 1001;
}

.help-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
    font-size: 16px;

}

.help-shortcut {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    gap: 8px;
}

.help-shortcut:last-child {
    margin-bottom: 0;
}

.key {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    min-width: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.description {
    color: rgba(255, 255, 255, 0.9);
}

.voxel-type-selector {
    margin-left: 10px;
    display: inline-block;
}

.voxel-type-selector select {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #2c2c2c;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    outline: none;
}

.voxel-type-selector select:hover {
    border-color: #666;
}

.voxel-type-selector select:focus {
    border-color: #2196F3;
}

/* Right Panel Styles */
.right-panel,
.panel-section,
.panel-section-header,
.panel-section-content,
.panel-control,
.collapse-toggle {
    /* Remove these styles as they're now handled by Tailwind */
}

 

.right-panel {
    z-index: 2000;
}

/* Brush controls */
.brush-controls {
    margin-top: 20px;
}

.brush-controls .panel-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brush-controls label {
    margin: 0;
} 

#brushMode {
    display: flex;
    justify-content: center;
    gap: 16px;
    width: 100%;
}

#brushMode label {
    font-size: 10px;
    display: flex;
    align-items: center;
    color: #ddd;
    padding: 2px 0;
}

#brushMode input[type="radio"] {
    margin-right: 4px;
    width: 12px;
    height: 12px;
}

#brushMode span {
    font-size: 10px;
    line-height: 1;
    padding-right: 5px;
}

 

/* Make sure the toolbar elements are better aligned */
.toolbar button {
    margin: 2px;
}

.icon-button {
    background-color: #dcedff;
    border-color: black;
    color: black;
}

#drawBrushSize {
    display: flex;
    flex-direction: column;

    padding: 8px;
    background: rgba(255, 255, 255, 0.9);
    margin-top: 2px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

#drawBrushSize.hidden {
    display: none !important;
}

#drawBrushSizeSlider {
    width: 400px;
    margin: 0 auto;
}

/* AI Render Image Popup */
.render-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.render-image-container {
    position: relative;
    max-width: 90%;
    max-height: 80%;
    background-color: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.render-image {
    max-width: 100%;
    max-height: 70vh;
    display: block;
    border-radius: 4px;
}

.render-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.render-button {
    padding: 8px 16px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s, transform 0.1s;
}

.render-button:hover {
    background-color: #1976D2;
    transform: translateY(-2px);
}

.render-button:disabled {
    background-color: #9e9e9e;
    cursor: not-allowed;
    transform: none;
}

.render-button.cancel {
    background-color: #f44336;
}

.render-button.cancel:hover {
    background-color: #d32f2f;
}

/* Special styling for the AI Render button */
.render-button:nth-child(3) {
    background-color: #4CAF50;
    margin-left: 10px;
}

.render-button:nth-child(3):hover {
    background-color: #388E3C;
}

/* Special styling for the Publish button in publish modal */
.render-button.publish {
    background-color: #4CAF50;
}

.render-button.publish:hover {
    background-color: #388E3C;
}

/* Add special styles for utility buttons */
#toggle_grid_button.active {
    background-color: #8bcbff;
    border-color: #ffffff;
}

#toggle_grid_button.active i {
    color: white;
}

#toggle_shadows_button.active {
    background-color: #8bcbff;
    border-color: #ffffff;
}

#toggle_shadows_button.active i {
    color: white;
}

#undo_button:hover {
    background-color: #ff5252;
    border-color: #d32f2f;
}

#undo_button:hover i {
    color: white;
}

/* Mode text colors */
.paint-mode-text {
    color: #2196F3;
}

.draw-mode-text {
    color: #FF9800;
}



