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

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

.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;
    margin-bottom: 10px;
}

.mode-btn {
    padding: 10px 20px;
    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;
}

.mode-btn:hover:not(.active) {
    background: #333;
    border-color: #666;
}

.mode-btn.active {
    background: #4CAF50;
    border-color: #66FF66;
    color: #fff;
}

.mode-description {
    font-size: 12px;
    color: #aaa;
    font-family: 'Courier New', monospace;
    margin-top: 10px;
    padding: 10px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 4px;
}

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

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

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

.architecture-canvas {
    width: 100%;
    max-width: 800px;
    height: 650px;
    background: rgba(0, 0, 0, 0);
    border: 1px solid #333;
    display: block;
    margin: 0 auto;
}
