/* Main Wrapper */
.ewtbm-wrapper {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.ewtbm-exam-title {
    font-size: 2em;
    margin-bottom: 20px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
    color: #23282d;
}

/* Test Book Section */
.ewtbm-test-book {
    margin-bottom: 30px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    padding: 20px;
}

.ewtbm-book-title {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 15px;
    color: #0073aa;
}

/* Question Item */
.ewtbm-question-item {
    background: #fff;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    border-radius: 4px;
    padding: 15px;
    transition: box-shadow 0.2s;
}

.ewtbm-question-item:hover {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.ewtbm-q-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.ewtbm-q-text {
    flex: 1;
    font-size: 1.1em;
    line-height: 1.6;
}

.ewtbm-q-text p:first-child {
    margin-top: 0;
}

.ewtbm-q-text p:last-child {
    margin-bottom: 0;
}

/* Toggle Button */
.ewtbm-toggle-btn {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    white-space: nowrap;
    transition: background 0.2s;
}

.ewtbm-toggle-btn:hover {
    background: #005177;
}

.ewtbm-toggle-btn.active {
    background: #464646;
}

/* Answer Content */
.ewtbm-a-content {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
    animation: fadeIn 0.3s ease-in;
}

.ewtbm-answer-label {
    font-weight: bold;
    color: #28a745;
    margin-bottom: 5px;
}

.ewtbm-answer-text {
    color: #333;
    line-height: 1.6;
}

.ewtbm-error {
    color: #dc3232;
    padding: 10px;
    background: #fcebeb;
    border-left: 4px solid #dc3232;
}

.ewtbm-info {
    color: #004085;
    background-color: #cce5ff;
    border-color: #b8daff;
    padding: 10px;
    border-radius: 4px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Options List */
.ewtbm-options-list {
    margin: 15px 0;
    padding-left: 0;
}

.ewtbm-option-item {
    margin-bottom: 10px;
    font-size: 1.05em;
    color: #444;
    cursor: pointer;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.ewtbm-option-item input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
}

.ewtbm-option-item:hover {
    background-color: #f0f0f1;
    border-color: #999;
}

.ewtbm-opt-label {
    font-weight: bold;
    margin-right: 10px;
    min-width: 20px;
    color: #555;
}

/* Correct / Wrong States */
.ewtbm-option-item.ewtbm-correct {
    background-color: #d4edda !important;
    border-color: #c3e6cb !important;
    color: #155724 !important;
}

.ewtbm-option-item.ewtbm-wrong {
    background-color: #f8d7da !important;
    border-color: #f5c6cb !important;
    color: #721c24 !important;
}

/* Prevent clicking again */
.ewtbm-options-list.answered {
    pointer-events: none;
}