/* =======================
   Calculator Styles
   ======================= */

/* General container */
.calculator-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-family: 'Arial', sans-serif;
    color: #333;
}

/* Heading */
.calculator-container h1 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 25px;
    color: #1a73e8;
}

/* Form grid */
.calculator-form .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Form group */
.calculator-form .form-group {
    display: flex;
    flex-direction: column;
}

.calculator-form label {
    font-weight: bold;
    margin-bottom: 8px;
}

.calculator-form input[type="number"] {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1em;
    transition: border 0.3s;
}

.calculator-form input[type="number"]:focus {
    border-color: #1a73e8;
    outline: none;
}

/* Submit button */
.calculate-btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.calculate-btn:hover {
    background-color: #155bb5;
}

/* Result section */
.calc-result {
    margin-top: 25px;
    padding: 20px;
    background-color: #f4f8ff;
    border-left: 5px solid #1a73e8;
    border-radius: 8px;
}

.calc-result h2 {
    margin-top: 0;
    color: #1a73e8;
}

.calc-result p {
    font-size: 1.2em;
    margin: 10px 0;
}

/* Copy button */
.copy-btn {
    padding: 8px 15px;
    background-color: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s;
}

.copy-btn:hover {
    background-color: #155bb5;
}

/* History section */
.history-container {
    margin-top: 30px;
    padding: 20px;
    background-color: #fdfdfd;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.history-container h2 {
    margin-top: 0;
    color: #1a73e8;
}

.history-container ul {
    list-style: none;
    padding-left: 0;
}

.history-container li {
    padding: 6px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.95em;
}

/* Highlight box for tips/formulas */
.highlight-box {
    margin-top: 30px;
    padding: 20px;
    background-color: #fff8e1;
    border-left: 5px solid #ffb300;
    border-radius: 8px;
}

.highlight-box h3 {
    margin-top: 0;
    color: #ff9800;
}

.highlight-box ul {
    list-style: disc inside;
    padding-left: 0;
}

.highlight-box li {
    margin: 6px 0;
}

/* Info section */
.info-section {
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    line-height: 1.6;
}

.info-section h3, .info-section h4 {
    color: #1a73e8;
}

.info-section ul {
    list-style: disc inside;
    margin: 10px 0;
}

.info-section li {
    margin: 5px 0;
}

/* FAQ section */
.faq-section {
    margin-top: 30px;
}

.faq-section h3 {
    color: #1a73e8;
    margin-bottom: 15px;
}

.faq-item {
    margin-bottom: 15px;
    padding: 15px;
    background-color: #f4f8ff;
    border-radius: 8px;
    border-left: 5px solid #1a73e8;
}

.faq-item h4 {
    margin: 0 0 5px;
}

.faq-item p {
    margin: 0;
    font-size: 0.95em;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .calculator-form .form-grid {
        grid-template-columns: 1fr;
    }
}