        .activity-builder {
    max-width: 900px;
    margin: auto;
    background: #fff;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    font-family: Arial, sans-serif;
}

.activity-header label {
    font-weight: bold;
    display: block;
    margin-bottom: 6px;
}

.activity-header input,
.activity-header textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

.question-card {
    background: #f8f9fc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.question-title {
    font-weight: bold;
    margin-bottom: 10px;
}

.editor-toolbar button {
    margin-right: 6px;
    padding: 5px 8px;
    cursor: pointer;
}

.editor {
    width: 100%;
    min-height: 70px;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.answers {
    margin-top: 15px;
}

.answer {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.answer input[type="text"] {
    flex: 1;
}

.btn-add {
    background: #0d6efd;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

.btn-submit {
    background: #198754;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    border: none;
    margin-top: 20px;
    cursor: pointer;
}


.btn-remove-question {
    float: right;
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-remove-answer {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
}


.answer .form-control {
    min-width: 0;
}

@media (max-width: 768px) {
    .answer .d-flex {
        flex-wrap: wrap;
    }
}


.form-check-input {
    cursor: pointer;
}

.image-btn img {
    border: 1px solid #ddd;
}

@media (max-width: 768px) {
    .answer .d-flex {
        flex-wrap: wrap;
    }
}



.answer-check {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.answer-check input {
    display: none; /* esconder checkbox real */
}

.check-ui {
    margin-top: 10px;
    width: 38px;
    height: 38px;
    border-radius: 6px;
    background: #e0e0e0; /* cinza inicial */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #6c757d; /* X cinza */
    transition: all 0.2s ease;
}

/* Estado verde (correta) */
.answer-check.correct .check-ui {
    background: #28a745;
    color: #fff;
}
.answer-check.correct .check-ui i {
    content: "\f00c"; /* Bootstrap check icon */
    font-family: "bootstrap-icons";
}

/* Estado vermelho (incorreta) */
.answer-check.incorrect .check-ui {
    background: #dc3545;
    color: #fff;
}
.answer-check.incorrect .check-ui i {
    content: "\f00d"; /* Bootstrap X icon */
    font-family: "bootstrap-icons";
}





.audio-preview audio {
    width: 100%;
    max-width: 260px;
    height: 34px;
}

.image-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px; /* espaço entre ícone e preview */
}
.image-btn i {
    font-size: 18px;
    color: #6c757d;
}
.image-btn img.preview-image {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 4px;
}








.question-editor {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px;
}

.editor-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.editor-tools button {
    border: none;
    background: transparent;
    font-size: 18px;
    color: #555;
    margin-left: 8px;
    cursor: pointer;
}

.editor-tools button:hover {
    color: #0d6efd;
}

.media-preview img {
    max-width: 120px;
    border-radius: 6px;
    margin-top: 8px;
}

.media-preview audio {
    margin-top: 8px;
    width: 100%;
}






.media-btn {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border: 1px dashed #ced4da;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: all .2s ease;
}

.media-btn:hover {
    border-color: #0d6efd;
}

.media-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}





.editor-tools {
    display: flex;
    align-items: center;
    gap: 8px; /* espaço entre imagem e áudio */
}

.media-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 8px;
    border: 1px dashed #ced4da;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}

.media-btn i {
    font-size: 18px;
}

.media-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



/* Container da toolbar */
.question-media-tools {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Botões de mídia da pergunta */
.q-image-btn,
.q-audio-btn {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border: 1px dashed #ced4da;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: all .2s ease;
}

.q-image-btn:hover,
.q-audio-btn:hover {
    border-color: #0d6efd;
}

.q-image-btn i,
.q-audio-btn i {
    font-size: 18px;
}

/* Preview da mídia da pergunta */
.question-media-preview img {
    max-width: 100px;
    border-radius: 6px;
    margin-top: 6px;
}

.question-media-preview audio {
    margin-top: 6px;
    width: 100%;
}





/* ICONE DA ATIVIDADE */
.activity-type-image {
    position: absolute;
    top: 20px;
    right: 0px;
    width: 90px;
    opacity: 0.9;
}

.activity-type-image img {
    width: 100%;
    height: 50px;
    width: 50px;
    border-radius: 12px;
}


