/* Reading Coach Custom Styles */

:root {
    --primary: #4361ee;
    --success: #4cc9f0;
    --danger: #f72585;
    --neutral: #e0e0e0;
}
#rc-container {
    font-family: 'Poppins', sans-serif;
    max-width: 800px;
    margin: 30px auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
#rc-container h2 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 20px;
}
.passage-box {
    background: #f8f9fa;
    border-left: 5px solid var(--primary);
    padding: 20px;
    border-radius: 10px;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 25px;
}
.btn-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
}
.btn {
    padding: 12px 18px;
    font-size: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-success { background: var(--success); color: white; }
.btn-danger { background: var(--danger); color: white; }
#rc-player {
    width: 100%;
    margin-top: 15px;
    display: none;
}
#rc-feedback {
    background: #fafafa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 25px;
}
.text-label {
    font-weight: bold;
    margin-top: 10px;
}
.grade-bar {
    background: var(--neutral);
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}
.grade-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #f72585 0%, #f8961e 50%, #4cc9f0 100%);
    transition: width 1s;
}
.score-box {
    margin-top: 20px;
    font-size: 1rem;
}
/* Basic error styling for missing passage */
.rc-error {
    color: var(--danger);
    background: #ffe3e3;
    border: 1px solid var(--danger);
    padding: 15px;
    border-radius: 8px;
}