/**
 * AP Calculus AB Score Calculator Styles
 * 
 * This stylesheet is isolated from the theme to prevent conflicts
 */

/* Container */
.ap-calc-ab-calculator-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ap-calc-ab-calculator-container h2 {
    text-align: center;
    color: #000000;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.ap-calc-ab-calculator-container h3 {
    color: #000000;
    font-size: 1.4rem;
    margin-top: 20px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.ap-calc-ab-calculator-container h4 {
    color: #000000;
    font-size: 1.2rem;
    margin-top: 15px;
    margin-bottom: 10px;
}

/* Calculator Sections */
.calculator-section {
    margin-bottom: 25px;
}

.fr-section {
    border: 1px solid #eee;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    background-color: #fafafa;
}

/* Form Groups */
.form-group {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.form-group label {
    display: inline-block;
    width: 140px;
    font-weight: 600;
    margin-right: 10px;
}

.form-group input[type="number"] {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.input-help {
    color: #666;
    font-size: 0.9rem;
    margin-left: 10px;
}

/* Buttons */
.calculate-section {
    text-align: center;
    margin: 30px 0;
}

.calculate-button, .reset-button {
    background-color: #000000;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    margin: 0 5px;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.calculate-button:hover, .reset-button:hover {
    background-color: #333333;
}

.reset-button {
    background-color: #666666;
}

/* Results Section */
.results-section {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
}

.error-message {
    color: #d32f2f;
    font-weight: bold;
    margin-bottom: 15px;
    display: none;
}

.score-details {
    margin-bottom: 20px;
}

.score-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px dashed #ddd;
}

.final-score-container {
    text-align: center;
    margin-top: 20px;
}

.final-score-container h3 {
    color: #000000;
    border-bottom: none;
    margin-bottom: 10px;
}

.final-score {
    font-size: 2.5rem;
    font-weight: bold;
    color: #000000;
    padding: 10px;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    line-height: 60px;
    margin: 0 auto;
    background-color: #f0f0f0;
}

/* Responsive styles */
@media screen and (max-width: 600px) {
    .ap-calc-ab-calculator-container {
        padding: 15px;
    }
    
    .form-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-group label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .input-help {
        margin-left: 0;
        margin-top: 5px;
    }
    
    .calculate-button, .reset-button {
        width: 100%;
        margin: 5px 0;
    }
    
    .score-row {
        flex-direction: column;
    }
}

/* Score color styles */
.score-1 { background-color: #ffcdd2; }
.score-2 { background-color: #ffecb3; }
.score-3 { background-color: #c8e6c9; }
.score-4 { background-color: #b3e5fc; }
.score-5 { background-color: #d1c4e9; } 