/* Transformer Encoding Tutorial Styles */
/* Max width: 800px, Font: Courier New, Background: Black */

.tf-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Courier New', monospace;
    background: #000;
    color: #fff;
    padding: 20px;
}

.control-panel {
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

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

.control-group:last-child {
    margin-bottom: 0;
}

.control-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #fff;
    font-family: 'Courier New', monospace;
}

.text-input, .select-input {
    width: 100%;
    padding: 10px;
    background: #000;
    border: 1px solid #444;
    border-radius: 4px;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    box-sizing: border-box;
    cursor: pointer;
}

.text-input:focus, .select-input:focus {
    outline: none;
    border-color: #666;
}

.select-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 35px;
}

.select-input option {
    background: #000;
    color: #fff;
    padding: 8px;
}

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

.slider {
    flex: 1;
    height: 6px;
    background: #333;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #4CAF50;
    cursor: pointer;
    border-radius: 50%;
}

.slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #4CAF50;
    cursor: pointer;
    border-radius: 50%;
    border: none;
}

#dModelValue {
    min-width: 40px;
    text-align: right;
    font-size: 14px;
    color: #4CAF50;
    font-weight: bold;
}

.viz-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.viz-card {
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
}

.viz-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: #4CAF50;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.heatmap-canvas, .waveform-canvas {
    width: 100%;
    max-width: 750px;
    height: 400px;
    margin-bottom: 10px;
    background: #000;
    border: 1px solid #333;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.info-text {
    font-size: 12px;
    color: #888;
    font-style: italic;
    margin-top: 10px;
    font-family: 'Courier New', monospace;
}

.similarity-results {
    background: #000;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 15px;
    margin-top: 10px;
}

.similarity-item {
    margin-bottom: 12px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
}

.similarity-item:last-child {
    margin-bottom: 0;
}

.similarity-item strong {
    color: #4CAF50;
    margin-right: 8px;
}

.similarity-value {
    color: #FFD700;
    font-weight: bold;
    font-size: 16px;
    margin: 0 8px;
}

.similarity-note {
    color: #888;
    font-size: 12px;
    font-style: italic;
    margin-left: 8px;
}

.tokenization-display {
    background: #000;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
}

.tokenization-info {
    color: #fff;
}

.token-list {
    margin-bottom: 12px;
    font-size: 14px;
}

.token-item {
    margin-right: 8px;
}

.token-word {
    color: #4CAF50;
    font-weight: bold;
}

.vocab-info {
    font-size: 14px;
    border-top: 1px solid #333;
    padding-top: 12px;
}

.vocab-item {
    margin-right: 8px;
    color: #FFD700;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .tf-container {
        padding: 10px;
    }
    
    .viz-card {
        padding: 15px;
    }
    
    .control-panel {
        padding: 15px;
    }
}

