/* Add theme-specific styles */
body {
    transition: background-color 0.3s ease;
}

body.light-theme {
    background: #ffffff;
}

body.light-theme .glass {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #000;
}

body.light-theme .tool-btn {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #000;
}

body.light-theme .tool-btn:hover {
    background: rgba(0, 0, 0, 0.2);
}

#scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glass {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
    color: #fff;
}

#toolbar {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}

.tool-group {
    display: flex;
    gap: 10px;
}

.tool-btn {
    background: rgba(0, 255, 0, 0.2);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: #00ff00;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.tool-btn:hover {
    background: rgba(0, 255, 0, 0.3);
}

#properties {
    position: fixed;
    right: 20px;
    top: 20px;
    width: 200px;
}

.property-group {
    margin: 10px 0;
}

.property-group label {
    display: block;
    margin-bottom: 5px;
}

#left-panel {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.panel-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.panel-btn {
    background: rgba(0, 255, 0, 0.2);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: #00ff00;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-btn:hover {
    background: rgba(0, 255, 0, 0.3);
}

.panel-btn i {
    font-size: 1.2em;
}

.loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 255, 0, 0.3);
    border-radius: 50%;
    border-top-color: #00ff00;
    animation: spin 1s ease-in-out infinite;
    z-index: 1000;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
