/* assets/css/calculators/absolute-value-equation-solver.css */

.abs-widget-container {
    max-width: 800px;
    margin: 0 auto;
}

.calculator-form {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
    text-align: center;
}

.smart-input-container {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.smart-input {
    width: 100%;
    max-width: 500px;
    padding: 1.2rem;
    font-size: 1.5rem;
    font-family: 'Times New Roman', serif;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    color: #1e293b;
    outline: none;
    transition: all 0.3s;
    background: #f8fafc;
    text-align: center;
}

.smart-input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.smart-input::placeholder {
    color: #94a3b8;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
}

.calc-action-btn {
    width: 100%;
    max-width: 300px;
    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;
    letter-spacing: 0.5px;
    margin-top: 15px;
}

.calc-action-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

/* Results */
.result-area {
    display: none;
    margin-top: 40px;
    animation: fadeIn 0.4s;
    text-align: left;
}

.result-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 6px solid #16a34a;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 30px;
}

.res-title {
    color: #15803d;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

.res-val {
    font-size: 2.2rem;
    font-weight: 800;
    color: #16a34a;
}

/* Steps */
.steps-container {
    border-top: 1px solid #e2e8f0;
    padding-top: 25px;
}

.step-block {
    background: #f8fafc;
    padding: 1.5rem;
    margin-bottom: 20px;
    border-radius: 12px;
    border-left: 5px solid #2563eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.step-head {
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step-math {
    font-family: 'Times New Roman', serif;
    font-size: 1.4rem;
    color: #1e293b;
}

/* Content Sections */
.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;
}

.highlight-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
    font-family: 'Courier New', Courier, monospace;
    text-align: center;
    font-size: 1.3rem;
    color: #1e3a8a;
    font-weight: 700;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.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;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.faq-q:hover {
    color: var(--primary);
}

.faq-a {
    display: none;
    padding-top: 15px;
    color: #4b5563;
    line-height: 1.6;
}

.faq-a.open {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}