* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f0f0f0;
    color: #333;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.content {
    display: flex;
    gap: 20px;
    height: calc(100vh - 140px);
    min-height: 500px;
    position: relative;
}

.sidebar {
    width: 300px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 0;
}

.canvas-container {
    flex: 1;
    background-color: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

#3d-canvas {
    width: 100%;
    height: 100%;
    display: block;
    z-index: 2;
}

.model-info, .controls-panel {
    background-color: #f9f9f9;
    border-radius: 6px;
    padding: 10px;
}

h1 {
    font-size: 24px;
    color: #444;
}

h3 {
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.control-group {
    margin-bottom: 12px;
}

input[type="range"] {
    width: 100%;
    margin-top: 5px;
}

select, button {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    margin-top: 5px;
}

button {
    background-color: #4285f4;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #3367d6;
}

#file-input {
    display: none;
}

.upload-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #4285f4;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.upload-btn:hover {
    background-color: #3367d6;
}

.controls {
    display: flex;
    gap: 10px;
}

#model-details {
    margin-top: 10px;
    font-size: 14px;
}

#model-details p {
    margin-bottom: 5px;
}

/* 모바일 반응형 스타일 */
@media (max-width: 768px) {
    .content {
        flex-direction: column-reverse;
        overflow: hidden;
        height: auto;
        min-height: 100vh;
    }

    .sidebar {
        width: 100%;
        opacity: 0.9;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 40vh;
        overflow-y: auto;
        border-radius: 8px 8px 0 0;
    }

    .canvas-container {
        height: 60vh;
        min-height: 300px;
        position: fixed;
        top: 100px;
        left: 0;
        right: 0;
        z-index: 1;
    }

    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 3;
        background-color: #f0f0f0;
        padding: 10px 20px;
    }

    .container {
        padding: 10px;
    }

    .model-info, .controls-panel {
        padding: 8px;
    }

    h1 {
        font-size: 20px;
    }

    .upload-btn {
        padding: 6px 12px;
        font-size: 14px;
    }
}
