/* Transformer Attention Visualization Styles */
/* Max width: 800px, Font: Courier New, Background: Black */

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

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

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

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

.slider {
    flex: 1;
    height: 6px;
    background: #333;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    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;
}

#temperatureValue {
    min-width: 50px;
    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: 0 0 15px 0;
    font-size: 16px;
    color: #4CAF50;
    font-family: 'Courier New', monospace;
}

.viz-card h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #fff;
    font-family: 'Courier New', monospace;
}

.step-container {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.vector-panel, .keys-panel {
    flex: 1;
    min-width: 200px;
}

.keys-container, .values-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.key-item, .value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.key-label, .value-label {
    font-size: 12px;
    color: #fff;
    text-align: center;
    font-family: 'Courier New', monospace;
}

.vector-canvas {
    width: 100%;
    max-width: 200px;
    height: 300px;
    background: #000;
    border: 1px solid #333;
    display: block;
    margin: 0 auto;
}

.vector-canvas-small {
    width: 150px;
    height: 200px;
    background: #000;
    border: 1px solid #333;
    display: block;
}

.matrix-panel {
    flex: 1;
    min-width: 150px;
    text-align: center;
}

.matrix-canvas {
    width: 150px;
    height: 180px;
    background: #000;
    border: 1px solid #333;
    display: block;
    margin: 0 auto;
}

.bar-canvas {
    width: 100%;
    max-width: 750px;
    height: 300px;
    background: #000;
    border: 1px solid #333;
    display: block;
    margin: 0 auto;
}

.info-text {
    margin-top: 15px;
    font-size: 12px;
    color: #ccc;
    font-family: 'Courier New', monospace;
    text-align: center;
}

