﻿.technical-diagram {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    position: relative;
}

.diagram-container {
    display: inline-block;
    border: 2px solid #333;
    padding: 20px;
    background: white;
    border-radius: 8px;
    max-width: 100%;
}

.diagram-image {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    border-radius: 4px;
}

.weight-info {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border: 1px solid #333;
    padding: 10px;
    font-size: 14px;
    font-weight: bold;
    color: #2c5aa0;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 10;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
}

.input-group h4 {
    margin: 0 0 20px 0;
    color: #333;
    text-align: center;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.input-table {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.input-column {
    flex: 1;
}

.input-column h5 {
    margin: 0 0 15px 0;
    color: #333;
    font-weight: bold;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.input-row {
    display: flex;
    align-items: center;
    margin: 12px 0;
    padding: 8px;
    border-bottom: 1px solid #eee;
    gap: 10px;
}

.input-row:last-child {
    border-bottom: none;
}

.input-row label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    min-width: 60px;
    flex-shrink: 0;
}

.input-row input {
    width: 120px;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    flex-shrink: 0;
}

.input-row input[readonly] {
    background-color: #f0f8ff;
    color: #2c5aa0;
    font-weight: bold;
    border-color: #b3d9ff;
}

.input-row small {
    color: #666;
    font-size: 11px;
    font-style: italic;
    flex: 1;
    margin-left: 5px;
    line-height: 1.2;
}

.button-group {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.btn {
    min-width: 120px;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

@media (max-width: 768px) {
    .input-table {
        flex-direction: column;
        gap: 10px;
    }
    
    .input-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .input-row label {
        min-width: auto;
    }
    
    .input-row input {
        width: 100%;
    }
    
    .button-group {
        flex-direction: column;
    }
}