.log-calc-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
    background-color: #f8f9fa;
}

.log-box {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.log-box h3 {
    margin: 0 0 15px 0;
    font-size: 17px;
    color: #1a73e8;
    border-bottom: 2px solid #f1f3f4;
    padding-bottom: 10px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #444;
}

.input-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    box-sizing: border-box;
}

.btn-group {
    display: flex;
    gap: 10px;
}

.calc-btn {
    flex: 2;
    background: #1a73e8;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}

.calc-btn:hover {
    background: #1557b0;
}

.clear-btn {
    flex: 1;
    background: #f1f3f4;
    color: #3c4043;
    border: 1px solid #dadce0;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.clear-btn:hover {
    background: #e8eaed;
}

.result-box {
    margin-top: 15px;
    padding: 12px;
    background: #e6f4ea;
    border-left: 4px solid #34a853;
    font-size: 14px;
    font-weight: bold;
    min-height: 18px;
    color: #202124;
}

.res-error {
    background: #fce8e6;
    border-left-color: #d93025;
    color: #a50e0e;
}
/* Formula Section Styling */
.formula-container {
    margin-top: 40px;
    padding: 20px;
    background-color: #ffffff;
    border-top: 3px solid #1a73e8;
    border-radius: 0 0 10px 10px;
}

.formula-main-title {
    text-align: center;
    color: #333;
    font-size: 24px;
    margin-bottom: 30px;
}

.formula-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.formula-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    transition: 0.3s;
}

.formula-card:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.formula-card h4 {
    margin: 0 0 10px 0;
    color: #1a73e8;
    font-size: 16px;
}

.formula-card p {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.math-box {
    background: #fff;
    border: 1px dashed #1a73e8;
    padding: 10px;
    font-family: "Courier New", Courier, monospace;
    font-weight: bold;
    color: #333;
    text-align: center;
    border-radius: 4px;
    font-size: 15px;
}

/* Responsive adjustment */
@media (max-width: 600px) {
    .formula-main-title {
        font-size: 20px;
    }
}