.challenge-tabs {
    background-color: #1a1a1a;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.challenge-tabs-header {
    display: flex;
    border-bottom: 1px solid #333;
    padding: 0 16px;
}

.challenge-tab-button {
    background: none;
    border: none;
    color: #888;
    padding: 16px 24px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.challenge-tab-button i {
    font-size: 1.2rem;
}

.challenge-tab-button:hover {
    color: #feaf50;
}

.challenge-tab-button.active {
    color: #feaf50;
}

.challenge-tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #feaf50;
}

.challenge-tabs-content {
    padding: 20px;
}

.challenge-tab-panel {
    display: none;
}

.challenge-tab-panel.active {
    display: block;
}

.challenge-doubt-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.challenge-doubt-textarea {
    width: 100%;
    min-height: 150px;
    padding: 16px;
    border: 1px solid #333;
    border-radius: 8px;
    background-color: #2a2a2a;
    color: #fff;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.challenge-doubt-textarea:focus {
    outline: none;
    border-color: #feaf50;
}

.challenge-submit-button {
    align-self: flex-end;
    background-color: #feaf50;
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.challenge-submit-button:hover {
    background-color: #ffc170;
    transform: translateY(-1px);
}

.challenge-submit-button i {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .challenge-tabs-header {
        padding: 0 8px;
    }

    .challenge-tab-button {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .challenge-tabs-content {
        padding: 16px;
    }

    .challenge-doubt-textarea {
        min-height: 120px;
        padding: 12px;
    }

    .challenge-submit-button {
        width: 100%;
        justify-content: center;
    }
}

/* Estilos para a lista de perguntas */
.questions-list {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.question-item {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    color: #888;
    font-size: 0.9rem;
}

.question-author, .answer-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.question-author .user-avatar-wrapper,
.answer-author .user-avatar-wrapper {
    margin-right: 4px;
}

.student-name, .answerer-name {
    font-weight: 600;
    color: #feaf50;
}

.step-question-text {
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

/* Estilos para as respostas */
.answers-container {
    margin-top: 16px;
}

.answers-list {
    margin-left: 20px;
    padding-left: 20px;
    border-left: 2px solid #333;
}

.answer-item {
    background-color: #333;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 12px;
}

.answer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    color: #888;
    font-size: 0.85rem;
}

.answer-text {
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Estilos para o formulário de resposta */
.answer-form-container {
    margin-top: 12px;
    margin-left: 20px;
}

.answer-button {
    background: none;
    border: none;
    color: #FEAF50;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.answer-button:hover {
    color: #FF8533;
}

.answer-form {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.5rem 0;
    padding: 1rem;
    background: #1A1A1A;
    border-radius: 0.5rem;
}

.answer-textarea {
    width: 100%;
    min-height: 100px;
    padding: 0.75rem;
    background: #2A2A2A;
    border: 1px solid #3A3A3A;
    border-radius: 0.25rem;
    color: #FFFFFF;
    font-size: 0.9rem;
    resize: vertical;
}

.answer-textarea:focus {
    outline: none;
    border-color: #FF6B00;
}

.submit-answer-button {
    align-self: flex-end;
    background: #FEAF50;
    color: #000000;
    border: none;
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}

.submit-answer-button:hover {
    background-color: #ffc170;
    transform: translateY(-1px);
}

.submit-answer-button:disabled {
    background: #666666;
    cursor: not-allowed;
}

.no-questions {
    text-align: center;
    color: #888;
    padding: 32px;
    background-color: #2a2a2a;
    border-radius: 8px;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .question-item {
        padding: 16px;
    }

    .answers-list {
        margin-left: 12px;
        padding-left: 12px;
    }

    .answer-item {
        padding: 12px;
    }

    .question-author, .answer-author {
        gap: 8px;
    }

    .answer-form-container {
        margin-left: 12px;
    }

    .submit-answer-button {
        width: 100%;
        justify-content: center;
    }
}
