@scope (#original-content) {

#square-area-calculator-section * {
    box-sizing: border-box;
}

.area-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border-left: 5px solid #28a745;
}

.area-header h1 {
    font-size: 2.5em;
    font-weight: 800;
    color: #155724;
    margin: 0 0 15px 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.area-header p {
    font-size: 1.15em;
    font-weight: 600;
    color: #1e7e34;
    margin: 0;
}

.calculator-container {
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.calculator-mode-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    justify-content: center;
}

.mode-tab {
    padding: 12px 20px;
    background-color: #ffffff;
    border: 2px solid #ced4da;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95em;
    transition: all 0.3s ease;
    color: #212529;
}

.mode-tab:hover {
    background-color: #d4edda;
    border-color: #28a745;
    transform: translateY(-2px);
}

.mode-tab.active {
    background-color: #28a745;
    color: #ffffff;
    border-color: #28a745;
    box-shadow: 0 4px 12px rgba(40,167,69,0.3);
}

.calculator-mode {
    display: none;
}

.calculator-mode.active {
    display: block;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #155724;
    font-size: 1.05em;
}

.input-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.input-row > div {
    flex: 1;
    min-width: 200px;
}

.input-group input,
.input-group select {
    width: 100%;
    
    border: 2px solid #ced4da;
    border-radius: 8px;
    font-size: 1.05em;
    font-weight: 600;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40,167,69,0.1);
}

.calculate-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #28a745 0%, #20883a 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1.15em;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(40,167,69,0.3);
}

.calculate-btn:hover {
    background: linear-gradient(135deg, #20883a 0%, #1e7e34 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40,167,69,0.4);
}

.result-box {
    margin-top: 25px;
    padding: 25px;
    background: linear-gradient(135deg, #d4edda 0%, #e8f5e9 100%);
    border-left: 5px solid #28a745;
    border-radius: 10px;
    display: none;
}

.result-box.show {
    display: block;
}

.result-box h3 {
    margin: 0 0 15px 0;
    color: #155724;
    font-size: 1.3em;
    font-weight: 800;
}

.result-value {
    font-size: 1.8em;
    font-weight: 800;
    color: #155724;
    margin: 10px 0;
    word-break: break-word;
}

.result-steps {
    margin-top: 15px;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 8px;
    font-weight: 600;
    color: #424242;
}

.content-section {
    margin: 40px 0;
    padding: 30px;
    background-color: #fafbfc;
    border-radius: 12px;
    border: 1px solid #e8eef3;
}

.content-section h2 {
    font-size: 1.9em;
    font-weight: 800;
    color: #155724;
    margin: 0 0 20px 0;
    border-bottom: 3px solid #28a745;
    padding-bottom: 10px;
}

.content-section h3 {
    font-size: 1.5em;
    font-weight: 800;
    color: #1e7e34;
    margin: 25px 0 15px 0;
}

.content-section p {
    font-size: 1.05em;
    font-weight: 600;
    color: #2d3436;
    margin: 15px 0;
}

.formula-box {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1em;
    color: #856404;
}

.conversion-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.conversion-table th {
    background-color: #28a745;
    color: #ffffff;
    padding: 15px;
    text-align: left;
    font-weight: 800;
    font-size: 1.05em;
}

.conversion-table td {
    padding: 15px;
    border-bottom: 1px solid #e8eef3;
    font-weight: 600;
    color: #2d3436;
}

.conversion-table tr:hover {
    background-color: #f8f9fa;
}

.example-box {
    background-color: #e7f3ff;
    border: 2px solid #b3d9ff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
}

.example-box h4 {
    margin: 0 0 12px 0;
    color: #004085;
    font-weight: 800;
    font-size: 1.2em;
}

.example-box p {
    margin: 8px 0;
    font-weight: 600;
    color: #424242;
}

.faq-section {
    margin: 40px 0;
}

.faq-item {
    background-color: #ffffff;
    border: 2px solid #e8eef3;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    font-weight: 800;
    font-size: 1.1em;
    color: #155724;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-question::after {
    content: '+';
    font-size: 1.8em;
    font-weight: 800;
    color: #28a745;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 20px 20px 20px;
}

.faq-answer p {
    margin: 10px 0;
    font-weight: 600;
    color: #424242;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .area-header h1 {
        font-size: 1.8em;
    }
    
    .calculator-container {
        padding: 20px;
    }
    
    .mode-tab {
        padding: 10px 15px;
        font-size: 0.85em;
    }
    
    .input-row {
        flex-direction: column;
    }
    
    .content-section {
        padding: 20px;
    }
    
    .content-section h2 {
        font-size: 1.5em;
    }
    
    .result-value {
        font-size: 1.4em;
    }
}

@media (max-width: 480px) {
    #square-area-calculator-section {
        padding: 10px;
    }
    
    .area-header h1 {
        font-size: 1.5em;
    }
    
    .calculator-mode-tabs {
        flex-direction: column;
    }
    
    .mode-tab {
        width: 100%;
    }
}

}
