/* ---------------- CARD CONTAINER ---------------- */
.engineering-tool-card {
    max-width: 600px;
    margin: 1rem auto;
    padding: 1rem;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    font-family: Arial, sans-serif;
}

.engineering-tool-card h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* ---------------- SECTION ---------------- */
.section {
    margin-bottom: 1rem;
}

.section label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 500;
}

.section input,
.section select {
    width: 100%;
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-top: 0.2rem;
    font-size: 1rem;
    box-sizing: border-box;
}

/* ---------------- BUTTONS ---------------- */
.button-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.calculate-btn,
.reset-btn {
    flex: 1;
    padding: 0.6rem;
    border-radius: 6px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 0.5rem;
    font-weight:600;
}

.calculate-btn {
    background-color: #28a745;
    color: white;
}

.calculate-btn:hover {
    background-color: #218838;
}

.reset-btn {
    background-color: #ff4d4d;
    color: white;
}

.reset-btn:hover {
    background-color: #e60000;
}

/* ---------------- RESULT CARDS ---------------- */
.tool-result-card {
    margin-top: 1rem;
    padding: 0.8rem;
    border-left: 6px solid #999;
    background: #fff;
    border-radius: 6px;
    font-size: 0.95rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.tool-result-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #1e73be;
}

.tool-result-card ul {
    margin: 0.5rem 0 0 1rem;
    padding-left:0;
    list-style: disc;
}

.tool-result-card ul li {
    margin-bottom: 0.25rem;
}

/* ---------------- WARNING ---------------- */
.tool-warning {
    background:#fff3cd;
    border-left:4px solid #ffb300;
    padding:0.75rem;
    border-radius:4px;
    margin-top:0.75rem;
    font-size:0.95rem;
}

/* ---------------- MOBILE RESPONSIVE ---------------- */
@media (max-width:480px){
    .button-group {
        flex-direction: column;
    }
}