.system-widget-container {
    max-width: 800px;
    margin: 0 auto;
}

.calculator-form {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.input-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    gap: 15px;
}

.eq-label {
    font-size: 1rem;
    color: #475569;
    font-weight: 600;
    min-width: 100px;
    text-align: right;
}

.eq-input {
    width: 100%;
    max-width: 320px;
    padding: 12px 15px;
    font-size: 1.3rem;
    font-family: 'Times New Roman', serif;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    color: #1e293b;
    outline: none;
    transition: all 0.3s;
    background: #f8fafc;
}

.eq-input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.results-area {
    display: none;
    margin-top: 35px;
    animation: fadeIn 0.5s;
}

.result-green-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 6px solid #16a34a;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 12px;
    text-align: center;
}

.res-title {
    color: #15803d;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

.res-values {
    font-size: 2rem;
    font-weight: 800;
    color: #16a34a;
}

.canvas-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.02);
}

#linearGraph {
    display: block;
    width: 100%;
    height: 100%;
}

.steps-box {
    border-top: 1px solid #e2e8f0;
    padding-top: 25px;
}

.steps-box h3 {
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: var(--text-main);
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
}

.step-block {
    margin-bottom: 25px;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 5px solid #2563eb;
}

.step-title {
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.step-math {
    font-family: 'Times New Roman', serif;
    font-size: 1.3rem;
    margin-left: 10px;
}

.calc-action-btn {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    text-transform: uppercase;
    margin-top: 10px;
}

.calc-action-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.info-section {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-top: 3rem;
}

.info-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    border-left: 5px solid var(--primary);
    padding-left: 15px;
}

.info-section h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
    color: #374151;
}

.info-section p,
.info-section li {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #4b5563;
}

.formula-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 20px;
    text-align: center;
    border-radius: 12px;
    font-family: 'Times New Roman', serif;
    font-size: 1.5rem;
    margin: 20px 0;
    color: #1e3a8a;
    font-weight: 700;
}

.faq-item {
    border-bottom: 1px solid #f1f5f9;
    padding: 20px 0;
}

.faq-q {
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    color: #374151;
}

.faq-q:hover {
    color: var(--primary);
}

.faq-a {
    display: none;
    padding-top: 15px;
    color: #4b5563;
}

.faq-a.show {
    display: block;
}

@media (max-width: 600px) {
    .input-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .eq-label {
        text-align: left;
        min-width: auto;
    }

    .eq-input {
        max-width: 100%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}