body {
    font-family: 'Courier New', monospace;
    background: #1a1a1a;
    color: #ffffff;
    margin: 0;
    padding: 20px;
}

.upload-status {
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    min-height: 20px;
}

.upload-status.processing {
    background: #4a4a00;
    color: #ffff88;
}

.upload-status.success {
    background: #004a00;
    color: #88ff88;
}

.upload-status.error {
    background: #4a0000;
    color: #ff8888;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

h1 {
    color: #00ff88;
    text-align: center;
    margin-bottom: 30px;
}

.input-section {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    position: relative;
}

.input-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.input-header h3 {
    margin: 0;
}

.model-upload-button {
    background: #00ff88;
    color: black;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.model-upload-button:hover {
    background: #00cc6a;
}

.model-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.model-upload-button {
    display: inline-block;
    font: bold 13.3333px Arial, sans-serif;
}

.model-file-input:focus-visible + .model-upload-button {
    outline: 2px solid white;
    outline-offset: 2px;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 20px;
    height: 600px;
}

.viewer-section {
    background: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

#threejs-container {
    width: 100%;
    height: 100%;
    display: block;
}

.controls-section {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.blendshapes-panel {
    flex: 1;
    overflow-y: auto;
}

.blendshapes-panel h3 {
    color: #00ff88;
    margin-top: 0;
    margin-bottom: 15px;
}

.blendshape-help {
    color: #bbb;
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.blendshape-help summary {
    cursor: pointer;
}

.slider-group {
    margin-bottom: 8px;
    padding: 5px;
    border-radius: 3px;
    transition: background 0.2s;
}

.slider-group.active {
    background: rgba(0, 255, 136, 0.1);
}

.slider-group label {
    display: block;
    font-size: 11px;
    margin-bottom: 3px;
    color: #ffffff;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.slider-container input[type="range"] {
    flex: 1;
    height: 4px;
    background: #444;
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #00ff88;
    border-radius: 50%;
    cursor: pointer;
}

.slider-container input[type="range"]:disabled {
    opacity: 0.3;
}

.slider-value {
    color: #00ff88;
    font-size: 10px;
    min-width: 40px;
    text-align: right;
}

.active-blendshapes {
    background: #333;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.active-blendshapes h4 {
    color: #ff6b6b;
    margin-top: 0;
    margin-bottom: 10px;
}

.blendshape-item {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    font-size: 11px;
}

.blendshape-name {
    color: #ffffff;
}

.blendshape-value {
    color: #00ff88;
    font-weight: bold;
}

.model-controls {
    background: #333;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.model-controls h4 {
    color: #00ff88;
    margin: 0 0 10px 0;
    font-size: 14px;
}

.control-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 5px 0;
}

.control-row label {
    font-size: 11px;
    min-width: 60px;
}

.control-row input {
    flex: 1;
    background: #1a1a1a;
    border: 1px solid #555;
    color: white;
    padding: 3px 5px;
    border-radius: 3px;
    font-size: 11px;
}

/* Attribution styles */
.attribution {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #aaa;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 10px;
    z-index: 100;
}

.attribution a {
    color: #00ff88;
    text-decoration: none;
}

.attribution a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 768px) {
    .main-content {
        display: block;
        height: auto;
    }

    .controls-section {
        margin-top: 20px;
    }

    .input-section,
    .viewer-section,
    .controls-section {
        padding: 15px;
    }

    .container {
        padding: 10px;
    }

    .input-header h3 {
        font-size: 16px;
    }

    .model-controls h4,
    .blendshapes-panel h3 {
        font-size: 16px;
    }

    .control-row label {
        min-width: 50px;
        font-size: 12px;
    }

    .slider-value {
        font-size: 11px;
    }

    .attribution {
        position: static;
        margin-top: 10px;
        font-size: 12px;
        text-align: center;
    }

    #threejs-container {
        height: 300px;
    }

}