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

.multihead-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 label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #fff;
    font-family: 'Courier New', monospace;
}

.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.focus-btn {
    padding: 10px 15px;
    background: #222;
    border: 1px solid #444;
    border-radius: 4px;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.focus-btn:hover {
    background: #333;
    border-color: #666;
}

.focus-btn.active {
    background: #4CAF50;
    border-color: #4CAF50;
    color: #000;
    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;
}

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

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

.token-embedding-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.embedding-canvas {
    width: 120px;
    height: 200px;
    background: rgba(0, 0, 0, 0);
    border: 1px solid #333;
    display: block;
}

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

.split-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.split-visualization {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.input-lane {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.arrow-down {
    font-size: 24px;
    color: #4CAF50;
    font-weight: bold;
}

.head-lanes {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.head-lane {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border: 2px solid;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s;
}

.head-lane.dimmed {
    opacity: 0.2;
}

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

.module2-label {
    font-size: 10px;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-style: italic;
    margin-top: 5px;
    opacity: 0.8;
}

.split-canvas {
    width: 200px;
    height: 150px;
    background: rgba(0, 0, 0, 0);
    border: 1px solid #333;
    display: block;
}

.attention-maps-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.attention-map-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: opacity 0.3s;
}

.attention-map-item.dimmed {
    opacity: 0.2;
}

.head-title {
    font-size: 14px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    text-align: center;
}

.attention-map-canvas {
    width: 300px;
    height: 300px;
    background: rgba(0, 0, 0, 0);
    border: 1px solid #333;
    display: block;
}

.module2-process-label {
    font-size: 10px;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-style: italic;
    margin-bottom: 8px;
    opacity: 0.9;
}

.head-description {
    font-size: 11px;
    color: #aaa;
    text-align: center;
    font-family: 'Courier New', monospace;
    max-width: 300px;
}

.concatenation-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.concatenation-canvas {
    width: 750px;
    height: 150px;
    background: rgba(0, 0, 0, 0);
    border: 1px solid #333;
    display: block;
    max-width: 100%;
}

.linear-mixing-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.output-canvas {
    width: 200px;
    height: 200px;
    background: rgba(0, 0, 0, 0);
    border: 1px solid #333;
    display: block;
}
