* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    overflow: auto;
}

.container {
    display: flex;
    height: 100vh;
    min-width: 1280px;
    width: 100%;
    margin: 0 auto;
}

.sidebar {
    width: 320px;
    min-width: 320px;
    background-color: #2a2a2a;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    scrollbar-width: thin;
    scrollbar-color: #444 #1a1a1a;
    overflow: auto;
}

/* Webkit 브라우저용 스크롤바 스타일링 */
.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
    transition: background 0.2s;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5em;
    font-weight: bold;
}

.logo img {
    width: 32px;
    height: 32px;
}

.task-input {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tabs {
    display: flex;
    gap: 2px;
    background-color: #222;
    padding: 2px;
    border-radius: 8px;
    min-height: 36px;
}

.tab-btn {
    flex: 1;
    padding: 8px 4px;
    background-color: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 6px;
    font-size: 0.85em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.tab-btn.active {
    background-color: #333;
}

.input-area {
    position: relative;
}

.image-drop-area {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    height: 200px;
    background-color: #333;
    border: 2px dashed #555;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.image-drop-area.active {
    display: flex;
}

.upload-icon {
    font-size: 2em;
}

.upload-text {
    color: #aaa;
    font-size: 0.9em;
}

.upload-options {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.upload-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 8px;
    background-color: #444;
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
}

.upload-option:hover {
    background-color: #555;
}

.upload-option .icon {
    font-size: 1.2em;
}

.generation-settings {
    background-color: #333;
    border-radius: 8px;
    padding: 16px;
}

.setting-group {
    margin-top: 15px;
}

.setting-group h4 {
    margin-bottom: 10px;
    color: #aaa;
}

.setting-group label {
    display: block;
    margin-bottom: 5px;
    color: #aaa;
}

.setting-group input[type="range"] {
    width: 100%;
    margin-bottom: 10px;
}

.setting-group input[type="number"] {
    width: 80px;
    padding: 4px;
    background-color: #444;
    border: none;
    border-radius: 4px;
    color: white;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

.generate-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 15px;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 640px;
}

.toolbar {
    padding: 10px;
    background-color: #2a2a2a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tools {
    display: flex;
    gap: 10px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.coin-info {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #333;
    padding: 6px 12px;
    border-radius: 20px;
}

.coin-icon {
    font-size: 1.2em;
}

.coin-amount {
    font-weight: bold;
    color: #FFD700;
}

.point-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #333;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.2s;
}

.point-btn:hover {
    background-color: #444;
}

.point-icon {
    color: #FFD700;
}

.tool-btn {
    background-color: #333;
    border: none;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    color: white;
}

.help-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #333;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.2s;
}

.help-btn:hover {
    background-color: #444;
}

.help-icon {
    color: #64B5F6;
}

.viewer {
    flex: 1;
    background-color: #1a1a1a;
    position: relative;
    min-height: 300px;
    width: 100%;
}

.right-panel {
    width: 320px;
    min-width: 320px;
    background-color: #2a2a2a;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.search-bar input {
    width: 100%;
    padding: 8px;
    background-color: #333;
    border: none;
    border-radius: 4px;
    color: white;
}

.asset-gallery {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

.asset-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

#model-viewer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.date-group {
    margin-bottom: 30px;
    background-color: #2f2f2f;
    border-radius: 10px;
    padding: 15px;
}

.date-header {
    color: #fff;
    font-size: 1.2em;
    margin-bottom: 15px;
    padding: 8px 12px;
    background-color: #383838;
    border-radius: 6px;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.date-header::before {
    content: "📅";
    margin-right: 8px;
    font-size: 1.1em;
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.model-card {
    position: relative;
    background: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.model-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.model-card.selected {
    border: 2px solid #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.3);
}

.model-thumbnail {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background-color: #333;
}

.model-info {
    padding: 10px;
    background: #2a2a2a;
}

.model-title {
    color: #fff;
    font-size: 0.9em;
    margin: 0;
    font-weight: 500;
    line-height: 1.3;
}

.model-date {
    color: #888;
    font-size: 0.8em;
    margin-top: 4px;
}

/* Webkit 브라우저용 스크롤바 스타일링 */
.asset-gallery::-webkit-scrollbar {
    width: 8px;
}

.asset-gallery::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.asset-gallery::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
    transition: background 0.2s;
}

.asset-gallery::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Firefox용 스크롤바 스타일링 */
.asset-gallery {
    scrollbar-width: thin;
    scrollbar-color: #444 #1a1a1a;
}

.text-input-area {
    display: none;
    height: 200px;
}

.text-input-area textarea {
    width: 100%;
    height: 100%;
    background-color: #333;
    border: none;
    border-radius: 8px;
    padding: 10px;
    color: white;
    resize: none;
}

.text-input-area.active {
    display: block;
}

.multiple-images-area {
    display: none;
    flex-direction: column;
    gap: 15px;
}

.multiple-images-area.active {
    display: flex;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    padding: 12px;
}

.image-slot {
    aspect-ratio: 1;
    background: #2a2c33;
    border: 2px dashed #555;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.image-slot:hover {
    border-color: #7b8eff;
    background: #2f3138;
}

.image-slot .add-image {
    font-size: 2rem;
    color: #555;
    margin-bottom: 8px;
}

.image-slot p {
    margin: 0;
    color: #888;
    font-size: 0.9rem;
}

.algorithm-options {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    margin: 0;
}

.extraction-settings {
    background-color: #333;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.extraction-settings h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1em;
}

.range-with-value {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.range-with-value input[type="range"] {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    background: #4a4a4a;
    border-radius: 2px;
    outline: none;
}

.range-with-value input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #4CAF50;
    border-radius: 50%;
    cursor: pointer;
}

.range-with-value input[type="number"] {
    width: 70px;
    padding: 4px;
    background-color: #444;
    border: none;
    border-radius: 4px;
    color: white;
    text-align: center;
}

.download-btn {
    width: 100%;
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 15px;
}

.download-btn:hover {
    background-color: #1976D2;
}

.top-bar {
    display: flex;
    justify-content: flex-end;
    padding: 15px;
    background-color: #2a2a2a;
    border-bottom: 1px solid #333;
}

.image-settings {
    display: flex;
    gap: 20px;
    align-items: center;
}

.image-settings .setting-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.image-settings label {
    color: #aaa;
    white-space: nowrap;
    margin: 0;
}

.image-settings .range-with-value {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.image-settings input[type="range"] {
    width: 120px;
    height: 4px;
    -webkit-appearance: none;
    background: #4a4a4a;
    border-radius: 2px;
    outline: none;
    margin: 0;
}

.image-settings input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #4CAF50;
    border-radius: 50%;
    cursor: pointer;
}

.image-settings input[type="number"] {
    width: 60px;
    padding: 4px;
    background-color: #444;
    border: none;
    border-radius: 4px;
    color: white;
    text-align: center;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .models-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-toggle {
    display: none;
}

.model-gallery {
    padding: 20px;
    background-color: #1a1a1a;
    min-height: 100vh;
} 
