/* Transformer Feed-Forward Network Visualization Styles */
/* Max width: 800px, Font: Courier New, Background: Black */

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

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

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

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

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

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

.ffn-pipeline {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.stage-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    min-width: 180px;
}

.stage-info {
    font-size: 11px;
    color: #aaa;
    text-align: center;
    font-family: 'Courier New', monospace;
}

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

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

.architecture-section {
    margin-bottom: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.architecture-card {
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.architecture-canvas {
    width: 750px;
    height: 280px;
    background: rgba(0, 0, 0, 0);
    border: 1px solid #333;
    display: block;
    margin: 0 auto;
}

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

.all-tokens-container {
    margin-top: 20px;
}

.parallel-lanes {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.token-lane {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 15px;
}

.lane-header {
    font-size: 14px;
    font-weight: bold;
    color: #4CAF50;
    text-align: center;
    margin-bottom: 15px;
    font-family: 'Courier New', monospace;
}

.lane-stages {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.mini-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.mini-label {
    font-size: 10px;
    color: #aaa;
    font-family: 'Courier New', monospace;
}

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

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

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