* {
    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: hidden;
}

.container {
    display: flex;
    height: 100vh;
}


.sidebar {
    width: 280px;
    min-width: 280px;
    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;
    padding: 15px;
    border-radius: 8px;
}

.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;
}

.toolbar {
    padding: 10px 20px;
    background-color: #2a2a2a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.title-input-container {
    flex: 0 0 66.666%;
    margin-right: 20px;
}

.title-input {
    width: 100%;
    padding: 4px 15px;
    font-size: 1em;
    background-color: #333;
    border: 2px solid #444;
    border-radius: 6px;
    color: #fff;
    transition: border-color 0.3s ease;
    height: 32px;
}

.title-input:focus {
    outline: none;
    border-color: #4CAF50;
}

.title-input::placeholder {
    color: #888;
}

.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;
}

.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;
}

.tool-btn {
    background-color: #333;
    border: none;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    color: white;
}

.viewer {
    flex: 1;
    background-color: #1a1a1a;
    position: relative;
    min-height: 300px;
    width: 100%;
}

.right-panel {
    width: 300px;
    background-color: #2a2a2a;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.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;
}

.gallery-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-button {
    padding: 10px 20px;
    border: none;
    background: #f0f0f0;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #333;
}

.tab-button:hover {
    background: #e0e0e0;
}

.tab-button.active {
    background: #007bff;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.category-group {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.category-header:hover {
    background: #e9ecef;
}

.category-name {
    font-weight: 600;
    font-size: 1.1em;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.category-group.active .toggle-icon {
    transform: rotate(180deg);
}

.category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.category-group.active .category-content {
    max-height: 2000px;
}

.asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.asset-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.asset-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.asset-thumbnail {
    position: relative;
    padding-top: 75%;
    background: #f8f9fa;
}

.asset-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.asset-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.asset-item:hover .asset-actions {
    opacity: 1;
}

.edit-btn, .delete-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
}

.edit-btn {
    background: #28a745;
    color: white;
}

.edit-btn:hover {
    background: #218838;
}

.delete-btn {
    background: #dc3545;
    color: white;
}

.delete-btn:hover {
    background: #c82333;
}

.audio-controls {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.7);
    padding: 8px;
    border-radius: 4px;
    color: white;
}

.play-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 0.9em;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.play-btn:hover {
    background: rgba(255,255,255,0.1);
}

.duration {
    font-size: 0.9em;
}

.asset-info {
    padding: 15px;
}

.item-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.1em;
    color: #333;
}

.item-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.9em;
    color: #666;
    flex-wrap: wrap;
}

.item-category {
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    color: #495057;
}

.item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
}

.tag {
    background: #e9ecef;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    color: #495057;
}

.item-price {
    font-weight: 600;
}

.price {
    color: #28a745;
}

.free {
    color: #6c757d;
}

#model-viewer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.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;
    height: 200px;
}

.multiple-images-area.active {
    display: block;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    height: 100%;
}

.image-slot {
    background-color: #333;
    border: 2px dashed #555;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.image-slot:hover {
    border-color: #4CAF50;
}

.add-image {
    font-size: 2em;
    color: #555;
}

.image-slot p {
    color: #555;
    font-size: 0.9em;
}

.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;
}

.date-group {
    margin-bottom: 30px;
    background-color: #2f2f2f;
    border-radius: 10px;
    padding: 15px;
}

.date-header {
    color: #fff;
    font-size: 1em;
    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;
}

.gallery-toggle {
    display: none;
    position: fixed;
    right: 15px;
    bottom: 15px;
    background-color: #4CAF50;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.title-input-area {
    margin-bottom: 20px;
}

.title-input {
    width: 100%;
    padding: 15px;
    font-size: 1.5em;
    font-weight: bold;
    background-color: #333;
    border: 2px solid #444;
    border-radius: 8px;
    color: #fff;
    text-align: center;
    transition: border-color 0.3s ease;
}

.title-input:focus {
    outline: none;
    border-color: #4CAF50;
}

.description-input-area {
    margin-bottom: 20px;
}

.description-input {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    font-size: 1.1em;
    background-color: #333;
    border: 2px solid #444;
    border-radius: 8px;
    color: #fff;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.description-input:focus {
    outline: none;
    border-color: #4CAF50;
}

.model-info {
    background-color: #333;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.thumbnail-container {
    width: 200px;
    height: 200px;
    margin-bottom: 15px;
    text-align: center;
    position: relative;
    background-color: #2a2a2a;
    border-radius: 6px;
    overflow: hidden;
}

.thumbnail-container img.model-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.thumbnail-container.no-image {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #2a2a2a 0%, #333333 100%);
}

.thumbnail-container.no-image::after {
    content: "🎁";
    font-size: 4em;
    opacity: 0.8;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.change-thumbnail-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(51, 51, 51, 0.8);
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8em;
    backdrop-filter: blur(4px);
}

.change-thumbnail-btn:hover {
    background-color: rgba(68, 68, 68, 0.9);
}

.change-thumbnail-btn .icon {
    font-size: 1.1em;
}

.model-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #444;
}

.meta-item:last-child {
    border-bottom: none;
}

.meta-label {
    color: #888;
    font-size: 0.9em;
}

.meta-value {
    color: #fff;
    font-size: 0.9em;
}

.status-active {
    color: #4CAF50;
    font-weight: bold;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.primary-actions {
    display: flex;
    gap: 10px;
}

.primary-actions .action-btn {
    flex: 1;
}

.secondary-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 80px;
}

.action-btn .icon {
    font-size: 1.1em;
}

.print-btn {
    background-color: #2196F3;
}

.print-btn:hover {
    background-color: #1976D2;
}

.save-btn {
    background-color: #4CAF50;
}

.save-btn:hover {
    background-color: #388E3C;
}

.delete-btn {
    background-color: #dc3545;
}

.delete-btn:hover {
    background-color: #c82333;
}

.category-group {
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #f5f5f5;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.category-header:hover {
    background-color: #e8e8e8;
}

.category-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.category-group.active .category-content {
    max-height: 2000px;
}

.category-group.active .toggle-icon {
    transform: rotate(180deg);
}

.asset-grid {
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

/* 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;
}

.no-content {
    padding: 20px;
    text-align: center;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.no-content p {
    margin: 0;
    font-size: 1.1em;
}

.gallery-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #fff;
}

.gallery-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 0 10px;
}

.tab-button {
    padding: 10px 20px;
    border: none;
    background: #f0f0f0;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #333;
}

.tab-button:hover {
    background: #e0e0e0;
}

.tab-button.active {
    background: #007bff;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.asset-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.asset-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.asset-thumbnail {
    position: relative;
    padding-top: 75%;
    background: #f8f9fa;
}

.asset-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.asset-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.asset-item:hover .asset-actions {
    opacity: 1;
}

.edit-btn, .delete-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
}

.edit-btn {
    background: #28a745;
    color: white;
}

.edit-btn:hover {
    background: #218838;
}

.delete-btn {
    background: #dc3545;
    color: white;
}

.delete-btn:hover {
    background: #c82333;
}

.audio-controls {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.7);
    padding: 8px;
    border-radius: 4px;
    color: white;
}

.play-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 0.9em;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.play-btn:hover {
    background: rgba(255,255,255,0.1);
}

.duration {
    font-size: 0.9em;
}

.asset-info {
    padding: 15px;
}

.item-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.1em;
    color: #333;
}

.item-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.9em;
    color: #666;
    flex-wrap: wrap;
}

.item-category {
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    color: #495057;
}

.item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
}

.tag {
    background: #e9ecef;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    color: #495057;
}

.item-price {
    font-weight: 600;
}

.price {
    color: #28a745;
}

.free {
    color: #6c757d;
}

.category-select-container {
    margin: 0 15px;
}

.category-select {
    width: 100%;
    padding: 8px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
}

.category-select:hover {
    background: rgba(255,255,255,0.15);
}

.category-select:focus {
    outline: none;
    background: rgba(255,255,255,0.2);
}

.category-select option {
    background: #2a2a2a;
    color: #fff;
    padding: 8px;
}

/* 사운드 컨트롤 그룹 스타일 */
.sound-control-group {
    background: #333;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    border: 1px solid #444;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sound-header h4 {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.sound-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.close-sound-btn {
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.close-sound-btn:hover {
    background: #ff6666;
    transform: scale(1.1);
}

.sound-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.sound-title, .sound-description, .sound-category, .sound-player {
    width: 100%;
}

.sound-title {
    font-weight: bold;
    color: #fff;
    font-size: 13px;
    line-height: 1.3;
}

.sound-description {
    font-size: 12px;
    color: #aaa;
    line-height: 1.4;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.sound-category {
    font-size: 11px;
    color: #888;
    background: #2a2a2a;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.sound-player {
    margin: 10px 0;
}

.sound-player audio {
    width: 100%;
    height: 32px;
    border-radius: 4px;
    background: #2a2a2a;
}

.sound-player audio::-webkit-media-controls-panel {
    background: #2a2a2a;
}

.sound-player audio::-webkit-media-controls-play-button {
    background: #1565C0;
    border-radius: 50%;
}

.sound-player audio::-webkit-media-controls-current-time-display,
.sound-player audio::-webkit-media-controls-time-remaining-display {
    color: #fff;
}

.sound-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #666;
    margin-top: 8px;
}

.sound-meta span {
    background: #2a2a2a;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
}

/* 드래그 앤 드롭 관련 스타일 */
.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.drag-over {
    border: 2px dashed #1565C0 !important;
    background-color: rgba(21, 101, 192, 0.1) !important;
}

/* 하이라이트 애니메이션 */
@keyframes highlight {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); background-color: #444; }
    100% { transform: scale(1); }
}

/* 상태 제어 스타일 */
.status-control {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-active {
    color: #4caf50;
    font-weight: 600;
}

.status-inactive {
    color: #9e9e9e;
    font-weight: 400;
}

.publicity-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.publicity-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 12px;
    color: #fff;
}

.publicity-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 16px;
    height: 16px;
    border: 2px solid #4caf50;
    border-radius: 3px;
    background: transparent;
    position: relative;
    transition: all 0.2s ease;
}

.publicity-checkbox input[type="checkbox"]:checked + .checkmark {
    background: #4caf50;
}

.publicity-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
    font-weight: bold;
}

.publicity-label {
    font-size: 12px;
    color: #fff;
    user-select: none;
}

/* 이미지 탭 스타일 */
.image-tabs {
    margin-bottom: 15px;
}

.tab-buttons {
    display: flex;
    background: #2a2a2a;
    border-radius: 6px;
    padding: 2px;
    margin-bottom: 10px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #888;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
    background: #1565C0;
    color: #fff;
}

.tab-btn .icon {
    font-size: 14px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 마커 컨테이너 스타일 (썸네일과 동일) */
.marker-container {
    position: relative;
    width: 200px;
    height: 200px;
    border: 2px dashed #444;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a2a2a;
    overflow: hidden;
}

.marker-container .upload-marker-btn {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 26px;
    height: 26px;
    padding: 0;
    font-size: 18px;
    background: rgba(21, 101, 192, 0.85);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.marker-container .change-marker-btn {
    position: absolute;
    right: 30px;
    bottom: 2px;
    width: 26px;
    height: 26px;
    padding: 0;
    font-size: 24px;
    background: rgba(21, 101, 192, 0.85);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.marker-container canvas,
.marker-container img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.marker-container.no-image {
    background: #2a2a2a;
}

.marker-container.no-image::after {
    content: 'AR 마커 이미지를 추가하세요';
    color: #666;
    font-size: 12px;
    text-align: center;
}

/* 메시지 관련 스타일 */
.message {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    border-radius: 4px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    min-width: 200px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    background-color: #4CAF50;
    transition: all 0.3s ease-out;
}

.message.success {
    background-color: #4CAF50;
}

.message.error {
    background-color: #f44336;
}

@keyframes slideDown {
    0% {
        top: -100px;
        opacity: 0;
    }
    100% {
        top: 20px;
        opacity: 1;
    }
}

@keyframes slideUp {
    0% {
        top: 20px;
        opacity: 1;
    }
    100% {
        top: -100px;
        opacity: 0;
    }
}

/* 필드 오류 표시 스타일 (3dgallery 방식) */
.title-input.error,
.category-select.error {
    border-color: #ff4444 !important;
    box-shadow: 0 0 0 2px rgba(255, 68, 68, 0.2) !important;
}

.error-message {
    color: #ff4444;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.error-message.show {
    display: block;
}

.thumbnail-controls {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    z-index: 10;
}

.refresh-thumbnail-btn,
.upload-thumbnail-btn {
    background-color: rgba(51, 51, 51, 0.8);
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8em;
    backdrop-filter: blur(4px);
    transition: background-color 0.2s ease;
}

.refresh-thumbnail-btn:hover,
.upload-thumbnail-btn:hover {
    opacity: 1;
    background: rgba(42, 42, 42, 1);
}

.refresh-thumbnail-btn .icon,
.upload-thumbnail-btn .icon {
    font-size: 1.1em;
}

.thumbnail-container .upload-thumbnail-btn {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 26px;
    height: 26px;
    padding: 0;
    font-size: 18px;
    background: rgba(42, 42, 42, 0.85);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail-container .refresh-thumbnail-btn {
    position: absolute;
    right: 30px;
    bottom: 2px;
    width: 26px;
    height: 26px;
    padding: 0;
    font-size: 18px;
    background: #2a2a2a;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
} 