body {
    background: #44444e;
    color: #d3dad9;
    scrollbar-color: #37353e #44444e;
}

.app-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-header {
    padding: 12px;
    border-bottom: 1px solid rgb(55, 53, 62);
    display: flex;
    gap: 12px;
    align-items: center;
}

.app-header h1 {
    margin: 0;
    font-size: 18px;
}

.upload-container {
    margin-left: auto;
}

.upload-label {
    display: inline-block;
    padding: 6px 10px;
    background: #37353e;
    color: #d3dad9;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    font-size: 16px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

.upload-label input {
    display: none;
}

.app-main {
    flex: 1;
    display: flex;
    min-height: 0;
}

.sidebar {
    width: 360px;
    border-right: 1px solid rgb(55, 53, 62);
    padding: 12px;
    box-sizing: border-box;
    overflow: hidden;
}

.viewer-section {
    flex: 1;
    min-height: 0;
    position: relative;
}

.viewer {
    width: 100%;
    height: 100%;
}

.loading-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(55, 53, 62);
    z-index: 10;
}

.placeholder {
    padding: 20px;
}

.error-box {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: #37353e;
    padding: 8px;
    border-radius: 6px;
}

.model-list {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.search-bar {
    margin-bottom: 8px;
}

.search-bar input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    background: #37353e;
    border: none;
}

.model-list-content {
    flex: 1;
    overflow: auto;
    border-top: 1px solid #37353e;
    padding-top: 8px;
}

.no-models {
    padding: 12px;
}

.model-list-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.model-item {
    padding: 8px;
    cursor: pointer;
    display: flex;
    gap: 8px;
    align-items: center;
    background: transparent;
    transition: background 0.15s ease;
}

.model-item:hover {
    background: #715a5a;
}

.model-item.selected {
    background: #715a5a;
}

.model-thumb {
    width: 40px;
    height: 40px;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    overflow: hidden;
}

.model-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.model-thumb-na {
    font-size: 11px;
    color: #84994f;
}

.model-info {
    flex: 1;
}

.model-name {
    font-size: 13px;
    font-weight: 600;
}

.model-path {
    font-size: 12px;
    color: #84994f;
}

.model-list-footer {
    border-top: 1px solid #37353e;
    padding-top: 8px;
}

.model-count {
    font-size: 12px;
    color: #d3dad9;
}

html, body, #__next {
    height: 100%;
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

* {
    box-sizing: border-box;
}

