/* Molecule card (direct children of global #structures flex container) */
.mol-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mol-card h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.viewer-wrap {
    position: relative;
}

.pka-overlay {
    display: none;
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #c0392b;
    white-space: nowrap;
}

/* Difficulty toggle pills */
#difficulty-toggle {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 1rem;
}

.difficulty-pill {
    padding: 5px 16px;
    border: 2px solid #dee2e6;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    background: #fff;
    color: #555;
    transition: all 0.15s;
}

.difficulty-pill:hover {
    border-color: #6153cc;
    color: #6153cc;
}

.difficulty-pill.active {
    background: #6153cc;
    border-color: #6153cc;
    color: #fff;
}

/* Answer pills */
#primary-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.answer-pill {
    padding: 8px 20px;
    border: 2px solid #dee2e6;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.15s;
    user-select: none;
    background: #fff;
    color: #333;
}

.answer-pill:hover:not(:disabled) {
    border-color: #6153cc;
    background: #f0eeff;
}

.answer-pill:disabled {
    cursor: default;
}

.answer-pill.correct {
    background: #d4edda;
    border-color: #28a745;
}

.answer-pill.incorrect {
    background: #f8d7da;
    border-color: #dc3545;
}

.answer-pill.missed {
    background: #fff3cd;
    border-color: #ffc107;
}

