.magnetic-flux-calculator {
    background: #fff;
}

.calculator-header {
    margin-bottom: 20px;
}

.calculator-header .subtitle {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.calculator-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 992px) {
    .calculator-form {
        grid-template-columns: 1fr;
    }
}

.form-section, .result-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.form-section h2, .result-section h2 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.input-with-unit {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-unit input {
    width: 100%;
    padding: 10px 12px;
    padding-right: 60px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.input-with-unit .unit-label {
    position: absolute;
    right: 12px;
    color: #7f8c8d;
    font-size: 13px;
    font-weight: 500;
    pointer-events: none;
    background: white;
    padding: 0 4px;
}

.input-with-unit input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.input-help {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 4px;
    line-height: 1.4;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.btn-calculate, .btn-reset {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-calculate {
    background: #3498db;
    color: white;
}

.btn-calculate:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.btn-reset {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.btn-reset:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.result-display {
    background: white;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #eaeaea;
}

.result-value {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 15px;
}

.result-label {
    display: block;
    color: #7f8c8d;
    font-size: 13px;
    margin-bottom: 4px;
}

.result-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
}

.result-unit {
    display: block;
    color: #3498db;
    font-size: 16px;
    font-weight: 600;
    margin-top: 4px;
}

.result-equivalent {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.equivalent-item {
    background: white;
    padding: 12px 20px;
    border-radius: 6px;
    border: 1px solid #eaeaea;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.equivalent-item span:nth-child(1) {
    color: #7f8c8d;
}

.equivalent-item span:nth-child(2) {
    color: #2c3e50;
    font-weight: 600;
    font-size: 18px;
}

.equivalent-item .unit-label {
    color: #7f8c8d;
    font-size: 13px;
    font-weight: 500;
}

.result-formula {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 3px solid #3498db;
}

.result-formula h3 {
    color: #2c3e50;
    font-size: 15px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.formula-display {
    background: white;
    padding: 12px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #2c3e50;
    text-align: center;
    margin: 8px 0;
    border: 1px solid #eaeaea;
}

.formula-explanation {
    font-size: 12px;
    color: #7f8c8d;
    line-height: 1.4;
    padding: 8px 4px 0;
}

.result-details {
    background: white;
    border-radius: 6px;
    padding: 15px;
    border: 1px solid #eaeaea;
}

.result-details h3 {
    color: #2c3e50;
    font-size: 15px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    font-size: 13px;
}

.detail-item span:nth-child(1) {
    color: #7f8c8d;
    flex: 1;
}

.detail-item span:nth-child(2) {
    color: #2c3e50;
    font-weight: 600;
    font-size: 14px;
    margin: 0 6px;
    text-align: right;
    min-width: 60px;
}

.detail-item .unit-label {
    color: #7f8c8d;
    font-size: 12px;
    font-weight: 500;
    width: 40px;
    text-align: left;
}

.reference-section {
    background: white;
    border-radius: 6px;
    padding: 15px;
    border: 1px solid #eaeaea;
}

.reference-section h3 {
    color: #2c3e50;
    font-size: 15px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.reference-table {
    overflow-x: auto;
    font-size: 13px;
}

.reference-table table {
    width: 100%;
    border-collapse: collapse;
}

.reference-table th {
    background: #f8f9fa;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 1px solid #dee2e6;
}

.reference-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eaeaea;
    color: #495057;
}

.reference-table tr:hover {
    background: #f8f9fa;
}

.calculator-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.info-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.info-card h3 {
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.info-card li {
    padding: 6px 0;
    color: #495057;
    position: relative;
    padding-left: 18px;
    line-height: 1.4;
    font-size: 13px;
}

.info-card li:before {
    content: "•";
    color: #3498db;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.recommendation {
    margin-top: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    border-left: 3px solid #3498db;
}

.recommendation h3 {
    color: #2c3e50;
    font-size: 15px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 768px) {
    .calculator-form {
        gap: 15px;
    }
    
    .form-section, .result-section {
        padding: 15px;
    }
    
    .result-number {
        font-size: 28px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .calculator-info {
        grid-template-columns: 1fr;
    }
    
    .input-with-unit input {
        padding-right: 50px;
    }
}