/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1001; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.5); /* Fundo mais escuro */
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 2rem;
    border: none;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #007bff;
    margin-top: 0;
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-footer {
    margin-top: 2rem;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Estilos para garantir que a área de texto e a pré-visualização sejam responsivas */
#newQuestionModal #newQuestionText {
    width: 100%;
    box-sizing: border-box; /* Garante que padding e border não aumentem a largura total */
    resize: vertical; /* Permite redimensionamento vertical, mas não horizontal */
}

#newQuestionModal #questionPreview {
    width: 100%;
    min-height: 100px;
    height: auto; /* Altura se ajusta ao conteúdo */
    box-sizing: border-box;
    margin-bottom: 1rem;
    word-wrap: break-word;
}

/* Export Modal Tabs */
.export-tabs .tab-links {
    border-bottom: 1px solid #ccc;
    margin-bottom: 15px;
}

.export-tabs .tab-link {
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    border-bottom: none;
    cursor: pointer;
    padding: 10px 15px;
    margin-right: 5px;
    border-radius: 5px 5px 0 0;
}

.export-tabs .tab-link.active {
    background-color: #fff;
    border-bottom: 1px solid #fff;
}

.export-tabs .tab-content {
    display: none;
}

.export-tabs .tab-content.active {
    display: block;
}

.export-tabs textarea {
    width: 100%;
    height: 200px;
    resize: vertical;
}
