:root {
    --primary-color: #4CAF50;
    --secondary-color: #FFFFFF;
    --text-color: #333333;
    --background-color: #F0F0F0;
    --border-radius: 5px;
    --font-family: 'Arial', sans-serif;
    --panel-bg-color: rgba(255, 255, 255, 0.9);
}

body {
    margin: 0;
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    overflow: hidden;
}

#app {
    display: flex;
    width: 100%;
    height: 100vh;
}

#left-panel {
    width: 33.3%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
    background-color: var(--panel-bg-color);
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

#right-panel {
    width: 66.7%;
    height: 100%;
    position: relative;
}

#renderer-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#model-selector {
    margin-bottom: 20px;
    background-color: var(--panel-bg-color);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

#model-selector h2 {
    font-size: 18px;
    margin: 0 0 15px;
    color: var(--text-color);
}

#model-selector select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
    font-size: 16px;
    cursor: pointer;
}

#model-selector .model-preview {
    margin-top: 10px;
    text-align: center;
}

#model-selector .model-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

#control-panel {
    margin-bottom: 20px;
}

#info-card {
    flex-grow: 1;
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: white;
    margin-top: 20px;
    font-size: 18px;
}

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

button {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: var(--border-radius);
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #3d8b40;
}

.icon {
    width: 24px;
    height: 24px;
    margin-right: 5px;
}

/* 回應式設計 */
@media (max-width: 768px) {
    #app {
        flex-direction: column;
    }
    
    #left-panel {
        width: 100%;
        height: auto;
        max-height: 40vh;
    }
    
    #right-panel {
        width: 100%;
        height: 60vh;
    }
}