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

.addnorm-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: 15px;
    flex-wrap: wrap;
    align-items: center;
}

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

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

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #fff;
    font-family: 'Courier New', monospace;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    cursor: pointer;
}

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

.addnorm-pipeline {
    display: flex;
    align-items: center;
    gap: 15px;
    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: 200px;
}

.stage-a-card {
    min-width: 700px;
    max-width: 100%;
}

.stage-a-canvas {
    width: 700px;
    height: 350px;
    background: rgba(0, 0, 0, 0);
    border: 1px solid #333;
    display: block;
}

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

.split-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

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

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

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

.arrow-right {
    font-size: 32px;
    color: #4CAF50;
    font-weight: bold;
    align-self: center;
    margin-top: 100px;
}

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

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

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

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

.stage-b-card {
    min-width: 250px;
}

.stats-display {
    font-size: 12px;
    color: #FFD700;
    text-align: center;
    font-family: 'Courier New', monospace;
    margin: 5px 0;
    padding: 5px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 4px;
}

.parameter-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 200px;
    margin: 10px 0;
}

.slider-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

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

.slider-group label span {
    color: #FFD700;
    font-weight: bold;
}

.parameter-slider {
    width: 100%;
    height: 6px;
    background: #333;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

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

.parameter-slider::-webkit-slider-thumb:hover {
    background: #66FF66;
}

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

.parameter-slider::-moz-range-thumb:hover {
    background: #66FF66;
}
