.tool-fullwidth {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Tool shell */
.engineering-tool {
    max-width: 100%;
    margin: 0 auto;
}

.engineering-tool .editor-section,
.editor-section.engineering-tool {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.engineering-tool .card:not(.result-card) {
    border: 1px solid var(--color-border, #e5e7eb);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.06));
    border-radius: var(--radius, 12px);
    background: var(--color-surface, #fff);
}

.engineering-tool .card-body {
    padding: 1.25rem 1.35rem;
}

.engineering-tool .card-title {
    color: var(--color-text, #1f2937);
    font-weight: 700;
    font-size: 1.05rem;
}

.engineering-tool .form-control,
.engineering-tool .form-select,
.engineering-tool .select-input {
    border-radius: 8px;
    border: 1px solid var(--color-border, #e5e7eb);
}

.engineering-tool .form-control:focus,
.engineering-tool .form-select:focus {
    border-color: var(--color-primary, #0d9488);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.engineering-tool .btn-primary {
    background: var(--color-primary, #0d9488);
    border-color: var(--color-primary, #0d9488);
}

.engineering-tool .btn-primary:hover {
    background: var(--color-primary-hover, #0f766e);
    border-color: var(--color-primary-hover, #0f766e);
}

.engineering-tool .alert {
    border-radius: 10px;
}

[data-theme="dark"] .engineering-tool .card:not(.result-card) {
    background: var(--color-surface, #1f2937);
    border-color: var(--color-border, #374151);
}

[data-theme="dark"] .engineering-tool .card-title,
[data-theme="dark"] .engineering-tool .form-label,
[data-theme="dark"] .engineering-tool {
    color: var(--color-text, #f9fafb);
}

[data-theme="dark"] .engineering-tool .text-muted,
[data-theme="dark"] .engineering-tool .form-text {
    color: var(--color-text-secondary, #9ca3af) !important;
}

[data-theme="dark"] .engineering-tool .form-control,
[data-theme="dark"] .engineering-tool .form-select {
    background: #111827;
    color: var(--color-text, #f9fafb);
    border-color: var(--color-border, #374151);
}

/* --- tool: lateral-strength-calculator --- */
.lateral-strength-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: auto;
    padding: 20px 0;
}

.lateral-strength-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin: 20px auto;
    max-width: 900px;
}

.calculator-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
}

.input-group-custom {
    margin-bottom: 25px;
}

.input-group-custom label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #34495e;
    font-size: 14px;
}

.input-group-custom .input-container {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.input-group-custom .input-container:focus-within {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.input-group-custom input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 16px;
    color: #2c3e50;
    background: transparent;
}

.input-group-custom .unit-text {
    color: #7f8c8d;
    font-size: 14px;
    margin-left: 10px;
}

.input-group-custom .btn-controls {
    display: flex;
    flex-direction: column;
    margin-left: 10px;
}

.input-group-custom .btn-controls button {
    width: 30px;
    height: 20px;
    border: none;
    background: #ecf0f1;
    color: #7f8c8d;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-group-custom .btn-controls button:hover {
    background: #3498db;
    color: white;
}

.input-group-custom .btn-controls button:first-child {
    border-radius: 5px 5px 0 0;
}

.input-group-custom .btn-controls button:last-child {
    border-radius: 0 0 5px 5px;
}

.select-group-custom {
    margin-bottom: 25px;
}

.select-group-custom label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #34495e;
    font-size: 14px;
}

.select-group-custom select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    background: white;
    font-size: 16px;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-group-custom select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.result-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    display: none;
}

.result-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

.result-item {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.result-value {
    font-size: 24px;
    font-weight: bold;
    color: #e74c3c;
    margin: 5px 0;
}

.result-label {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 5px;
}

.result-unit {
    color: #95a5a6;
    font-size: 12px;
}

.calculate-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.calculate-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f618d);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.reset-btn {
    width: 100%;
    padding: 10px;
    background: #95a5a6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.reset-btn:hover {
    background: #7f8c8d;
}

.formula-section {
    background: #e8f4fd;
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    border-left: 4px solid #3498db;
}

.formula-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 10px;
}

.formula-text {
    color: #34495e;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    margin: 0;
}

@media (max-width: 768px) {
    .lateral-strength-card {
        margin: 10px;
        padding: 20px;
    }
    
    .calculator-title {
        font-size: 24px;
    }
}
