/* Trainer container */
.trainer-container {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 25px 35px;
    width: 100%;
    max-width: 760px;
    margin: 2rem auto;
    text-align: center;
}

.trainer-container h1 {
    margin-top: 0;
}

/* Header bar (timer) */
.info-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.25em;
    font-weight: bold;
}

/* Problems list */
#problems-container {
    margin-bottom: 25px;
    text-align: left;
}

/* Problem card */
.problem-card {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.problem-title {
    font-size: 1.1em;
    margin-bottom: 10px;
}

/* Answer input (keeps Bulma feel without requiring a Bulma class) */
.answer-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #dbdbdb;
    border-radius: 6px;
    font-size: 1em;
    font-family: var(--font-family);
    box-sizing: border-box;
}

/* Feedback */
.feedback {
    margin-top: 8px;
    font-weight: bold;
    min-height: 1.2em;
}

.feedback.ok {
    color: var(--correct-color);
}

.feedback.wrong {
    color: var(--wrong-color);
}

.feedback .details {
    font-weight: normal;
    font-style: italic;
    font-size: 0.9em;
    margin-top: 5px;
}

/* Actions */
.actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.trainer-container button {
    font-family: var(--font-family);
    transition: background-color 0.2s;
}

/* Explicit ID states (work with or without Bulma classes) */
#checkBtn {
    background-color: var(--primary-color);
    color: #fff;
}

#checkBtn:hover {
    background-color: var(--primary-hover-color);
}

#checkBtn:disabled {
    background-color: #ccc !important;
    border-color: #ccc !important;
    cursor: not-allowed;
}

#results {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

#score-text {
    font-size: 1.2em;
    font-weight: bold;
}

.hidden {
    display: none;
}